Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Xrm.Page.data.save() does not call create entity message.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

Xrm.Page.data.save() on an entity form does not call the message for create entity. Is it the expected beaviour?

https://msdn.microsoft.com/en-us/library/gg334720.aspx#BKMK_save mentions that it is equivalent of save on the entity.

Calling the Xrm.Page.data.save() generates a GUID for the entity also. Shouldn't it have gotten it through publishing the create message?

Is there a way that i can call my plugin which is registered on create message using  Xrm.Page.data.save() from javascript.

*This post is locked for comments

  • Suggested answer
    Preeti Sharma Profile Picture
    Preeti Sharma 2,678 on at
    RE: Xrm.Page.data.save() does not call create entity message.

    Hi,

    You can call plugin through javascript as in following link:

    debajmecrm.com/.../dynamics-crm-plugin-javascript-client-script

    nishantrana.me/.../using-action-to-trigger-plugin-in-crm-20132015

    Hope this helps:)

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Xrm.Page.data.save() does not call create entity message.

    Hi,

    when are triggering the function?

    The 1t time you give the information about the record? => create event

    Or a 2nd time when you are giving/changing more information? => update event

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Xrm.Page.data.save() does not call create entity message.

    The plugin is sync and i want it to run from javascript. Auto save is disabled.

  • Suggested answer
    jestuder Profile Picture
    jestuder 158 on at
    RE: Xrm.Page.data.save() does not call create entity message.

    Is your plugin async or sync?  Does it run on save of the record in UI and just not running when save form JavaScript?  What version of CRM are you on?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans