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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

how to send advance search query inside plugin dynamically

(0) ShareShare
ReportReport
Posted on by 1,562

Hi All,
I need to run On demand workflow that will send email to all contact which will come in under Advance searched criteria.Anyone having idea about it how to send advance search query inside plugin dynamically?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Gopalan Bhuvanesh Profile Picture
    11,401 on at
    RE: how to send advance search query inside plugin dynamically

    You can create a custom field.

    If you are using configuration (custom) entity, create a record for this and update it with this fetchxml.

  • Suggested answer
    prt33k Profile Picture
    6,907 on at
    RE: how to send advance search query inside plugin dynamically

    Hi Tim,

    You can retrieve the user query inside your plugin and then extract the fetchxml from it. Then you can execute it, obtain the output and send the email.

    use following as example to retrieve User Query:

    www.crmanswers.net/.../retrieve-saved-views-userquery-users.html

    However, the query will be required to updated every week. Or if there is some logic behind updating the query then same can be implemented inisde plugin and fetchxml can be modified accordingly.

    Thanks,

    PS

  • Tin Profile Picture
    1,562 on at
    RE: how to send advance search query inside plugin dynamically

    weekly it will change Gopalan

  • Tin Profile Picture
    1,562 on at
    RE: how to send advance search query inside plugin dynamically

    weekly it will change Gopalan

  • Tin Profile Picture
    1,562 on at
    RE: how to send advance search query inside plugin dynamically

    It depends not sure now I am getting 300 records.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: how to send advance search query inside plugin dynamically

    Keep one text area field on the record. Enter the fetchxml in that field and save then get it in the workflow.

  • Community Member Profile Picture
    on at
    RE: how to send advance search query inside plugin dynamically

    Hi Tin,

    Thanks for your post,

    Can you please add me on skype :- mahesh.variance

    We can discuss in detail

    Thanks 

  • Suggested answer
    Gopalan Bhuvanesh Profile Picture
    11,401 on at
    RE: how to send advance search query inside plugin dynamically

    How frequent Advanced Search Criteria would change?

  • Suggested answer
    Gopalan Bhuvanesh Profile Picture
    11,401 on at
    RE: how to send advance search query inside plugin dynamically

    What would be the frequency of Advanced Search Criteria change?

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans