Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Add the comments in the Pre-processor Json

Sekhar
Regular Contributor
Regular Contributor

Hi Team,

I need to add description as comments  about the query in the pre-processor JSON,

so can you please suggest the JSON syntax for this case.

 

Thanks,

Sekhar.

7 REPLIES 7

NM
Honored Contributor III
Honored Contributor III

@Sekhar could you please elaborate on your use case.


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

Sekhar
Regular Contributor
Regular Contributor

Hi @NM 

I need to explain the each & every query in the pre-processor JSON.

{
"ADDITIONALTABLES": {
"USERS": "SELECT * FROM USERS",
"ACCOUNTS": "SELECT name,customproperty44 FROM ACCOUNTS",
"TATTR": "SELECT attribute1,datasetname,attribute2,attribute3 FROM DATASET_VALUES WHERE DATASETNAME
},
"COMPUTEDCOLUMNS": [
"SYSTEMUSERNAME",
"CUSTOMPROPERTY34"
],
"PREPROCESSQUERIES": [
"UPDATE NEWUSERDATA NU SET NU.SYSTEMUSERNAME=''",
//Comments//
"UPDATE NEWUSERDATA NU SET NU.CUSTOMPROPERTY34='ONR' where (COALESCE(NU.SYSTEMUSERNAME,'') ='' OR NU.SYSTEMUSERNAME IS NULL)"
]
}

Above JSON Syntax is not valid in validator tool.

I need valid JSON for adding the comments.

 

Thanks,

Sekhar.

NM
Honored Contributor III
Honored Contributor III

@Sekhar try this 

-- or /*(start).  */(End)


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

Sekhar
Regular Contributor
Regular Contributor

I tried but, it is not working getting syntax error

Pasting the error below:

Sekhar_0-1729840065232.png

Sekhar_1-1729840133835.png

Thanks,

Sekhar

 

rushikeshvartak
All-Star
All-Star

Below worked for me 

{
  "ADDITIONALTABLES": {
    "USERS": "SELECT USERKEY, lastname, middlename, firstname FROM USERS"
  },
  "COMPUTEDCOLUMNS": [
    "customproperty20"
  ],
  "PREPROCESSQUERIES": [
    "UPDATE NEWUSERDATA SET CUSTOMPROPERTY20 ='Workday'"
  ],
  "COMMENTS": {
    "PREPROCESSQUERIES": [
      "Setting CUSTOMPROPERTY20 to 'Workday' for all new user data."
    ]
  }
}

rushikeshvartak_0-1729867752873.png

rushikeshvartak_1-1729867796061.png

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Hi @rushikeshvartak , Thank you for inputs.

As of now, full import takes 7hrs for completing the job, If we add comments in the Pre-Processor will it effects on performance?

 

Thanks,

Sekhar

No there should be no change in performance


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.