Retrieve and stub Actions / (Workflows) to by-pass XrmQuery.promiseRequest
mkholt opened this issue · 0 comments
mkholt commented
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.