Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Return values from a custom workflow to update a record

Posted on by 1,695

I currently have a custom workflow that executes a SQL stored procedure against a legacy system. The stored procedure returns 2 values, which I would like to update the calling record with.

I must emphasise that the stored procedure is NOT run against the CRM databases.

Can anyone point me in the right direction, ie tutorial to do this.

*This post is locked for comments

  • Verified answer
    MMK Profile Picture
    MMK 745 on at
    RE: Return values from a custom workflow to update a record

    Hi PeteN,

    You could return a string type Parameter containing the response you needed

    context.OutputParameters["result"] = '{"Response":"Success"}';

    [Output("result")]
    public OutArgument<string> result { get; set; }

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Return values from a custom workflow to update a record

    Hi ,

    refer below blog on how to return the value from custom workflow.

    anythingcrm.blogspot.com/.../crm-2011-workflow-activity-parameter.html

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans