I have built the following flow.
1. when a new email arrives in a shared mailbox.
2. apply to each attachment.
3. extract information from documents with attachments content using ai model
4. send https request to SharePoint to create list item from information in PDF's
I would like to add the attachments to the SharePoint list item, but when I choose add attachments action, the ID of the list item is not available in the dynamic content. below is a screenshot of my flow so far.
any recommendations on how to accomplish this?
I would change the URI and add the getbytitle method. You can use the title of the list for that. The getbytitle method does not need the encoding of space characters btw (_x0020_).
Try something like below in the URI field:
_api/web/lists/getbytitle('Credit App RequestList')/items