Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I have a workflow that is triggered by a change in a field. The field is allowed to contain no data. In the beginning of the process there is a condition that checks if the field is empty and if it is the process is supposed to stop with a status Canceled, otherwise it has to update the record. Whenever a user delete the content of the field the workflow starts and instead of stopping at the first step it continues and updates the record. Does anyone know why it does that?
can you please share some screenshots?
Here it is
I want to mention that when the field is empty and I run the process manually, it does what it is supposed to do and finishes with status cancel. The problem shows when someone deletes the field. Then the process starts because of the field change but doesn't stop where it should. I tried to add a time out condition, it didn't work.
The workflow looks alright from the screenshot. What is the field type of Contract Signed On? Is there any plugin or formscript that possibly sets the field again when the user clears the value and saves it?
There is no plugin or formscript. The field was created specifically to update the contact, so basically this process is the first thing that uses the field.
Data Type: Date and Time
Field Type: Simple
I tried same but it is working in my CRM instance.
Just for suggestion:
Can you try by creating new workflow and instead of checking does not contain data for datetime field ?
Check only for contains data and update the contact.
I know this sound little different doing same thing just by removing condition.
Hmmm, are there any other fields registered against Records fields change, and there is autosave or user-CTRL+S that triggers the workflow unintentionally while updating other fields? Just throwing ideas :)
Maybe you can remove the 'automatically delete completed workflow jobs' for a short time to check the actual executions including how many times it's triggered and which condition the process went into for each session.
I agree with Pradeep Rai. Try reversing your logic.
I always stop a workflow in the else statement rather than starting off with it. Good Luck.
Thank you for your suggestion. Unfortunately it didn't work either. This is how the process looks now
I tried the check condition with a specific date. For example: If the date is equal to Today than update, otherwise Cancel. The process worked fine. Is there a reason the field to be treated as not empty even when the content is deleted? When I run the process on-demand it works fine which means that it this case the field is treated as empty.
No, this is the only field that triggers the process.
Business Applications communities