0

I am creating a flow in which end users can select files to copy from one record to the other. I have been able to do this using ContentDocumentLink as the object for the record choice set, but I need to show the file name (title) on the screen component for the user to select from, so they know which files they are selecting. However I can't figure out how to do this. I can show one Content Document Title, but not multiple as I can't figure out how to set up the elements to pull all the Content Documents related to the record.

I am using a Get Records element to get all ContentDocumentLinks related to the record (LinkedEntityId = recordId). Then I am trying to use either a Get Records or Record Collection variable to get the Ids of all the Content Documents that are tied to those ContentDocumentLinks but am hitting errors.

Can anyone help? Thank you!

3
  • shouldn't the Get Records on ContentDocumentLink allow you access to the parent ContentDocument.Title field (file name)?
    – cropredy
    Jan 19, 2023 at 17:45
  • It can, but then how do I display those titles as choices in the screen?
    – SCorkum
    Jan 19, 2023 at 18:02
  • try using UnofficialSf.com Execute SOQL Query to fetch CDL + parent ContentDocumentTitle in one call
    – cropredy
    Jan 20, 2023 at 1:34

1 Answer 1

0

Once you've got your collection of Content Documents (using a loop or the SOQL action from the comments etc.), you can use a Datatable component The official one will probably meet the need here but there's also an unofficial one that has more features.

I think this will be a lot easier than record choice sets

3
  • The standard datatable component does support inline editing.
    – Adrian Larson
    May 15, 2023 at 16:47
  • I've edited my answer to remove the inline editing example but I can't find any evidence that inline editing is currently supported in the standard datatable.
    – Adam
    May 19, 2023 at 2:50
  • It's in the docs.
    – Adrian Larson
    May 19, 2023 at 3:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .