Retrieve "File Name" for lookup attachment action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2023 10:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2023 10:43 AM
Hi there,
Are you sure you need the file name? If there is 1 attachment, this action will work without a file name just one fine, otherwise it will return the 1st one it finds.
I have actually done something similar recently for a different application using a custom spoke, and since I could not be sure that there will always just be one attachment (even if that is the expectation) I have decided to use a 'Look Up Records' action on the attachment table and then triggered the file transfer (Copy Attachment in your case) inside a 'for each' loop. This is how it looks like:
Maybe this could also work for you?