# HTTP Action in Workflows

**URL:** <https://developer.sailpoint.com/discuss/t/http-action-in-workflows/6909>\
**Category:** SHF Discussion and Questions\
**Tags:** workflows, sailpoint-identity-security\
**Created:** [November 24, 2022, 2:31pm UTC](https://developer.sailpoint.com/discuss/t/http-action-in-workflows/6909 "2022-11-24T14:31:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![gourab](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/gourab/32/18650_2.png) [@gourab](https://developer.sailpoint.com/discuss/u/gourab)\
**Post date:** [November 24, 2022, 2:31pm UTC](https://developer.sailpoint.com/discuss/t/http-action-in-workflows/6909/1 "2022-11-24T14:31:28Z")

</div>

In HTTP action in IDN workflows , is there any way to send values dynamically in request body?We are trying to create serviceNow ticket through workflows.  
as example(sample json):

```auto
 {
                "description": "Ticket Created from Workflow for ",
                "requested_for": "xxxxxxxxxx",
                "opened_by": "xxxxxxxxxxxxxxxxxxxx"
}

```

We are able to generate ticket but is there any way to put the values for “requested\_for” / “description” dynamically? I have tried using $.trigger.identity.id but it is not working.

Thanks,  
Gourab

---

<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 28, 2022, 3:39pm UTC](https://developer.sailpoint.com/discuss/t/http-action-in-workflows/6909/2 "2022-11-28T15:39:10Z")

</div>

Yes, you can accomplish this using inline variables. An example of how to use inline variable is as follows:

```json
{
                "description": "Ticket Created from Workflow for ",
                "requested_for": "{{$.trigger.identity.id}}",
                "opened_by": "xxxxxxxxxxxxxxxxxxxx"
}

```

---

<div class="post-metadata">

**Author:** ![cpatel](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@cpatel](https://developer.sailpoint.com/discuss/u/cpatel)\
**Post date:** [January 3, 2023, 6:09am UTC](https://developer.sailpoint.com/discuss/t/http-action-in-workflows/6909/3 "2023-01-03T06:09:23Z")

</div>

> [@colin\_mckibben](#):
>
> using inline variables. An example of how to use inline variable is as follows:

Hey @colin_mckibben This isn’t working for me. I am just trying out simple test workflow where I am trying to send identity id to webhook but I get below error while building workflow itself.

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/f/f6e7c5c8b28a798f86e60781fbf7e78bc09835ca.jpeg)

If I try “Enter Value” option with same body, it is not replacing variable

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/f/f7d02bee212e2b5b3f5c3f64e021c16001d6a427.png)

I see this thread where it says dynamic variable substitution is still not available in http action. [Workflows: How to dynamically create request body in HTTP action](https://developer.sailpoint.com/discuss/t/workflows-how-to-dynamically-create-request-body-in-http-action/5363)  
Can you confirm if this should work or not?

---

<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:** [January 3, 2023, 1:31pm UTC](https://developer.sailpoint.com/discuss/t/http-action-in-workflows/6909/4 "2023-01-03T13:31:04Z")

</div>

This is a known bug that our engineering team is working on. It should work with the way you configured it. I’ll update this thread once the fix is in place.

---

<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:** [January 13, 2023, 3:29pm UTC](https://developer.sailpoint.com/discuss/t/http-action-in-workflows/6909/5 "2023-01-13T15:29:49Z")

</div>

This should be fixed now.

---

<div class="post-metadata">

**Author:** ![Addmanniw](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@Addmanniw](https://developer.sailpoint.com/discuss/u/Addmanniw)\
**Post date:** [July 3, 2023, 7:40am UTC](https://developer.sailpoint.com/discuss/t/http-action-in-workflows/6909/6 "2023-07-03T07:40:46Z")

</div>

Good morning.

The dynamic variable references do not appear to be working on my tennant.

“lastName”:“{{$.getIdentity.attributes.lastname}}”

Is there an issue with this? i’ve even tried changing the type of curly bracket by copy and pasting from on eof your other posts

---

<div class="post-metadata">

**Author:** ![gourab](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/gourab/32/18650_2.png) [@gourab](https://developer.sailpoint.com/discuss/u/gourab)\
**Post date:** [July 3, 2023, 8:08am UTC](https://developer.sailpoint.com/discuss/t/http-action-in-workflows/6909/7 "2023-07-03T08:08:18Z")

</div>

Hi Adam ,  
Can you please confirm , if Get Identity action is added to your workflow?if not then please add and check if variable is rendering the value.

---

<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 1, 2023, 8:09am UTC](https://developer.sailpoint.com/discuss/t/http-action-in-workflows/6909/8 "2023-09-01T08:09:14Z")

</div>

Closed on September 1, 2023, 8:09am UTC

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