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

generate custom actions classes #16

Open
mottibec opened this issue Jun 21, 2018 · 3 comments
Open

generate custom actions classes #16

mottibec opened this issue Jun 21, 2018 · 3 comments

Comments

@mottibec
Copy link
Contributor

somthing like Early Bound Generator has.

@TomMalow
Copy link
Member

If I understand the request, you would like XrmContext to generate strongly typed names for custom workflow actions?

If so then it is not a bad idea and we have a similar issue for XrmDefinitelyTyped

However, there is a problem with custom actions as Microsoft have decided to implement these in a very "interesting" way as the "unique name" of an action is not ensured to be the same across instances.

The unique name is composed of the prefix of the publisher who "created" the action in a given environment and the name that the creator gave. This means that if I have an action called "myaction" and is created in a a solution where the publisher has the prefix "xx_" then the action will have the name "xx_myaction". However, say that the action is deployed to a new environement in another solution with the publishing prefix "yy_", then that action will have the name "yy_myaction" instead in the new environment.

This should not stop us from doing it as it is op to the developer to ensure that the name is correct across environments.

@mottibec
Copy link
Contributor Author

it looks like CrmSvcUtil is using the SdkMessage entity to generate actions,
the SdkMessage name field contains the prefix of the publisher.

@pksorensen
Copy link
Member

@thygesteffensen - we need this one for CDSContext such we can trigger them with Daxif support :)

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

5 participants