# HTTP Request body - retrieving form data and supplying it to the body

**URL:** <https://developer.sailpoint.com/discuss/t/http-request-body-retrieving-form-data-and-supplying-it-to-the-body/71472>\
**Category:** SHF Discussion and Questions\
**Tags:** workflows, identity-security-cloud\
**Created:** [July 8, 2024, 10:42pm UTC](https://developer.sailpoint.com/discuss/t/http-request-body-retrieving-form-data-and-supplying-it-to-the-body/71472 "2024-07-08T22:42:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ts\_fpatterson](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ts_fpatterson/32/26704_2.png) [@ts\_fpatterson](https://developer.sailpoint.com/discuss/u/ts_fpatterson)\
**Post date:** [July 8, 2024, 10:42pm UTC](https://developer.sailpoint.com/discuss/t/http-request-body-retrieving-form-data-and-supplying-it-to-the-body/71472/1 "2024-07-08T22:42:10Z")

</div>

I have success with the below static body in the http request. But I can’t figure out how submit variables instead of the static values. I have tried some variations based on the AI bot, forum discussions and documentation.

{“accountName”:“jsmith”,“data”:{},“[email":"john.smith@example.com](mailto:email%22:%22john.smith@example.com)”,“endDate”:“2024-09-24T00:00:00-05:00”,“firstName”:“John”,“lastName”:“Smith”,“manager”:“Fred.Patterson”,“phone”:“800-858-4000”,“sourceId”:“57580fe1343e4ff5a9f888e751544f09”,“startDate”:“2020-03-24T00:00:00-05:00”}

My most recent attempt is:

{“accountName”:“${trigger.formData.assetNumber}”,“data”:{},“email”: “[sb-test@lab.example.org](mailto:sb-test@lab.example.org)’”,“endDate”:“2024-09-24T00:00:00-05:00”,“firstName”:“${trigger.formData.deviceType}”,“lastName”:“${trigger.formData.departmentName}”,“manager”:“Tim.Patterson”,“phone”:“800-858-4000”,“sourceId”:“57580fe1343e4ff5a9f888e751544f09”,“startDate”:“2020-03-24T00:00:00-05:00”}

This doesn’t fail the request, but it doesn’t substitute the variables.

---

<div class="post-metadata">

**Author:** ![shaileeM](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/shaileem/32/15314_2.png) [@shaileeM](https://developer.sailpoint.com/discuss/u/shaileeM)\
**Post date:** [July 9, 2024, 1:46am UTC](https://developer.sailpoint.com/discuss/t/http-request-body-retrieving-form-data-and-supplying-it-to-the-body/71472/2 "2024-07-09T01:46:17Z")

</div>

Hi @ts_fpatterson ,

Can you try using the reference to formData elements as :

`{{$.trigger.formData.assetNumber}}`

So your request would be:

```auto
{
  "accountName": "{{$.trigger.formData.assetNumber}}",
  "data": {},
  "email": "sb-test@lab.example.org’",
  "endDate": "2024-09-24T00:00:00-05:00",
  "firstName": "{{$.trigger.formData.deviceType}}",
  "lastName": "{{$.trigger.formData.departmentName}}",
  "manager": "Tim.Patterson",
  "phone": "800-858-4000",
  "sourceId": "57580fe1343e4ff5a9f888e751544f09",
  "startDate": "2020-03-24T00:00:00-05:00"
}

```

---

<div class="post-metadata">

**Author:** ![ts\_fpatterson](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ts_fpatterson/32/26704_2.png) [@ts\_fpatterson](https://developer.sailpoint.com/discuss/u/ts_fpatterson)\
**Post date:** [July 9, 2024, 4:13am UTC](https://developer.sailpoint.com/discuss/t/http-request-body-retrieving-form-data-and-supplying-it-to-the-body/71472/3 "2024-07-09T04:13:46Z")

</div>

Thank you, this worked.

---

<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:** [September 7, 2024, 4:14am UTC](https://developer.sailpoint.com/discuss/t/http-request-body-retrieving-form-data-and-supplying-it-to-the-body/71472/4 "2024-09-07T04:14:41Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
