XrmDefinitelyTyped icon indicating copy to clipboard operation
XrmDefinitelyTyped copied to clipboard

Retrieve and stub Actions / (Workflows) to by-pass XrmQuery.promiseRequest

Open mkholt opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. When calling a workflow of type Action from TypeScript, one needs to use the promiseRequest function, hard-coding the name of the action, and having to look it up.

This leads to possible issues by mis-typing, and if the name changes.

Additionally, promiseRequest accepts a parameter of type object, which secretly has to be a stringifyed JSON object.

Describe the solution you'd like The context generator should create stubs for any actions found, with defined types for the input and output parameters for the actions.

mkholt avatar Aug 16 '21 14:08 mkholt