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

I have the same question (0)
  • Verified answer
    Carlos Eduardo Fontolan Profile Picture
    on at

    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. 

  • Suggested answer
    Community Member Profile Picture
    on at

    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.

  • z.sam Profile Picture
    299 on at

    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.

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 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans