Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Returning output parameter from custom workflow activity to action

Posted on by Microsoft Employee

I have created a custom javascript rule which calls an action built in CRM. I have used SOAP request to call action from javascript.  Inside the action,I have added the custom workflow activity as a step. When I run this javascript rule,I am able to set the value of a boolean variable in the custom workflow(as intended).But,I don't know how to retrieve the output parameter from the custom workflow activity to the javascript.

*This post is locked for comments

  • Suggested answer
    Alagunellaikumar Profile Picture
    Alagunellaikumar 6,210 on at
  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: Returning output parameter from custom workflow activity to action

    Hi,

    The following link describes how to create a custom workflow activity and use output parameters. Please refer it.

    harishgola.blogspot.in/.../how-to-create-workflow-activity-and-use.html

  • Suggested answer
    Luke Sartain Profile Picture
    Luke Sartain 1,266 on at
    RE: Returning output parameter from custom workflow activity to action

    You'll find the output parameter in the SOAP response.  So in your call backback try:

    result = JSON.parse(this.response);

    var parameter = result.YourParameterName;

    If you post your code it will be easier to state exactly where you'll need that.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans