Hi All,
CRM workflow not working on field change, works on onsave of record
but i need it on field change
If i use javascript field change the field Purchase timeframe is not available.
*This post is locked for comments
Hi ,
I read through your question again,
In order for workflow to execute, you must save the field.
If you want to achieve on field change , you can use business rule or java script to achieve it.
Drag the purchase timeframe into form body then you will see the field if you go for javascript.
community.dynamics.com/.../using-business-rules-to-hide-fields-and-make-them-required-as-needed
Hi Irfan,
Are you saying that, everytime you have to save the record after changing the purchase timeframe field value in order to trigger the workflow. Then this is the expected behaviour of workflow.
Only field change at UI level will not kick the database unless you save the record. Hence workflow will.not trigger on only change of field value.
Same Case, when you change the field's value using JS, It does not trigger the workflow unless in JS you write the logic to save the record.
Hope you understand..
Mark this an answer. If it helps
Cheers
Arpit
Hi,
Fields in Header are not available for JavaScript.
Please refer to this link for more information:
Thanks & Regards,
Aman Anvaria
Hi Irfan,
How workflow will work on on field change , you should save the record and when field got changed after save then only your workflow will fire.
Please remember workflow trigger in stage 30 of event execution pipeline so until and unless you save the record the workflow will not fire.
In summary if you want to some kind of functionality on change of field I would recommend go for business rules or java-script customization.
Hope this helps
Hi,
You are using background workflow, it will wait some time then only run. For testing purpose, would you mind to convert into Real time workflow and try again?
Click into "Select" and screen shot the setting.
it is an option set and i am selecting Immediate
Hi,
can you confirm is the purchase timeframe has value?
Is the field Purchase Timeframe placed in the header of your layout?
yes
Hi,
did you select the field via the 'Select' button?
For Javascript, make sure you drag the purchase timeframe into form.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156