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

dynamic attribute in Workflow.

Rajatlm10
New Contributor III
New Contributor III

we have a requirement where if country code is in (US,CA,MX) then it should go to approval to a user group else to other usergroup. 

 

i am trying to directly use the value of dynamic attribute as ${countrycode} but its not working out for me. 

Has anyone worked on such scenario before ? 

 

6 REPLIES 6

Raghu
Valued Contributor III
Valued Contributor III

@Rajatlm10  can you share workflow and query please


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

dgandhi
All-Star
All-Star

Try below

dgandhi_0-1714498626196.png

Here 'Type of Client' is the name of the dynamic attribute.

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.

Saathvik
All-Star
All-Star

@Rajatlm10 : Use below if you have not mapped Dynamic attribute to any columns

(dynamicAttributes.get('countrycode') =='US')) 

Otherwise use below format

(dynamicAttributes.get('<column name>') =='US')) 

 OR you can use this 

String.valueOf(dynamicAttributesReqAccess.get(requestaccesskey).get('countrycode'))=='US'

 


Regards,
Saathvik
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.

rushikeshvartak
All-Star
All-Star
\

(dynamicAttributes.get('countrycode') =='US')|| dynamicAttributes.get('countrycode') =='CA') || dynamicAttributes.get('countrycode') =='MX') ) 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

@rushikeshvartak  @Saathvik @dgandhi Thanku for the reply its working fine now!

Please mark all the relevant responses as Accepted Solution so that it help others facing similar issue.

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.