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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Workflow Activity (CodeActivity) plugin output parameter returning a null value

(0) ShareShare
ReportReport
Posted on by 12

Hi,

I am attempting to execute a Workflow Activity plugin using JS via a Process Action.

Here is the JS that calls the process Action:

pastedimage1660169907859v1.png

And this is the process Action.

pastedimage1660169997185v2.png

And this is the part where I set the input parameter to the Workflow activity plugin.

pastedimage1660170071058v3.png

So far so good.

My workflow activity plugin has one INPUT parameter and one OUTPUT parameter (as show in the image above).

Here is the workflow activity plugin.

pastedimage1660170206380v4.png

As you can see, I have 2 parameters. I am just getting the input parameter and setting the value of the output parameter. Simple!

So when I call the action via JS, I was expecting the response to return "EscSacSiResponse: EOF!!! but I get instead a NULL value.

pastedimage1660170533467v5.png

As you can see above, the output parameter is null.

I know the Workflow activity plugin was called based on its trace log.

pastedimage1660170694580v6.png

The plugin code clearly shows I am setting the value of the OUTPUT parameter but it is giving me a null value.

Is there an extra step that I need to do, like assigning the value of the output parameter outside the plugin code?

Do I need to do an extra step in the configuration of the Process Action in order to return the value of the output parameter?

Anyone?

a2z 

 

I have the same question (0)
  • Ray Profile Picture
    1,537 on at
    RE: Workflow Activity (CodeActivity) plugin output parameter returning a null value

    Hi,

    I think you need add a step in your action, set the output from workflow activity to your action output variable.

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at
    RE: Workflow Activity (CodeActivity) plugin output parameter returning a null value

    Hi,

    Yes, you need add another step Set variable to set the Action output variable with Workflow code activity output variable to see the result from js call.

  • cheezecake Profile Picture
    12 on at
    RE: Workflow Activity (CodeActivity) plugin output parameter returning a null value

    Yes, I did figure it out and got the result back. Just wish MS documented this more clearly and gave examples. Their documentation are all over the place and atrocious. 

    pastedimage1661896806278v1.png

    Thx

    a2z

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at
    RE: Workflow Activity (CodeActivity) plugin output parameter returning a null value

    Please mark this thread completed by click on Yes under Did this answer your question.

  • CU29041406-0 Profile Picture
    3 on at
    Workflow Activity (CodeActivity) plugin output parameter returning a null value
    I faced the same issue and this screenshot that assign the output variable helped all my lost time debugging with trace. Thank you for that @cheezecake!

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 179

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 127 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans