Hi,
I'm having this error when i run my flow.
Error
Action 'Send_an_HTTP_request_to_SharePoint' failed
Error Details
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid Hostname</h2>
<hr><p>HTTP Error 400. The request hostname is invalid.</p>
</BODY></HTML>
clientRequestId: c2e6c93c-ca2c-43d9-b323-xxxxxxxxxx
Tried following this:
Use Power Automate to automatically update calculated column on a SharePoint List (365hq.net)
My flow:
Thanks.
@grantjenkins, very much appreciated. Followed items 1 to 3. As a result of the large number of records in our SPList, updating the current date in a list would take hours.(using another scheduled flow). This just takes a click of the test button. I made two flows with distinct schedules: today and today Plus 1.
A few things I can see:
Hi @grantjenkins ,
I made both changes with the same error.
uri: /_api/web/lists/getbytitle('tbl_critical_alert_main')/fields/getbytitle('testToday')
body: {'__metadata':{'type':'SP.FieldCalculated'},'Formula':'Today()'}
Error:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid Hostname</h2>
<hr><p>HTTP Error 400. The request hostname is invalid.</p>
</BODY></HTML>
clientRequestId: ea34bc05-f619-4c08-87d9-
Show Raw Inputs:
It looks like you've just copied both the Uri and Body from the website you linked to, and they still contain incorrect single quotes. I'd suggest pasting them into Notepad and replacing them all.
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2