web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Custom workflow - output parameters

(0) ShareShare
ReportReport
Posted on by

Hi,

I have developed custom workflow and I need to "show" output parameters.

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

.
.
.

 errorText.Set(context.CodeActivityContext, "Error message : " +  some error text);
.
.
.


I don't know where this text will be show, I suppose inworkfkow-output.png

But I don't see my message....

If I am wrong please help me...

Thanks in advance..

Kind regards

Martin

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    the output parameters are available for the steps after your custom workflow activity, for example you can create a new task record and put as topic the content of your error text

  • Community Member Profile Picture
    on at

    Hi ,

    Can you send me a some example, please ?

    Thanks in advance...

    Kind regards

    Martin

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Martin,

    It doesn't appear in details. While creating the workflow, it will appear when you set the properties of any step under the look for option with the name of the step.

    message1.png

  • Community Member Profile Picture
    on at

    Hi Ravi,

    I think that you can see only Input parameters ( on picture you sent me ) not output.

    basically. in workflow I need to create a new records , after that  I need to "show"  some message "successfully".

    Please help me to achieve this, please.

    Thanks in advance..

    KInd regards

    martin

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Martin,

    No, Input parameter appears in the left panel when you select the Set properties of the step where you are calling the custom workflow activity.

    Output parameters appears for all the steps you add after the custom workflow activity step.

    In the screenshot I shared, I have the ste called "Get Record ID" which is calling the custom workflow activity.

    This workflow activity return the output parameter named "Record ID". So in the next step named "Display record id", I am using setting the message as the record id returned from my custom workflow activity step.

  • Community Member Profile Picture
    on at

    Hi Ravi,

    Thanks alot...

    Can you help me to show the message , please ?

    Kind regards

    Martin

  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Martin,

    The screenshot I shared above throw the message with the value returned from the output parameter of the custom workflow activity. Basically you need to add the step to stop the workflow as cancelled and then in the properties pass the value from the output parameter.

    Please take a look and try.

    This is the output of the above workflow.

    68864.ERROR.png

  • Community Member Profile Picture
    on at

    Hi Ravi,

    Thank you very much!

    Kind regards

    Martin

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans