cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IanWa
Level: Powered On

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 Team
Community Support Team

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
Level: Powered On

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
Level: Powered On

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 Team
Community Support Team

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 in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

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
Top Kudoed Authors
Users online (8,212)