Why are notifications triggering in an Automation Workflow when the condition isn't met?
Hello Community!
I've got a head-scratcher I'm hoping there's an easier answer to than the workaround I've developed.
I've created 5 automation workflows that each use the same triggering event. I did this for ease of management as trying to cram everything into a single automation quickly became unwieldly and difficult to navigate.
Each automation has a master condition that determines whether it runs after the triggering event occurs. If that master condition is true the sub conditions control which of the more nuanced approval verticals are run.
It's my understanding each automation, when triggered, will run the first 'true' condition it encounters. If a trigger occurs, but no conditions are true, nothing happens.
然而,如果任何一个垂直的任何of the 5 automations I've set up triggers successfully, the alerts highlighted at the bottom trigger for all the other verticals on all the other automations that share the same triggering event, even when none of those other Master or Sub conditions were met.
所以,例如,如果主人和子条件were met on automation 1 and an 'approve' decision was entered the system is generating the downstream 'approval' notification for automation 1 as well as for automation's 2 - 5.
My current workaround is to add another condition below the decision branches to tell the automation (again) that it should only send the notification if the original condition for that vertical is met. This is tedious and seems redundant. The entire vertical, or even the entire automation, shouldn't run at all if the initial conditions aren't met.
Let me know if there's an easier way to manage this sort of condition-based workflow, especially for shared triggers. I'm eager to hear ideas.
Thank you!
Best Answer
-
Genevieve P. Employee Admin
It looks like you're using Approval Request blocks. In this instance, you may see duplicate emails if you're using thesameapproval column for the different parts of the workflow.
To prevent this, you could either usedifferent approval valuesfor your different paths, or add conditions after each approved or declined request (as it sounds like you have started doing).
Here's more information:Approval workflow behavior
Cheers,
Genevieve
Answers
-
Genevieve P. Employee Admin
It looks like you're using Approval Request blocks. In this instance, you may see duplicate emails if you're using thesameapproval column for the different parts of the workflow.
To prevent this, you could either usedifferent approval valuesfor your different paths, or add conditions after each approved or declined request (as it sounds like you have started doing).
Here's more information:Approval workflow behavior
Cheers,
Genevieve
-
Dylan E. ✭
Thank you Genevieve! It's true many of my approval blocks write the decision back to the same column using the same value. It sounds like SmartSheet triggers the approval blocks in other automations if they share the approval column and value even though those other approval blocks weren't triggered by their respective automations/conditions.
This isn't particularly intuitive or desirable behavior and seems to limit the usefulness of the approval block for more complex approval workflows but I appreciate the confirmation! I'll keep this in mind going forward.
Categories
<\/p>
Maybe a product enhancement request to expand the workflow portion of the api to include the sheet id is in order.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":321,"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[{"tagID":227,"urlcode":"api-and-developers","name":"API and Developers"},{"tagID":334,"urlcode":"automations","name":"Automations"},{"tagID":448,"urlcode":"workflows-in-smartsheet","name":"Workflows in Smartsheet"}]},{"discussionID":109144,"type":"question","name":"Can you automatically rename\/add prefix to a mapped document?","excerpt":"I'm having an issue where I'm regularly automating a mapped document. The input comes in via a form, the service rep makes sure all content is ok, then hits the \"create PDF\" checkbox. A PDF is created and attaches itself to the row. This is great, and gets around the fact you can't just print a nice looking version of the…","snippet":"I'm having an issue where I'm regularly automating a mapped document. The input comes in via a form, the service rep makes sure all content is ok, then hits the \"create PDF\"…","categoryID":321,"dateInserted":"2023-08-18T14:12:34+00:00","dateUpdated":null,"dateLastComment":"2023-08-18T16:30:13+00:00","insertUserID":162047,"insertUser":{"userID":162047,"name":"Nat","title":"Project Manager","url":"https:\/\/community.smartsheet.com\/profile\/Nat","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/TGR5VC4AXHS3\/nABTHIGSKZB11.jpg","dateLastActive":"2023-08-18T17:09:13+00:00","banned":0,"punished":0,"private":false,"label":"✭✭"},"updateUserID":null,"lastUserID":45516,"lastUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2023-08-18T20:45:06+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":8,"countViews":76,"score":null,"hot":3384748967,"url":"https:\/\/community.smartsheet.com\/discussion\/109144\/can-you-automatically-rename-add-prefix-to-a-mapped-document","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/109144\/can-you-automatically-rename-add-prefix-to-a-mapped-document","format":"Rich","tagIDs":[204,334,539],"lastPost":{"discussionID":109144,"commentID":391421,"name":"Re: Can you automatically rename\/add prefix to a mapped document?","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/391421#Comment_391421","dateInserted":"2023-08-18T16:30:13+00:00","insertUserID":45516,"insertUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2023-08-18T20:45:06+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Get Help","url":"https:\/\/community.smartsheet.com\/categories\/get-help"},{"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-08-18T14:58:45+00:00","dateAnswered":"2023-08-18T14:34:35+00:00","acceptedAnswers":[{"commentID":391406,"body":"
When you are setting up your mapping, you can drag and drop a field into the \"Output Document Name\" portion at the top of the mapping. You would just need a field that contains the document name (usually generated by a formula).<\/p>
<\/p>