Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Calling Global Actions through Plugin in Dynamics CRM

(0) ShareShare
ReportReport
Posted on by 161

Hi team,

 I have created a global action with one input and one output parameter and based on the input value i am assigning some value to the Out parameter in the Action itself .

Now i want to call this global action through plugin and want to pass input parameter through plugin and need to get the output value from action.

how i can achieve this , i have never called an action through plugin earlier.

In primary entity i am only getting none to select so when this will get trigger in CRM do i need to send a request to execute through plugin to trigger this action?

So need some suggestions on this.

Thanks Inadvance

*This post is locked for comments

  • a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: Calling Global Actions through Plugin in Dynamics CRM

    You can set Output parameters only in post-execution plugins.

  • Michel Gueli Profile Picture
    Michel Gueli 982 on at
    RE: Calling Global Actions through Plugin in Dynamics CRM

    Can you send a screenshot of your action?

  • Michel Gueli Profile Picture
    Michel Gueli 982 on at
    RE: Calling Global Actions through Plugin in Dynamics CRM

    More info: deepakexploring.wordpress.com/.../calling-actions-from-plugin-in-crm-2013

  • Nagaraj M Profile Picture
    Nagaraj M 161 on at
    RE: Calling Global Actions through Plugin in Dynamics CRM

    Thanks Michel for reply,

    I have one doubt i.e, even i am setting output parameter through action , still can i be able to set or override output parameter through plugin code by registering that plugin on custom action.

    if so how we can achieve this?

    in above example you are setting target also so is it output parameter in action or else what does mean by it

    req["Target"] = new EntityReference("new_enquiry", enquiryObj.Id);

  • Suggested answer
    Michel Gueli Profile Picture
    Michel Gueli 982 on at
    RE: Calling Global Actions through Plugin in Dynamics CRM

    Here's an example:

    // Calling the Action - new_EnquiryCreateProject

    OrganizationRequest req = new OrganizationRequest("new_EnquiryCreateProject");

    //parameter:

    req["ProjectName"] = "This is a test operation for using Actions in CRM 2013 ";

    req["Target"] = new EntityReference("new_enquiry", enquiryObj.Id);

    //execute the request

    OrganizationResponse response = service.Execute(req);

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: Calling Global Actions through Plugin in Dynamics CRM

    Hello,

    Check following article - butenko.pro/.../microsoft-dynamics-crm-2013-actions-walkthrough-for-net-and-javascript-developers

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

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans