Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Set outputparamter of custom action but not returned the correct value

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi

I have a Custom Action and a plugin to support it. The action has a output parameter of Boolean type with "false" as its default value. In plugin code, based on a condition I change its value as below: 

 context.OutputParameters["HasError"] = true;


But whenever I call the action, it always return "false".

Would you help me ? 

*This post is locked for comments

  • Verified answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: Set outputparamter of custom action but not returned the correct value

    No, it would not work that way. You will have to use Post Plugin.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Set outputparamter of custom action but not returned the correct value

    Hello Andri

    Yes it is registered in Pre-Stage. So in  Pre-Stage, I can not set the outputparamters ?

  • Verified answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: Set outputparamter of custom action but not returned the correct value

    Hello,

    Am I right in my assumption that you registered your plugin for Pre-Stage? If answer is yes - then you should register it for Post-Stage.

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

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans