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

Getting Error in the Send HTTP Request to SharePoint

I want to build the Flow in which i want to trigger my flow when the file in the SharePoint is modified then i want to get the content which is modified. 

like:

I have build but i am getting an error

Rushi_Chandak_0-1652268546805.png

 

ERROR--

Rushi_Chandak_1-1652268586233.png

i Guss my URL is Wrong..

Any idea??

7 REPLIES 7
Expiscornovus
Super User
Super User

Hi @Rushi_Chandak,

 

Normally the URI field of a Send an HTTP request can contain a lot of different things. I see you totally blurred the URI value.

 

Can you share a bit more details about that URI value and which REST API method you are trying to use in that field? 😀

 

 

 

Hello @Expiscornovus

Rushi_Chandak_0-1652355175216.png

Actually my purpose is , If Any modification done in SharePoint folder then i want to see the modification over the mail 

Rushi_Chandak
Helper I
Helper I

URI is:

Rushi_Chandak_1-1652355344575.png

 

Expiscornovus
Super User
Super User

Hi @Rushi_Chandak,

 

The URI expects a versionid (512). You are using the since version number (the label), which is 1.0.

 

Try to use this expression:

outputs('Get_changes_for_an_item_or_a_file_(properties_only)')?['body/SinceVersionId']

 

1. Example where you can see the difference between the id and the label

 

sinceversionnumber.png

 

2. Example how you can use the SinceVersionId field value.

 

sinceversionid.png

Rushi_Chandak
Helper I
Helper I

Hi @Expiscornovus  Now its Giving Me Error- 

Rushi_Chandak_0-1652356896275.pngRushi_Chandak_1-1652356962314.png

 

Rushi_Chandak_2-1652356992753.png

 

Rushi_Chandak
Helper I
Helper I

Also, I Have Enabled The Versioning in the SharePoint 

Expiscornovus
Super User
Super User

Hi @Rushi_Chandak,

 

That does not look like the correct format for the VersionId. I would have expected at least a number higher than 512. I see you are using 5.

 

The since version label 1.0 is represented by the VersionId 512

2.0 is 1024

3.0 is 1536

4.0 is 2048

5.0 is 2560

etc.

 

If you want make this dynamically just use the SinceVersionId field of your previous action, the Get Changes for an item or file (properties only).

 

Can you try and use the expression below:

outputs('Get_changes_for_an_item_or_a_file_(properties_only)')?['body/SinceVersionId']

 

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (2,109)