Flow to find records that have an Attachment
As part of a data audit, I'm trying to locate all records that have an Attachment.
We use PaperSave, so we need to find records where a user may have mistakenly uploaded their document to the Attachments panel instead of PaperSave. This isn't possible using Query or Lists.
Using logic similar to that which is found in the Missing Prospect Status Digest Email (which Alex did a great demo on for BB Dev Days), I'm trying to figure out how to identify the records that have an Attachment.
The challenge I face is with the Condition to get the right Outputs which will identify the records. I was thinking that if there was a File Size ≥ 1 that might indicate that something exists.

I get this error when I run it, and am unsure how to change try to change the data type:

Thanks.
Comments
-
Hey @Chris Zello, use the Value field from the List Constituent Attachments action and wrap the left side of the condition in a length() expression. This will evaluate the field to 0 if the call returns an empty array.
3 -
@Matt Thacker I need additional information explaining how to wrap Value inside of length().
Did you mean to go into the Condition Expression and type length(outputs("List_constituent_attachments")?['Value'])
Or something else?
Thanks.
0 -
@Chris Zello
I think you'd need to use: length(outputs('List_constituent_attachments')?['body/value'])However, I believe the List Constituent Attachments action also returns “Count” in the dynamic content, so you could just use that in your condition instead if you wanted to. If Count > 0 or whatever you need for your workflow.
0 -
@Ben Regier Thanks for the idea Ben. I used the Count condition, and it seemed to work. When trying it on a larger list, some without an Attachment on the record, it didn't work accurately. It seems to give me everyone. So I need to try to expression approach.
UPDATE: It works when using the expression. Thank you!
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 211 bbcon®
- 1.4K Blackbaud Altru®
- 402 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 655 Blackbaud Grantmaking™
- 576 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 941 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.7K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 120 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 240 Member Lounge (Just for Fun)
- 34 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 796 Community News
- 3K Jobs Board
- 54 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)


