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)

Passing parameters to retrievemultiple plugin message

(0) ShareShare
ReportReport
Posted on by

Hi there ,

In my retrievemultiple plugin message , in the Post stage i need to modify the queryexpression in order to filter an associated view.

The filter is based on some parameters , it can be a hardcoded parameters or parameters from the form.

does anyone knows how can i pass parameters to the retrievemultiple plugin .

thanks in advanced

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi,

    Here you can find the description to pass parameters to a plugin: gonzaloruizcrm.blogspot.co.at/.../adding-configuration-to-plugins-in-crm.html

    Best regards,

    Andreas

  • Sandeep Sharma Profile Picture
    on at

    Hi,

    Below is the link which tells you about the passing parameters to a plugin using retrievemultiple query.

    guruprasadcrm.blogspot.in/.../plugin-on-retrieve-multiple-message-in.html

    I hope above link will help you.

    --

    Thanks and Regards

    Sandeep Sharma

  • Community Member Profile Picture
    on at

    Andreas hi,

    the configuration solution is good  howerver, what if i dont want to pass some hardcoded values, what if i want for example pass some dynamic value from the client side like , for example selected lookup item guid?

  • Community Member Profile Picture
    on at

    Hi,

    You can load the selected values in your plugin by webservice with an retrieve-request...

    In CRM 4.0 you also have the possibilities to pass the params over the additionalparams-attribute of a lookup!

    Best regards,

    Andreas

  • veginati Profile Picture
    225 on at

    ConditionExpression queryCondition = new ConditionExpression("new_principal", ConditionOperator.Equal, principal.Id);

                                   FilterExpression fexp = new FilterExpression()

                                   {

                                       FilterOperator=LogicalOperator.And,

                                       Conditions = {queryCondition }

                                   };

                                   qe.Criteria.AddFilter(fexp);

                                   context.InputParameters["Query"] = qe;

    Like this u can add condtions. you can modify the query how ever you want.

    This is possible in Pre-Operation.

    In Post-Operation Plug-In you can't modify the query that to you can't get the query parameters as expected.

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