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

Is there a way to handle InstantiateTemplateRequest #178

Open
karthikChakravartula opened this issue Feb 3, 2025 · 1 comment
Open

Is there a way to handle InstantiateTemplateRequest #178

karthikChakravartula opened this issue Feb 3, 2025 · 1 comment

Comments

@karthikChakravartula
Copy link

karthikChakravartula commented Feb 3, 2025

i use InstantiateTemplateRequest for my email template to initiate in a plugin , how can i cover these under unit test?

exception : Message = "Exception occurred: The organization request type 'Microsoft.Crm.Sdk.Messages.InstantiateTemplateRequest'
is not yet supported... . If you are using FakeXrmEasy in an Open Source project please raise an issue via our GitHub issue
tracker

Thank you in advance.

Regards
karthik

@BetimBeja
Copy link

Hi @karthikChakravartula,
you can create a FakeMessageExecutor that will reply with your desired content for this. Example:
https://dynamicsvalue.github.io/fake-xrm-easy-docs/quickstart/messages/custom-actions/#create-a-fakemessageexecutor-for-the-action
where the message is of type InstantiateTemplateRequest

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

No branches or pull requests

2 participants