Restrict Parent Record Close if Related Child Records are not Completed using Flow #inSalesforce
Here Case close will be restricted unless the related tasks are completed
Create a record-triggered flow (Fast Field Updates) on the parent(Case) object, Criteria: Status equals Closed (only when..selected)
GET:
getRelatedTasks
WhatId equals Record.Id(in other child scenario, use criteria like Parent equals Record.Id)
Status not equals Completed
DECISION:
Yes:
getRelatedTasks isnull false
If yes, Throw Error, Use Custom Error Element with the Error Message
Visual: https://www.youtube.com/watch?v=qFTBiPjhYJQ
Comments
Post a Comment