web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • a33ik Profile Picture
    84,331 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
    982 on at
    RE: Calling Global Actions through Plugin in Dynamics CRM

    Can you send a screenshot of your action?

  • Michel Gueli Profile Picture
    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
    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
    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
    84,331 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

Responsible AI policies

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

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans