Notifications
Announcements
No record found.
Greetings,I want get entity colletion in the input parameters. How to Get ?
Thanks,Bora Acici
*This post is locked for comments
Hello,
That's unfortunately not possible. The InputParameters for a plug-in are fixed per Message and none of the Messages contain an Entity Collection.
Which Message do you have your plug-in registered to? (Create, Update, etc.?)
Read more about the different Messages and what will be passed in the plug-in context here:
https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/understand-data-context-passed-plugin
For the common messages, here are is the primary key included in the InputParameters dictionary.
You can access it by calling InputParameters["propertyname"]
Hi Michel,
My Plugin message is AddUserToRecordTeam and Primary Entity is teamtemplate. Do you have any information ?
Thanks,
Bora Acici
That would be this request:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.crm.sdk.messages.addusertorecordteamrequest?view=dynamics-general-ce-9
From the looks of the documentation, you'll receive 3 InputParameters:
You can access these for example:
Guid systemUserId = (Guid)context.InputParameters["SystemUserId"];
The example code is worked. Thanks for helps :)
Hi Bora Acici,
Today I have same question and I have the answer after trying some code. As the input parameters are different based on plugin message and entity. I just post here hoping this can help other peoples to save time when finding the input parameters in plugin.
ParameterCollection paramCollection = context.InputParameters;
foreach(string k in paramCollection.Keys)
{
tracer.Trace("{0}", k);
}
foreach (object k in paramCollection.Values)
Vinh Nguyen
Thanks a lot , you have saved my day !
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2