Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

Trigger Workflow on two Option field Dynamics CRM CE

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
    z.sam 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
    Community Member Microsoft Employee 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
    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans