Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mkholt opened this issue Aug 16, 2021 · 0 comments
Open

Comments

@mkholt
Copy link
Member

mkholt commented Aug 16, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant