Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Trigger Workflow on two Option field Dynamics CRM CE

(0) ShareShare
ReportReport
Posted on by 299

Hi there,

I have a two option field on contact.

based on the client selection, for example 'Yes', a workflow gets triggered ,it checks the condition and creates a case.

On the selection of 'No' it creates some other case, the default of this field is 'No' , so somehow nothing will change and the workflow will not get triggered.

so have should we trigger a workflow on the default value of the two option field.

Regards.

Sam

  • z.sam Profile Picture
    299 on at
    RE: Trigger Workflow on two Option field Dynamics CRM CE

    Thanks for your reply Carlos,

    'getIsDirty' idea was great, but I wont be able to use it as a trigger field on my workflow.

    I have another field on the 'No' value of the option set I will use that.

    Regards.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Trigger Workflow on two Option field Dynamics CRM CE

    Hi,

    My Opinion is to change this field to "OptionSet" type, then you can put the default value = null

    after that, when you change the field value , the workflow will triggered.

  • Verified answer
    Carlos Eduardo Fontolan Profile Picture
    on at
    RE: Trigger Workflow on two Option field Dynamics CRM CE

    Hello, 

    I hope you are doing well. 

    The workflow trigger field that has changed information and probably this field wasn't dirty when default value is set.

    You can check if field was changed using 'getIsDirty' through javascript based on official documentation https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/attributes/getisdirty

    If the field isn't changed you can use 'setSubmitMode' also through based on this official documentation https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/attributes/setsubmitmode to indicate that this field needs to 'update', even with same value.

    Or you can change your workflow to trigger using another field and validate this field on condition. 

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,027 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,852 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans