Notifications
Announcements
No record found.
Hi,
I have a ribbon button on form which is passing "PrimaryControlID" as a CRM parameter. Now I want to retrieve formcontext from it or any other way so that I can work with the attributes of the entity form to retrieve its value or set new value for that attribute. Please let me know any way or I have to change the CRM parameter from "PrimaryControlID" to "PrimaryControl". If this is the only way to pass "PrimaryControl" as a CRM Parameter then what is the way to get the ID of the record which I am using through "PrimaryControlID"
Thanks
AR
HI,Please check below link:https://blog.magnetismsolutions.com/blog/alfwynjordan/2019/10/02/getting-dynamics-365-formcontext-from-ribbon-workbench
Once you get the formcontext then using below code you will get the record GUID.
formContext.data.entity.getId();
Thanks,Pradeep.
You can also pass multiple parameters.
Please mark my answer verified if this is helpful!
Regards,
Bipin Kumar
Follow my Blog: xrmdynamicscrm.wordpress.com/
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 70 Super User 2025 Season 2
Gerardo RenterÃa Ga... 33 Most Valuable Professional
Daniyal Khaleel 32 Most Valuable Professional