Good day
Please could you help with the below error i keep getting:
I have the following function set up:
at CanUserUpdateField
Good day
Please could you help with the below error i keep getting:
I have the following function set up:
Hi partner,
Kindly let me know if you are trying this from the click of a ribbon button or through a js on the form.
If you are calling this function from a click of a button, then please follow the articles:
[View:https://community.dynamics.com/crm/b/crminogic/posts/java-script-execution-context-provides-form-values-on-web-as-well-as-uci-in-dynamics-365-v9-0:750:50]
[View:https://community.dynamics.com/365/f/dynamics-365-general-forum/305714/js-code-error-on-ui-client-but-not-on-web-client:750:50]
[View:https://stackoverflow.com/questions/48202316/how-to-get-formcontext-in-ribbon-command-of-dynamics-365-9-0:750:50]
If you are doing it through the form as a onChange Event, make sure you have passed the execution context to the function as shown below:
Hope this helps.
Thanks and Regards,
Raj
have you register CanUserUpdateField function in the form onload\onsave event and check the pass execution context option?
Hi,
On your form, when you attached this function, did you check "Pass Execution Context" checkbox?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156