cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IanWa
Frequent Visitor

Error message when setting a URI in "Send an HTTP request to SharePoint"

Hi all,

 

I'm trying to build a flow to change the core SharePoint column 'name', and have read a number of articles suggesting that this can be done by using 'Send an HTTP request to SharePoint'.

I've configured this in line with everything I've read, but am getting an error as follows:

The expression \"web/lists/GetByTitle/('TeamDocuments')/items(7101)\" is not valid.
 
TeamDocuments is the name of the document library where all items are stored - I can validate this by linking to https://ourcompany.sharepoint.com/sites/XX1234/TeamDocuments
and there is an item in the library with ID 7101. Note I'm hard coding the item number simply as part of troubleshooting.
 
The flow step itself looks like this:
 HTTP request.jpg
 

Can anyone advise what I'm doing wrong, or if there is a foolproof way of generating / testing the URI?

 

Thanks,

 

Ian

 
4 REPLIES 4
Community Support
Community Support

Re: Error message when setting a URI in "Send an HTTP request to SharePoint"

Hi @IanWa,

 

The error is the quote mismatch, please remove the double quote and add a single quote back.

 

Annotation 2020-01-14 103523.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
IanWa
Frequent Visitor

Re: Error message when setting a URI in "Send an HTTP request to SharePoint"

Hi Lin Tu,

 

Thanks for pointing this typo out, however I'm still getting the same error message - which to me indicates that the problem is with the uri. Is there a way of testing or generating the uri aside from just writing it from scratch?

 

Thanks,

 

Ian

IanWa
Frequent Visitor

Re: Error message when setting a URI in "Send an HTTP request to SharePoint"

Hi Lin Tu,

 

I've built the same form and flow using a service account, and with this I'm no longer getting the same error.

This would suggest that using 'Send HTTP request to SP' requires some form of premium licensing - is this correct?

 

That said, I am getting a different error further through the process, but I'll raise this as a new message.

 

Thanks,

 

Ian

Community Support
Community Support

Re: Error message when setting a URI in "Send an HTTP request to SharePoint"

Hi @IanWa,

 

No, it's not a premium connector, so it doesn't require a premium license.

 

The error will disappear may be caused by you create it from scratch, some tiny mistake you did not mention corrected, or the connection you recreated and refreshed the authentication.

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (9,507)