Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Add a Button on Entity Main Form in MS Dynamics CRM 2016 And It will run Console Application

(1) ShareShare
ReportReport
Posted on by

Hi All,

My Requirement : I need to add a button  on the Entity Main Form and It is used to run a console application when the User is clicks a Button on the form whenever is needed. 

Is it possible to implement in Dynamics CRM 2016 ?

Thanks

haresh

*This post is locked for comments

  • imayur Profile Picture
    imayur 630 on at
    RE: Add a Button on Entity Main Form in MS Dynamics CRM 2016 And It will run Console Application

    for this requirement 

    Approach 1

    1. Retrieve all the required fields on form to generate XML.
    2. Generate XML document using javascript. There are several ways to do it, Here is one 
    3. Manipulate the generated XML document, probably convert it to string and do the desired operation

    Approach 2

    1. Create field on form to save generated XML.
    2. Create a custom workflow activity(on Demand) which generates XML and update the generated xml on form field.
    3. Create action which calls the Custom workflow
    4. Add button on Ribbon and call action on it.
  • Suggested answer
    ARIFNIIT Profile Picture
    ARIFNIIT 1,391 on at
    RE: Add a Button on Entity Main Form in MS Dynamics CRM 2016 And It will run Console Application

    You can use custom workflow Activity or custom Action for this. you can call workflow/Action through JavaScript on button click.

    Please mark as Verified, If you found the answer helpful.

  • RE: Add a Button on Entity Main Form in MS Dynamics CRM 2016 And It will run Console Application

    My requirement is to generate the custom XML file with CRM fields data. and then It will update the field values if generated XML successfully  when A user clicks on Button.

  • ARIFNIIT Profile Picture
    ARIFNIIT 1,391 on at
    RE: Add a Button on Entity Main Form in MS Dynamics CRM 2016 And It will run Console Application

    Why you want to run console? What is the purpose of the console application?Where console application is. I mean server side or Client side.

    I think it is not a good solution design. you can look alternate ways through custom coding. let me know your requirement

  • tw0sh3ds Profile Picture
    tw0sh3ds 5,600 on at
    RE: Add a Button on Entity Main Form in MS Dynamics CRM 2016 And It will run Console Application

    Looks like a terrible design decision, please share a full requirement that you have, because I believe that you are trying to solve some problem using wrong tools

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Add a Button on Entity Main Form in MS Dynamics CRM 2016 And It will run Console Application

    What is the purpose of the console application? Is it something that can be done in any other way (Possibly plugin)?

    It is not really the recommended approach.

    Basically what you can do is have a button call a custom action (via JavaScript and you can use process.js).

    The action can then do the requirements that you have including calling a Console Application (which would have to reside on the same server as the CRM Server).

    I would stay away from this logic if possible, and try if you can do this using Server side code within CRM.

    Hope this helps.

  • imayur Profile Picture
    imayur 630 on at
    RE: Add a Button on Entity Main Form in MS Dynamics CRM 2016 And It will run Console Application

    Where actual console application is? on client side or on server?

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

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,401 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans