Re: Need to Create a flow that has new SharePoint Library items trigger a Sharepoint list item with the file as the list item attachment
Hi @AEdwards214,
Yes that would be possible with flow with a couple of SharePoint actions. I would also use a trigger condition to make sure the flow only starts when it is a pdf file.
Below is an example of such an approach.
1. I used a trigger condition in the settings of the When a file is created (properties only) trigger action.
@endsWith(triggerOutputs()?['body/{FilenameWithExtension}'], '.pdf')

2. After that I use a Get File Content by using the Identifier field from the first action.
3. With a Create Item I create a new list item
4. And lastly a Add Attachment is used to add the pdf file to the list item. This action uses the ID of step 3, the File Content of step 2 and the File name with extension field of step 1.
