Hello All,
I want to know whether it is possible to pass " Context as a First Parameter to a function,when the function is called from Ribbon Button Click",?
*This post is locked for comments
Hello All,
I want to know whether it is possible to pass " Context as a First Parameter to a function,when the function is called from Ribbon Button Click",?
*This post is locked for comments
Pass "PrimaryControl " as command parameter. Refer to the blog post here
https://vjcity.blogspot.com/2019/06/how-to-pass-execution-context-as.html
Great!!!. Your solution It's working with RibbonWorkBench
See my post and mark it as verified if you found it useful.
Hi all,
Is there any solution for the posted question?
Thanks
Regards,
AW
hi RK,
I dnt think it will be removed immediately . Still you can use it to get form metadata. Please find the below article for better clarity.
community.dynamics.com/.../new-in-v9-what-s-that-with-xrm-page-being-deprecated
Hope this helps
Are you already using Dynamics 365 v9?
We have not upgraded yet to the new client side model for our solutions (mostly on D365 8.2), but this should still work on v9 as well.
For v9, you could be using Xrm.Utility.getGlobalContext:
docs.microsoft.com/.../getglobalcontext
We call a lot of actions from ribbon buttons, and are using the process.js library:
Hope this helps.
Basically i need this because i want to pass some parameters to my Action,for which i can't use the Xrm.Page as it will be Deprecated in future
Inside your function you can use Xrm.Page.context to get the context.
If that's not it, please describe what you are trying to do.
How i will able to get?
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,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156