Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Add Form properties -> parameters programmatically through c# or Js

(0) ShareShare
ReportReport
Posted on by 81

Dear Experts,

We are undergoing with situation where we want to add the Form Parameters value from code either from Js or C#.

pastedimage1574431342070v1.png

Like above parameter we want to add it through code.

Thanks in advance.

  • AyazAhmed Profile Picture
    AyazAhmed 81 on at
    RE: Add Form properties -> parameters programmatically through c# or Js

    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

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: Add Form properties -> parameters programmatically through c# or Js

    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.

  • AyazAhmed Profile Picture
    AyazAhmed 81 on at
    RE: Add Form properties -> parameters programmatically through c# or Js

    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

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: Add Form properties -> parameters programmatically through c# or Js

    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?

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.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans