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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans