web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Check at onSave function if user Clicked "Fullfill SalesOrder" before

(0) ShareShare
ReportReport
Posted on by

Hi,

i want to check the values of the SalesOrderDetails after a user tried to fullfill a salesorder. Therefore I tried different ways but from no position I am able to get the context if a User clicked the "Fullfillment" Button before.

How can I get access to that from a onSave-Function in JavaScript?

One idea was 

Xrm.Page.data.entity.getDataXml()

but after a click on "Fullfill" this is empty. Thought this must contain the changes statecode,
but unfortunately not.

So, how can i recognize in the onSave Function if someone clicked this Button?

Would be very happy if someone could help.

Best regards
Sonic

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ashlega Profile Picture
    34,477 on at

    Hi,

     you might try customizing that button(actually, probably just the command) with Ribbon Workbench - add an extra action and call some javascript that will set a hidden attribute

  • Suggested answer
    Syed Ibrahim Profile Picture
    6,257 on at

    If Xrm.Page.data.entity.getDataXml() doesn't work pls try dirty.

    Xrm.Page.data.entity.getIsDirty()

    For More info pls refer here :www.inogic.com/.../identify-dirty-fields-on-microsoft-dynamics-crm-form

    Hope this helps .

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans