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

Issues setting Organization (CUSTOMER) during API Import

Murmur
Regular Contributor II
Regular Contributor II

Hi everyone, 

I'm trying to set the CUSTOMER of Users during their import. 

I'm successfully being able to retrieve the respective customerkey, but I'm not able to set it using the MODIFYUSERDATAJSON as seen here: 

{
"ADDITIONALTABLES": {
"USERS": "SELECT <... REDACTED ...> companyName,customer FROM USERS",
"CUSTOMER": "select CUSTOMERKEY, CUSTOMERNAME from CUSTOMER"
},
"COMPUTEDCOLUMNS": [
"customer"
],
"PREPROCESSQUERIES": [
<... REDACTED ...>
"UPDATE NEWUSERDATA SET CUSTOMER=(select CURRENTCUSTOMER.CUSTOMERKEY from CURRENTCUSTOMER where CURRENTCUSTOMER.CUSTOMERNAME=NEWUSERDATA.companyName)"
]
}

I tested the later part of the equation, by setting a customproperty instead of CUSTOMER, and it calculates the correct customerkey. 

I also assigned the User that is executing the import job the required permissions in one of its SAV Roles - See f1.png

Any clue where I can take a closer look? 

The logs are not helping much either. They only show messages like 

Customer Not found for entry : [User Data]

 Cheers 🙂

1 REPLY 1

rushikeshvartak
All-Star
All-Star

Set customername instead of customer key


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