Hi, I have a requirement that if an attachment is added to a case, a flow needs to check if the same attachment exists on the parent case and if not, add it to the parent case.
I have been using content document link/content documents for this. I would like to know what logic I should use to check if the same attachment exists on the parent case record?
1 réponse
Hi @Aized Rathore,
Steps -
- Record-Triggered Flow: Triggered when an attachment (ContentDocumentLink) is added to a case.
- Get Records:
- Fetch the Parent Case (if exists).
- Query if the attachment already exists on the Parent Case.
- Decision: Check if the attachment exists on the parent case.
- Create Record: If not, create a new ContentDocumentLink to link the file to the parent case.
Flow Design -