"тнιѕ вℓσg ¢συℓ∂ ѕανє уσυя мσηєу ιƒ тιмє = мσηєу" - ∂.мαηנαℓу
Showing posts with label How to save an entity record in CRM 2011 using javascript. Show all posts
Showing posts with label How to save an entity record in CRM 2011 using javascript. Show all posts

Thursday, 30 June 2011

How to save an entity record in CRM 2011 using javascript

In CRM 2011, you could save an entity record using javascript.

There are 3 types of save possible using javascript in CRM 2011.

1. Equivalent to 'SAVE' button found on the entity form

Xrm.Page.data.entity.save();
2. Equivalent to 'SAVE AND NEW' button found on the entity form

Xrm.Page.data.entity.save('saveandnew');

3. Equivalent to 'SAVE AND CLOSE'  button found on the entity form

Xrm.Page.data.entity.save('saveandclose');