and more in a single search tool across platforms. Read the announcement here. |
10/23/2023 11:00 AM
Hi All,
We are working on Custom Connector -
CreateAccountJSON :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{"account_name":"${user?.firstname}"}
As per Documentation using below
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GroovyService.convertTemplateToString(entry.getValue().toString(), model)
its throwing below errors:
10/23/2023 11:15 AM
Try
{"account_name":"${users?.firstname}"}
10/23/2023 11:18 AM
Hello @rushikeshvartak tried that as well
No such property: users for class: SimpleTemplateScript3
10/23/2023 11:20 AM
QQ - as documentation this is to be used to resolve groovy variables - GroovyService.convertTemplateToString(entry.getValue().toString(), model)
above model is of Map<String,Object> type - what is the use of this ?
10/23/2023 11:22 AM
It seems you need to define object in Java code
10/23/2023 11:39 AM
Can you please mentioned which number you are referring for object declaration ?
10/23/2023 07:22 PM
can you try USER
10/23/2023 07:47 PM
Yeah, We followed same, but there is no much details on how to read groovy variables.
10/30/2023 02:31 PM
We need to write logic to resolve Dynamic variables ( previous understanding was it will happen automatically), we used below which resolved the issue.
GroovyService.convertTemplateToString(jsonAsStringFromUI, data);
jsonAsStringFromUI - CreateAccountJSON as String
Data - Saviynt data Map
10/30/2023 09:04 PM
Its used in code or json