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

How to iterate / pretty print the allEntitlementsValues in CreateTicketJSON

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on February 15 2022 at 08:29 UTC

Dear all,


is there any standards / best practice way to iterate and/or pretty print the allEntitlementsValues variable in the CreateTicketJSON configuration?

 The current way it is put into a ticket is not very clear / nice to read for our support teams.


Specifically, I am looking to display the data returned in a table-like fashion in HTML.


Can anyone suggest how to properly format this information?


Best Regards,

Rainer

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.
4 REPLIES 4

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on February 15 2022 at 18:18 UTC

Hello Rainer,


Are you looking to print the details in an email ?




Regards,

Avinash Chhetri

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on February 16 2022 at 07:34 UTC

Hi,


no, I want to print the details of the allEntitlementsValues into a ticket, that is created through the REST Connector via the CreateTicketJSON configuration. 


The details should look like an HTML table, just want to know if / how that might be possible.


Cheers,

Rainer

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on March 2 2022 at 17:00 UTC

Hi Rainer, 


Please make use of the below binding variable and this should trim all the extra character. 


${allEntitlementsValues.replace(':: ADD : ','').replace('\n','').replace('[','').replace(']','').replace('(','').replace(')','')}


Example output upon using the above binding variable:

Role Successfactor1 IN Test EntRole AuthObjects : WU Accountant,

Role Successfactor1 PO Test EntRole AuthObjects : Creation test 


Thanks & Regards, 

Belwyn.

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on March 3 2022 at 06:04 UTC

Thank you Belwyn!

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.