Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Pass a dynamically multi Value in JSON Syntax

GeSaviynt
New Contributor II
New Contributor II

Hi Team,

Can you please provide your input for Syntax to pass a multi value dynamically in JSON.

Postman: 

"country"     : ["US", "CA"],

In Saviynt created a dynamic attribute Country and trying to pass the value in JSON. Tried with below syntax and it's not working:

\"country\":[\"${requestAccessAttributes.get('Country')}\"]

Thank you

Geeta

 

 

 

5 REPLIES 5

ParitaSavla
Saviynt Employee
Saviynt Employee

Can you please try with the below syntax

\"country\":\"${Country}\"

I tried and it's not working. In JSON it's in array values.

"country"     : ["US""CA"]
Below syntax tried :

1.> \"country\":\"${Country}\"

2.>\"${[requestAccessAttributes.get(\"Country\")]}\"

Thanks

Geeta

DixshantValecha
Saviynt Employee
Saviynt Employee

I appreciate you reaching out to the Saviynt forums.

 please try with the below syntax

\"country\":\"${Country}\"

Secondly you can validate Json syntax on https://codebeautify.org/jsonviewer

 

 

 

I tried and it's not working. In JSON it's in array values.

"country"     : ["US""CA"]
Below syntax tried :

1.> \"country\":\"${Country}\"

2.> \"${[requestAccessAttributes.get(\"Country\")]}\"

Thanks

Geeta

GeSaviynt
New Contributor II
New Contributor II

Hi,

I tried and it's not working. In JSON it's in array values.

"country"     : ["US""CA"]
Below syntax tried :

1.> \"country\":\"${Country}\"

2.> \"${[requestAccessAttributes.get(\"Country\")]}\"

Thanks

Geeta