PaulNieuwelaar / processjs

Other
53 stars 18 forks source link

Output Parameters always return null value #3

Closed fmarto closed 6 years ago

fmarto commented 6 years ago

Greetings. I'm using Dynamics 365 Online v.9.0.

Obviously the call to my custom Action works properly because I can see the results done by the Activity code. However, the output parameters (params of Success function) always return a null value.

I checked multiple times if all my parameters were defined identically in the JavaScript, the Action, and the C# code. All parameters are "required".

I don't understand why. Please help.

Thanks

-Frank

PaulNieuwelaar commented 6 years ago

Hi Frank, are you using an Assign Value step at the end of your Action to set the output parameters? Also are you able to post your code snippet where you're calling the action? Cheers, Paul

fvakiliev commented 6 years ago

Hi Paul! I have similar issue. Success callback function not raised after call action with output parameter (integer). D365 on-premises 8.2, processjs 2.0.2.0 Regards, OldCat

PaulNieuwelaar commented 6 years ago

Hi, please check the Action is returning the correct values when calling it via a C# console app etc. Most likely it's an issue with the Action itself, e.g. if the Assign Value step isn't being used to set the Output Param on the action, or if you're setting the Output Param in a plugin then the plugin needs to be registered post-op and synchronous.

fvakiliev commented 6 years ago

My problem solved! My mistake.