web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

What does: context.InputParameters.Contains("Target") && context.InputParameters["Target"] actually do?

(0) ShareShare
ReportReport
Posted on by 3,755
This:

// The InputParameters collection contains all the data passed in the message request.
if (context.InputParameters.Contains("Target") &&
    context.InputParameters["Target"] is Entity)
{
    // Obtain the target entity from the input parameters.
    Entity entity = (Entity)context.InputParameters["Target"];
 

I read it here but didn't get it: https://msdn.microsoft.com/en-us/library/gg309673.aspx

C
an anyone explain it?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hello,

    CRM execution platform used to pass input parameter depending on the plugin event, Target is one of the type of input parameter that you will get. Most of the type it will be type of entity but it can be different.

    You can refer below blog to see different input parameter based on the event on which plugin is registered, it is for older version but, it will help you to understand it.

    www.patrickverbeeten.com/.../CRM-40-Plug-in-message-input-parameters

    Thanks

  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    on at

    Hi Hussman,

    Take a look to the following link. It explains deeply.

    www.c-sharpcorner.com/.../create-plug-in-of-ms-dynamic-crm-2013-in-Asp-Net

    Hope this helps.

    Regards,

    R.Rajkumar

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans