Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Smartvalue in Web Request URL

Brolin Amarello July 30, 2024

I'm trying to set up a Automation rule where I can add users to a user-group.

First I fetch the Group ID based on the name of the usergroup.

Next I want to do a Post with the Group ID stored in a varbiable as a Smart-value in the Web Request url.
I've also added the AccountID of the user stored in a variable into the Body.

I'm not exactly sure what I'm missing here. Does anyone got aScreenshot 2024-07-30 at 13.02.11.pngScreenshot 2024-07-30 at 13.12.42.pngScreenshot 2024-07-30 at 13.15.02.png idea?

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 30, 2024

Hi @Brolin Amarello 

Smart values are name, spacing, and case-sensitive...And I note your created variable name groupID does not match its use in the Send Web Request action, where it is groupId.  First try changing them to match.

If that does not help...sometimes I have observed there are parsing-order problems with the URL for the Send Web Request action.  That is, it does not fully evaluate before the URL is captured for use.  The workaround for that is to create the complete URL in another created variable, and then use that new variable in the Send Web Request action.

Kind regards,
Bill

Brolin Amarello August 9, 2024

@Bill Sheboya bit late, but still thank you for the reply.
Your observation helped me get the errors out of the syntax.
I've know managed to get the Automation to work.

With kind regards,

Brolin

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events