# HTTP Request in workflows

**URL:** <https://developer.sailpoint.com/discuss/t/http-request-in-workflows/6504>\
**Category:** SHF Discussion and Questions\
**Tags:** workflows, sailpoint-identity-security\
**Created:** [October 31, 2022, 6:19am UTC](https://developer.sailpoint.com/discuss/t/http-request-in-workflows/6504 "2022-10-31T06:19:02Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![brendonmurphy](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/brendonmurphy/32/19167_2.png) [@brendonmurphy](https://developer.sailpoint.com/discuss/u/brendonmurphy)\
**Post date:** [October 31, 2022, 6:19am UTC](https://developer.sailpoint.com/discuss/t/http-request-in-workflows/6504/1 "2022-10-31T06:19:02Z")

</div>

Hello,

I am creating some workflows and the HTTP Request and I keep getting the following error on my jsonRequestBody. The error is “definition.JSONInput: data not valid or malformed”, the json body that I added into the workflow editor is: {“lifetimeInMinutes”:“260”}

Its a simple body and passed the in workflow validator  
From the below my http request, im having issues with is “HTTP Request 1”  
[ExternalTrigger20221031-discuss.txt](https://developer.sailpoint.com/discuss/uploads/short-url/hTNuTjPReQu0sf87aiZrwd8hI4M.txt) (2.4 KB)

Regards  
Brendon

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [October 31, 2022, 7:15pm UTC](https://developer.sailpoint.com/discuss/t/http-request-in-workflows/6504/2 "2022-10-31T19:15:13Z")

</div>

Hi Brendon. This is a known issue and there is a ticket raised with engineering to look into it. I will keep you updated once a fix is in place.

---

<div class="post-metadata">

**Author:** ![brendonmurphy](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/brendonmurphy/32/19167_2.png) [@brendonmurphy](https://developer.sailpoint.com/discuss/u/brendonmurphy)\
**Post date:** [October 31, 2022, 9:04pm UTC](https://developer.sailpoint.com/discuss/t/http-request-in-workflows/6504/3 "2022-10-31T21:04:01Z")

</div>

Hello,

Thanks for the information, I had a feeling it was an issue.  
Do you have any work arounds for this in the mean time?  
Is there an estimate for when this will be working?

Additionally is there a spot I can view these known issues for workflows?

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [November 1, 2022, 3:46pm UTC](https://developer.sailpoint.com/discuss/t/http-request-in-workflows/6504/4 "2022-11-01T15:46:50Z")

</div>

No workarounds at this time. Should be done by end of next week at the latest, probably sooner.

---

<div class="post-metadata">

**Author:** ![brendonmurphy](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/brendonmurphy/32/19167_2.png) [@brendonmurphy](https://developer.sailpoint.com/discuss/u/brendonmurphy)\
**Post date:** [November 1, 2022, 10:02pm UTC](https://developer.sailpoint.com/discuss/t/http-request-in-workflows/6504/5 "2022-11-01T22:02:40Z")

</div>

Good to hear, thanks for the update!

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [November 8, 2022, 2:15pm UTC](https://developer.sailpoint.com/discuss/t/http-request-in-workflows/6504/6 "2022-11-08T14:15:03Z")

</div>

This issue has been fixed. Please let us know if you have any further issues.

---

<div class="post-metadata">

**Author:** ![brendonmurphy](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/brendonmurphy/32/19167_2.png) [@brendonmurphy](https://developer.sailpoint.com/discuss/u/brendonmurphy)\
**Post date:** [November 8, 2022, 10:34pm UTC](https://developer.sailpoint.com/discuss/t/http-request-in-workflows/6504/7 "2022-11-08T22:34:33Z")

</div>

Thanks for the confirmation. I’ll test it out and let you know.

---

<div class="post-metadata">

**Author:** ![brendonmurphy](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/brendonmurphy/32/19167_2.png) [@brendonmurphy](https://developer.sailpoint.com/discuss/u/brendonmurphy)\
**Post date:** [November 9, 2022, 2:52am UTC](https://developer.sailpoint.com/discuss/t/http-request-in-workflows/6504/8 "2022-11-09T02:52:44Z")

</div>

Hey,

I no longer get that error message, however it doesn’t seem to be recognising my Json body regardless. I’m doing a graph api call that requires a body and the error I get states there is no Json body. Is there some way i can what API call contains besides the executions log?

Can you see any json body issues with the attached workflow?

[ExternalTriggerTest20221109.txt](https://developer.sailpoint.com/discuss/uploads/short-url/1QeRaLIetbX9jOLmKwnjFIzrUxO.txt) (1.3 KB)

Regards  
Brendon

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [November 9, 2022, 1:58pm UTC](https://developer.sailpoint.com/discuss/t/http-request-in-workflows/6504/9 "2022-11-09T13:58:35Z")

</div>

Have you tried recreating the workflow?

---

<div class="post-metadata">

**Author:** ![brendonmurphy](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/brendonmurphy/32/19167_2.png) [@brendonmurphy](https://developer.sailpoint.com/discuss/u/brendonmurphy)\
**Post date:** [November 9, 2022, 9:30pm UTC](https://developer.sailpoint.com/discuss/t/http-request-in-workflows/6504/10 "2022-11-09T21:30:24Z")

</div>

Only by exporting and importing the json. Is that not efficient when recreating for testing fixes? Or should I recreate from Scratch?

Edit: Recreated it manually and get the same error stating there is no body. Error line from the workflow csv.

```json
{
   "error":"actionStep(HTTP Request 1) Err: task failed: activity error (type: sp:external:http:v2, scheduledEventID: 5, startedEventID: 6, identity: 1@876d52ca07b0@): request failed (type: HTTP Response Returned a Client Error, retryable: false): request failed: 400 - 400 Bad Request - {\"error\":{\"code\":\"BadRequest\",\"message\":\"Empty Payload. JSON content expected.\",\"innerError\":{\"date\":\"2022-11-08T23:29:44\",\"request-id\":\"02df6752-69c8-495d-b8b3-b6353055e75f\",\"client-request-id\":\"02df6752-69c8-495d-b8b3-b6353055e75f\"}}}"
}

```

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [November 11, 2022, 3:05pm UTC](https://developer.sailpoint.com/discuss/t/http-request-in-workflows/6504/11 "2022-11-11T15:05:12Z")

</div>

I did some more testing on my tenant and confirmed that there are still issues with the HTTP Request action. When manually specifying a content body, the content is escaped as a string using backslashes. These backslashes are preserved when they are sent to the receiving service, in your case Microsoft Graph, and the graph API can’t parse the JSON because of the invalid backslash characters. I have found that if you select a variable for use in the body, then it will be sent as JSON and the receiving end will be able to parse it properly. I have opened a bug report for engineering to fix this.

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [November 15, 2022, 8:10pm UTC](https://developer.sailpoint.com/discuss/t/http-request-in-workflows/6504/12 "2022-11-15T20:10:13Z")

</div>

This should now be fixed. please try again.

---

<div class="post-metadata">

**Author:** ![brendonmurphy](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/brendonmurphy/32/19167_2.png) [@brendonmurphy](https://developer.sailpoint.com/discuss/u/brendonmurphy)\
**Post date:** [November 21, 2022, 5:06am UTC](https://developer.sailpoint.com/discuss/t/http-request-in-workflows/6504/13 "2022-11-21T05:06:45Z")

</div>

Hello Colin,

I can confirm its now working perfectly for me.

Regards  
Brendon

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 19, 2023, 2:23pm UTC](https://developer.sailpoint.com/discuss/t/http-request-in-workflows/6504/14 "2023-07-19T14:23:46Z")

</div>

Closed on July 19, 2023, 2:23pm UTC


