cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Derekjr
Helper I
Helper I

Add attachments to SharePoint list item with HTTP Request

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?

 

Derekjr_0-1666703499433.png

 

 

 

 

 

3 REPLIES 3
Expiscornovus
Super User
Super User

Hi @Derekjr,

 

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

 

 

 



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


@Exp  thank you!

Derekjr
Helper I
Helper I

So i was able to add Get items below the HTTP request and that was able to give me the ID.

 

Derekjr_0-1666709291591.png

 

 

 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (6,427)