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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,822)