and more in a single search tool across platforms. Read the announcement here. |
12/21/2023 03:59 PM
We are attempting to make multiple API calls for the userimportJSON. These 2 calls are different from each other and the 2nd call does not require any response data from the first call (e.g. we are not using "multitype" call type).
Below is the JSON we are attempting to work with, this gives us an "Ambiguous method overloading for method java.lang.String#. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class [B] [class [C] [class java.lang.String]" error.
12/25/2023 11:51 PM - edited 12/26/2023 01:53 AM
Hello @dgeorge_,
Can you please share the complete postman response for the both the call in the text format, with the postman screenshot as well?
You can use Multicall, also you cannot have mul in the json, also you may try to use datatype using char instead of string.
Thanks
12/27/2023 09:12 AM
See attached files, forum2.txt is the response made from call 1 (this is limited to 1 record and all PII has been scrubbed)... This response would include the first employee.
Forum1.txt would be the 2nd response made from the 2nd call (again limited to 1 record)... This response would include the second employee record.
12/27/2023 09:14 AM
Multicall does not successfully work with the flag "Inactive users not feed" turn on within the userImport job.
12/27/2023 07:24 PM - edited 01/02/2024 09:22 PM
Hello @dgeorge_,
You may try with the below sample, You cannot pass the multiple statuses, you have to decide which status you want to import.You may change the below json and try accordingly.
[
{
"name":"call1",
"connection":"userAuth",
"url":"https://myurl.com/path1/path2",
"httpMethod":"GET",
"httpHeaders":{
"Content-Type":"application/json",
"Authorization":"${access_token}"
},
"userResponsePath":"",
"colsToPropsMap":{
"username":"_fields.Employee~#~char",
"firstname":"_fields.Name~dot#GivenName~#~char",
"lastname":"_fields.Name~dot#FamilyName~#~char",
"email":"_fields.EmployeeWorkEmailAddress~#~char",
"middlename":"_fields.Name~dot#MiddleName~#~char",
"systemusername":"_fields.Employee~#~char",
"departmentname":"_fields.Department~#~char",
"customproperty5":"_fields.Name~dot#GivenName~#~char",
"customproperty6":"_fields.StartDate~#~char",
"customproperty7":"_fields.Department~#~char",
"customproperty8":"_fields.EmployeeWorkEmailAddress~#~char",
"customproperty9":"_fields.AdjustedStartDate~#~char",
"customproperty10":"_fields.Name~dot#PreferredGivenName~#~char",
"customproperty11":"_fields.Name~dot#MiddleName~#~char",
"customproperty12":"_fields.RelationshipStatus~#~char",
"customproperty13":"_fields.Name~dot#PreferredFamilyName~#~char",
"customproperty14":"_fields.Employee~#~char",
"customproperty15":"_fields.HROrganization~#~char",
"customproperty16":"_fields.PLTActorRel~dot#CustomActorFields~#~char",
"statuskey":"_fields.RelationshipStatus~#~char"
},
"statusConfig":{
"active":[
"F1",
"P1",
"LP"
],
"inactive":"T"
}
},
{
"name":"call2",
"connection":"userAuth",
"url":"https://myurl.com/path1/path2",
"httpMethod":"GET",
"httpHeaders":{
"Authorization":"${access_token}"
},
"userResponsePath":"",
"colsToPropsMap":{
"username":"_fields.Employee~#~char",
"firstname":"_fields.Name~dot#GivenName~#~char",
"lastname":"_fields.Name~dot#FamilyName~#~char",
"email":"_fields.EmployeeWorkEmailAddress~#~char",
"middlename":"_fields.Name~dot#MiddleName~#~char",
"systemusername":"_fields.Employee~#~char",
"departmentname":"_fields.Department~#~char",
"customproperty5":"_fields.Name~dot#GivenName~#~char",
"customproperty6":"_fields.StartDate~#~char",
"customproperty7":"_fields.Department~#~char",
"customproperty8":"_fields.EmployeeWorkEmailAddress~#~char",
"customproperty9":"_fields.AdjustedStartDate~#~char",
"customproperty10":"_fields.Name~dot#PreferredGivenName~#~char",
"customproperty11":"_fields.Name~dot#MiddleName~#~char",
"customproperty12":"_fields.RelationshipStatus~#~char",
"customproperty13":"_fields.Name~dot#PreferredFamilyName~#~char",
"customproperty14":"_fields.Employee~#~char",
"customproperty15":"_fields.HROrganization~#~char",
"customproperty16":"_fields.PLTActorRel~dot#CustomActorFields~#~char",
"statuskey":"_fields.RelationshipStatus~#~char"
}
}
]
Also you can try to pass the status config, while setting up the job,
PFA for your ref,
12/28/2023 07:54 AM
We get the following error when saving the connector with that json...
01/02/2024 09:34 PM
Hello @dgeorge_,
Sorry i missed few lines while pasiting the json here,
{
"type": "multiCall",
"call": [
{
"name":"call1",
"connection":"userAuth",
"url":"https://myurl.com/path1/path2",
"httpMethod":"GET",
"httpHeaders":{
"Content-Type":"application/json",
"Authorization":"${access_token}"
},
"userResponsePath":"",
"colsToPropsMap":{
"username":"_fields.Employee~#~char",
"firstname":"_fields.Name~dot#GivenName~#~char",
"lastname":"_fields.Name~dot#FamilyName~#~char",
"email":"_fields.EmployeeWorkEmailAddress~#~char",
"middlename":"_fields.Name~dot#MiddleName~#~char",
"systemusername":"_fields.Employee~#~char",
"departmentname":"_fields.Department~#~char",
"customproperty5":"_fields.Name~dot#GivenName~#~char",
"customproperty6":"_fields.StartDate~#~char",
"customproperty7":"_fields.Department~#~char",
"customproperty8":"_fields.EmployeeWorkEmailAddress~#~char",
"customproperty9":"_fields.AdjustedStartDate~#~char",
"customproperty10":"_fields.Name~dot#PreferredGivenName~#~char",
"customproperty11":"_fields.Name~dot#MiddleName~#~char",
"customproperty12":"_fields.RelationshipStatus~#~char",
"customproperty13":"_fields.Name~dot#PreferredFamilyName~#~char",
"customproperty14":"_fields.Employee~#~char",
"customproperty15":"_fields.HROrganization~#~char",
"customproperty16":"_fields.PLTActorRel~dot#CustomActorFields~#~char",
"statuskey":"_fields.RelationshipStatus~#~char"
},
"statusConfig":{
"active":[
"F1",
"P1",
"LP"
],
"inactive":"T"
}
},
{
"name":"call2",
"connection":"userAuth",
"url":"https://myurl.com/path1/path2",
"httpMethod":"GET",
"httpHeaders":{
"Authorization":"${access_token}"
},
"userResponsePath":"",
"colsToPropsMap":{
"username":"_fields.Employee~#~char",
"firstname":"_fields.Name~dot#GivenName~#~char",
"lastname":"_fields.Name~dot#FamilyName~#~char",
"email":"_fields.EmployeeWorkEmailAddress~#~char",
"middlename":"_fields.Name~dot#MiddleName~#~char",
"systemusername":"_fields.Employee~#~char",
"departmentname":"_fields.Department~#~char",
"customproperty5":"_fields.Name~dot#GivenName~#~char",
"customproperty6":"_fields.StartDate~#~char",
"customproperty7":"_fields.Department~#~char",
"customproperty8":"_fields.EmployeeWorkEmailAddress~#~char",
"customproperty9":"_fields.AdjustedStartDate~#~char",
"customproperty10":"_fields.Name~dot#PreferredGivenName~#~char",
"customproperty11":"_fields.Name~dot#MiddleName~#~char",
"customproperty12":"_fields.RelationshipStatus~#~char",
"customproperty13":"_fields.Name~dot#PreferredFamilyName~#~char",
"customproperty14":"_fields.Employee~#~char",
"customproperty15":"_fields.HROrganization~#~char",
"customproperty16":"_fields.PLTActorRel~dot#CustomActorFields~#~char",
"statuskey":"_fields.RelationshipStatus~#~char"
}
}
]
}
Thanks.