and more in a single search tool across platforms. Read the announcement here. |
06/29/2022 10:03 PM
I need to pass accounttype when is selected in AccountType via "Manage Service Account" in CreateAccountJSON. How we do fetch this dynamic attribute name in CreateaccountJSON?
if this is null then I want to pass "PERSONAL" as hardcoded
Solved! Go to Solution.
06/30/2022 12:04 AM
Hi ,
Can you please mention which connecter you are using?
Thanks,
Sharukh
06/30/2022 12:06 AM
Hi. I am using REST Connector
06/30/2022 12:21 AM
Hi ,
Can you try the below JSON:
\"TargetAttribute\":\"${{requestAccessAttributes.get('Dynamic_Attribute_Name_here')} else {'PERSONAL'}}\",
But I can see the Field is mandatory so the else condition will never be set.
Thanks,
Sharukh.
06/30/2022 12:23 AM
Thank you. Could you please let me know for AD as well?
06/30/2022 12:25 AM
what I am expecting is
if user request account via "Manage Service Account" then account type should be passed as "ServiceAccount"
If user request account via "Request Access" then account type should be passed as "PERSONAL"
Since it's using with one connection, I thought I have to use "if-else" condition in CreateAccountJSON
06/30/2022 12:26 AM
Hello,
You should be able to use :
"${requestAccessAttributes.get('TimezoneCode')}"
06/30/2022 12:37 AM
Thanks. can we use that in both AD and REST connector?
Also could you please confirm about use cas I shared above?
what I am expecting is
if user request account via "Manage Service Account" then account type should be passed as "ServiceAccount"
If user request account via "Request Access" then account type should be passed as "PERSONAL"
Since it's using with one connection, I thought I have to use "if-else" condition in CreateAccountJSON
06/30/2022 01:00 AM
Hello,
You can try something like :
"targetAttribute": "${if(requestAccessAttributes.get('ACCOUNTTYPE') == 'Service Account'){'ServiceAccount'} else {'Personal'}}"
Note : ACCOUNTTYPE would be storing the Service Account type selected by the user on the Manage Service Account request screen.
11/08/2022 06:44 AM - edited 11/08/2022 07:41 AM
Is there a different variable for a database connector? I've tried
11/08/2022 11:39 AM
${ACCOUNTTYPE}
Please share json if does not work
12/10/2022 10:19 AM
${ACCOUNTTYPE} works in both our DB and SOAP connections. Thanks for your help!