Dear Experts,
We are undergoing with situation where we want to add the Form Parameters value from code either from Js or C#.
Like above parameter we want to add it through code.
Thanks in advance.
Dear Experts,
We are undergoing with situation where we want to add the Form Parameters value from code either from Js or C#.
Like above parameter we want to add it through code.
Thanks in advance.
Andrew ,
i am fully agree with you , i am not sure at the moment if we can go with any other approach but surely it will be good to give a try.
Meanwhile i just got one blog , which demonstration the process of updating the FormXML from C#, i am putting the link down below so that it can be helpful for the person in need.
community.dynamics.com/.../hardcore-crm-using-c-to-modify-an-entity-forms
Thanks for your valuable suggestion, really appreciate that.
Regards
Ayaz
Ayaz,
Don't get me wrong but I don't think that the outcome will not worth time that you will invest to implement it but it's up to you to decide to implement it or not. I would say it's much easier to add those parameters to form manually.
Also I don't have any examples in mind that I can share because your requirement is really rare.
Dear Andrew Butenko,
Thanks for the response.
Why do I need this functionality ?
Ans:- Requirement is "on target entity on which I will be setting the parameters is not fixed ,it can be dynamic " which is why we are following this approach.
Do you have any sample or reference link where I can understand the process to download the form definition.
Thanks in advance .
Regards
Ayaz
Hello,
To add those parameters programmatically you will have to download the form definition (that is just huge Xml), parse it, find the section for form parameters, add it inside, push the form definition back to CE. It's doable but I'm curious - why do you need it?
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,409
Most Valuable Professional
nmaenpaa
101,156