How to retrieve formContext from PrimaryControlID

Role Image


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”



Source link

Leave a reply

Please enter your comment!
Please enter your name here