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

Okta - Dependentcall - ImportAccountEntJSON

Ben
New Contributor II
New Contributor II

Hi All,

I'm attempting to set up the integration between Saviynt and one of our Okta tenants. This tenant is used for customer accounts, so I only want to import the accounts that have admin access, but I'm running into an issue with the dependentcall.

When I change the import to only include call1, all accounts are imported fine and when I change it to only use call2 (with a hardcoded accountID) it imports the account fine. So the issue only seems to be when chaining the calls. JSON is below and logs are attached. Any assistance would be appreciated.

ImportAccountEntJSON:

 

 

{
    "accountParams": {
        "showResponse": true,
        "connection": "acctAuth",
        "processingType": "SequentialAndIterative",
        "call": {
            "call1": {
                "callOrder": 0,
                "stageNumber": 0,
                "http": {
                    "url": "https://domain.oktapreview.com/api/v1/iam/assignees/users",
                    "httpHeaders": {
                        "Authorization": "${access_token}"
                    },
                    "httpContentType": "application/json",
                    "httpMethod": "GET"
                },
                "listField": "value",
                "keyField": "accountID",
                "colsToPropsMap": {
                    "accountID": "id~#~char",
                    "name": "id~#~char"
                }
            },
            "call2": {
                "callorder": 1,
                "stageNumber": 1,
                "http": {
                    "url": "https://domain.oktapreview.com/api/v1/users/${accountID}",
                    "httpHeaders": {
                        "Authorization": "${access_token}"
                    },
                    "httpContentType": "application/json",
                    "httpMethod": "GET"
                },
                "inputParams": {
                    "dependentCall": true
                },
                "listField": "",
                "keyField": "accountID",
                "nextApiKeyField": "accountID",
                "colsToPropsMap": {
                    "accountID": "id~#~char",
                    "name": "profile.login~#~char",
                    "displayname": "#CONST#${return response.profile.firstName+\" \"+response.profile.lastName}~#~char",
                    "customproperty1": "profile.firstName~#~char",
                    "customproperty2": "profile.lastName~#~char",
                    "customproperty4": "profile.email~#~char",
                    "customproperty7": "status~#~char"
                }
            }
        }
    }
}

 

 

[This message has been edited y moderator to mask URL]

2 REPLIES 2

Dhruv_S
Saviynt Employee
Saviynt Employee

Hi @Ben 

Could you please change the callorder in call2 to callOrder and retry.

Regards,

Dhruv Sharma

rushikeshvartak
All-Star
All-Star

{
"accountParams": {
"showResponse": true,
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://domain.oktapreview.com/api/v1/iam/assignees/users",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "value",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "id~#~char"
}
},
"call2": {
"callOrder": 1,
"stageNumber": 1,
"http": {
"url": "https://domain.oktapreview.com/api/v1/users/${accountID}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"inputParams": {
"dependentCall": true,
"dependentKeyField": "accountID"
},
"listField": "",
"keyField": "accountID",
"nextApiKeyField": "accountID",
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "profile.login~#~char",
"displayname": "#CONST#${return response.profile.firstName + ' ' + response.profile.lastName}~#~char",
"customproperty1": "profile.firstName~#~char",
"customproperty2": "profile.lastName~#~char",
"customproperty4": "profile.email~#~char",
"customproperty7": "status~#~char"
}
}
}
}
}


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