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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Create a custom workflow.

(0) ShareShare
ReportReport
Posted on by 20
  1. Create a global optionset "MH Cities" to hold certain city names - Pune, Mumbai, Thane, Nagpur and Panvel.
  2. Create a boolean field "Outside Maharashtra" in contact entity and place it on the contact form.
  3. Develop a custom workflow to retrieve all contacts in the system and check if City field has a value equal to the one present in global optionset. If the value is one of those present in global optionset then set the flag "Outside Maharashtra" to yes else no.

 

For example there are 2 Contacts in the CRM, Arun has city Kolkata and Asmi has city Pune then Arun's flag should be set to - Yes and Asmi's - No.

 

Suggestion - you can develop your logic first in console application C# for easy debugging and then convert this to a custom workflow.

  • Suggested answer
    Nya Profile Picture
    29,064 on at

    Hi, Shweta

    I’d like to suggest creating an On-demand Workflow and using the Bulk Workflow Execution Tool to achieve your needs.

    1. Create an On-demand Workflow.

    Set the condition. For the option set cannot be set as the condition, separate the options in the condition with semicolons in the following figure.

     1513.1_2D00_1.png

    1856.1_2D00_2.png

    1_2D00_3.png

    1. Create a view for the information you need.

     055715.png

    1. Install the Bulk Workflow Execution in XrmToolBox.

     1374.png

    1. Connect to the environment.

     1440.png

    1. Select the workflow and view.

     0882.png

    1. Click the ‘Validate Query’ in the top. The count of the records will be shown.

     10123.png

    1. Click the ‘Start Workflows’ in the top.

     6685.png

    1. Here is the result of the Workflow.

     8765.png

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Nya

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Syed Aqib Raza Profile Picture

Syed Aqib Raza 97

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 89 Most Valuable Professional

#3
11manish Profile Picture

11manish 71 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans