web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

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

  • Suggested answer
    Michel Gueli Profile Picture
    982 on at

    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);

  • Nagaraj M Profile Picture
    161 on at

    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);

  • Michel Gueli Profile Picture
    982 on at
  • Michel Gueli Profile Picture
    982 on at

    Can you send a screenshot of your action?

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans