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 :
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.

I have the same question (0)
  • Suggested answer
    Nya Profile Picture
    29,060 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

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans