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

Create Account JSON - trying pass task id - throwing 'No such property: task for class' error

IAM_99
Regular Contributor II
Regular Contributor II

Hi Team,

We have to pass taskID to the target which creating account , we tried below 

"Task Id":"{task.Id}"

"Task Id":"{task?.Id}"

gives below error :

Error in creating user = No such property: task for class: SimpleTemplateScript49 Possible solutions: class

 

Can you let me know correct variable for taskid?

6 REPLIES 6

Sivagami
Valued Contributor
Valued Contributor

Try below

${arsTasks.id}

 

sk
All-Star
All-Star

Below parameter should work

${arsTasks.id}


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
${arsTasks.id}

 https://saviynt.freshdesk.com/support/solutions/articles/43000521736-rest-connector-guide%C2%A0


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

Alex
Regular Contributor
Regular Contributor

Hi,

I'm currently facing the same issue on version 23.2. with the AD connector. Based on the documentations bindings are supported for operations including task.
Tried both, but nothing worked.
${task.Id}
${arsTasks.id}

Still getting the error (depending on the case):
Error while creating account in AD - No such property: arsTasks for class: SimpleTemplateScript40

For AD connector ${task?.id} should work

https://docs.saviyntcloud.com/bundle/AD-v2021x/page/Content/Configuring-the-Integration-for-Provisio...


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

Alex
Regular Contributor
Regular Contributor

The "?" did the trick. Thanks, it is working now!