Count the number of files attached to the record #inSalessforce

Count the number of files attached to the record #inSalessforce


Create a field: Count of files (number return type)


Create a record triggered flow

Object Account (suppose), on update, action and related records


GET RECORDS ELEMENT:

Content Document Link getCDL

Linked Entity Id equals Record.AccountId

All RECORDS

Automatically store all fields


ASSIGNMENT ElEMENT:

record.count_of_files__c equals count getCDL


UPDATE RECORD:

Use the IDs... selected

Record in the record or record collection


Save and Activate


Test it

Comments