Global custom action returns 204 No Content rather than the defined output parameters

I have been working on a lot of custom actions lately in Dynamics 365, version 8.0 to 9.0. I have problem updating the custom actions again and again. The custom action suppose to return some output parameters, but it kept returning 204 No Content status, and there is no content in the response.

This happened as soon as I made changes to the custom action, either the parameters or the steps, save and activate the custom action.

It seems like there is a bug with the UI of the workflow designer for global actions. The generated workflow XAML of the action contains a Target entity and is set to NULL and this is invalid, it shouldn't even be in the XAML file at all.

The trick to work around this and get the custom action working again is simply doing the following:

- Deactivate the custom action;
- Change the unique name of the custom action, I simply just put random number at the end of the current name;
- Press the Save button (don't need to activate);
- Change the unique name back to the original one (remove the random numbers at the end);
- Press the Save button again;
- Now activate the custom action.

You will see it starts returning output parameters again!

Comments

Post a Comment

Popular posts from this blog

Dynamics 365 sub-grid add new and add existing

Dynamics 365 Web API get entity using alternate key value that has apostrophe/single quote in it

TLS 1.2 and PowerShell