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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
NeerajPawar Profile Picture

NeerajPawar 2

#2
jlattimer Profile Picture

jlattimer 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans