Support for Inline Variable for HTTP Request URL Field

According to the Inline Variable documentation the inline variables should support any field that uses a string as an input. Does does the URL field for HTTP Request act definitely, because I’m seeing some strange functionality.

https://[TENANTHERE].api.identitynow.com/v3/accounts/{{$.getAccounts.accounts.[?(@.sourceName=='Active Directory')].id}}/reload

But looking at the Test Workflow output - no replacement was made, and no suppliedInlineExpression in the step output. The step input shows:
"url": "https://[TENANTHERE].api.identitynow.com/v3/accounts/{{$.getAccounts.accounts[?(@.sourceName=='Active Directory')].id}}/reload"

Using the following URL was successful in its replacement, though. And the suppliedInlineExpression was successfully evaluated.

https://[TENANTHERE].api.identitynow.com/v3/accounts/$.trigger.identity.id/

I also then attempted setting the URL to just be the variable I’m trying to fetch, thinking my JSON Path was incorrect:

$.getAccounts.accounts[?(@.sourceName=='Active Directory')].id

This successfully grabbed the ID I was looking for (of course failed the HTTP request step because it’s not a valid URL). So it seems to me that the URL is encoding or escaping before the inline variable is evaluated, which might be causing issues. Or does inline variable substitution not support the full Goessner JSONPath features?

That looks like a bug. It appears that inline variable currently only supports simple JSONpath expressions. Using a filter in the JSONpath doesn’t appear to resolve. If you haven’t already, can you please submit a support ticket describing this issue?

1 Like

Yes, a support ticket has been opened (183629).

I am also looking out for the same thing, would love to see inline variable, with complex expressions like filters, working inside clear text fields like Request URL within HTTP Request action. :slight_smile:

2 Likes

Hi @colin_mckibben @adunker - just wondering if you guys heard any update from the engineering or support team for the fix? Thanks.

Here is the response I got:

Hey Alex,

Engineering has informed me that currently the url for HTTP is not supported, however they are in progress to have that updated. I will link the tickets for your CSM to follow and go ahead and archive this.

Warm Regards,
Cloud Support Engineer

Thanks Alex for sharing the update!
I hope we see the fix soon :slight_smile:

1 Like

Is there any update on this issue? We have a requirement to pass an identity variable in the request URL and this would be a common requirement for many APIs I would think.

I am also looking for an update.

Engineering ticket PLTWRKFLW-1175.

1 Like