web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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

I have the same question (0)
  • imayur Profile Picture
    630 on at

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

  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    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.

  • tw0sh3ds Profile Picture
    5,600 on at

    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

  • ARIFNIIT Profile Picture
    1,391 on at

    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

  • Community Member Profile Picture
    on at

    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.

  • Suggested answer
    ARIFNIIT Profile Picture
    1,391 on at

    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.

  • imayur Profile Picture
    630 on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans