11/15/2023 07:30 AM
Hello,
We are in the process of onboarding Oracle PLM (Fusion application). We have been able to establish the connection and run the job. But no accounts are getting imported after successfully running the job.
Connection JSON:
{
"authentications": {
"acctAuth": {
"authType": "Basic",
"url": "***
"httpMethod": "POST",
"httpParams": {},
"httpHeaders": {},
"httpContentType": "text/html",
"properties": {
"userName":"***",
"password":"***"
},
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed"
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Basic",
"accessToken": "Basic abcd",
"apiRateLimitConfig": {"retryAfterCalls": 100,"retryWaitSeconds": 60}
}
}
}
ImportAccountEnt JSON:
{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"statusConfig": {
"active": "true",
"inactive": "false"
},
"statusAndThresholdConfig": {
"inactivateAccountsNotInFile": false,
"deleteLinks": "true",
"includeExistingInActiveAccounts": "true"
},
"http": {
"url": "***",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/x-www-form-urlencoded",
"httpMethod": "GET"
},
"listField": "Resources",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "id~#~char",
"displayName": "displayName~#~char",
"name": "userName~#~char",
"status": "active~#~char",
"customproperty1": "id~#~char",
"customproperty2": "#CONST#${String r1 = response.'urn:scim:schemas:extension:fa:2.0:faUser'.workerInformation.personNumber; return r1}~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"
},
"pagination": {
"nextUrl": {
"nextUrlPath": "${response?.completeResponseMap?.next_page==null?null:response.completeResponseMap.next_page}"
}
}
}
},
"acctEntMappings": {
"Job Role": {
"listPath": "roles",
"idPath": "value",
"keyField": "entitlement_value"
}
}
},
"entitlementParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"entTypes": {
"Job Role": {
"entTypeOrder": 0
}
}
},
"acctEntParams": {
"entTypes": {
"Job Role": {
"call": {
"call1": {
"processingType": "acctToEntMapping"
}
}
}
}
}
}
Job details:
Kindly guide on the next steps.
Regards,
Vidhi.
11/15/2023 11:00 PM
Hello @Vidhimehta,
Can you please share the postman response.
Thanks,
11/15/2023 11:08 PM
Hello @sudeshjaiswal,
Below is the Postman response:
11/15/2023 11:12 PM
@Vidhimehta,
Can you please pass the application/json in the postman and share the snippet,
PFA for ref.
Thanks.
11/15/2023 11:24 PM
Hello @sudeshjaiswal
Response:
11/15/2023 11:29 PM
Hello @Vidhimehta,
In this way we wont be able to track down the path and response, we need the response in this way
PFA for reference
Thanks
11/15/2023 11:44 PM
Hello @sudeshjaiswal,
Below details if it helps:
Let me know what you are looking for I can search accordingly and share the details.
Regards,
Vidhi.
11/16/2023 12:35 AM
Hello @Vidhimehta,
Could you please let me know how gave the filter in the importaccountjson
acctEntMappings": {
"Job Role": {
"listPath": "roles",
"idPath": "value",
"keyField": "entitlement_value"
and how you are giving the details here, would like to understand, as it saying in your postman to enable the javascript.
also could you please provide the postman response from the one of the account, when you hit the url, when you get the account details in the postman.
Thanks,
11/21/2023 09:48 PM
Hello @sudeshjaiswal,
Below is the account import JSON. It is throwing an error now.
JSON:
{
"CONNECTION1": "netsuite",
"REQUESTXML1": "${String timestamp=new Date().getTime().toLong().toString().substring(0, 10); String nonce=java.util.UUID.randomUUID().toString().replace('-', '').substring(0, 20); String signature=org.apache.commons.codec.digest.HmacUtils.hmacSha256( (CONSUMER_SECRET+'&'+TOKEN_SECRET).getBytes() , (ACCOUNT+'&'+CONSUMER_KEY+'&'+TOKEN_ID+'&'+nonce+'&'+timestamp).getBytes() ).encodeAsBase64(); return '<soapenv:Envelope xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"> <soapenv:Header> <tokenPassport> <account>'+ACCOUNT+'</account> <consumerKey>'+CONSUMER_KEY+'</consumerKey> <token>'+TOKEN_ID+'</token> <nonce>'+nonce+'</nonce> <timestamp>'+timestamp+'</timestamp> <signature algorithm=\"HMAC_SHA256\">'+signature+'</signature> </tokenPassport> </soapenv:Header> <soapenv:Body>' + (nsId != null && nsId != '' ? '<ns3:searchMoreWithId xmlns=\"urn:customization_2020_1.setup.webservices.netsuite.com\" xmlns:ns2=\"urn:core_2020_1.platform.webservices.netsuite.com\" xmlns:ns3=\"urn:messages_2020_1.platform.webservices.netsuite.com\"> <ns3:searchId>'+nsId+'</ns3:searchId> <ns3:pageIndex>'+PAGE_NUMBER+'</ns3:pageIndex> </ns3:searchMoreWithId>' : '<platformMsg:search xmlns:platformMsg=\"urn:messages_2020_1.platform.webservices.netsuite.com\"> <platformMsg:searchRecord xsi:type=\"ns2:EmployeeSearchAdvanced\" savedSearchId=\"18732\" xmlns:ns2=\"urn:employees_2020_1.lists.webservices.netsuite.com\"> </platformMsg:searchRecord> </platformMsg:search>' ) + '</soapenv:Body> </soapenv:Envelope>';}",
"REQUESTPARAMS1": {
"Content-Type": "text/xml",
"SOAPAction": "${nsId != null && nsId != '' ? 'searchMoreWithId' : 'search'}"
},
"RESPONSEDATAPATH1": "${nsId != null && nsId != '' ? 'Body.searchMoreWithIdResponse.searchResult.searchRowList.searchRow' : 'Body.searchResponse.searchResult.searchRowList.searchRow'}",
"RESPONSETOTALRESULTS1": "${nsId != null && nsId != '' ? 'Body.searchMoreWithIdResponse.searchResult.totalRecords' : 'Body.searchResponse.searchResult.totalRecords'}",
"RESPONSEPAGERESULTS1": "${nsId != null && nsId != '' ? 'Body.searchMoreWithIdResponse.searchResult.pageSize' : 'Body.searchResponse.searchResult.pageSize'}",
"ACCOUNTMAPPING1": "name:basic.entityId.searchValue,customproperty1:basic.email.searchValue,accountid:basic.externalId.searchValue.@externalId,customproperty2:basic.giveAccess.searchValue",
"ENTITLEMENTMAPPING1": {
"Role": "basic.role.searchValue.@internalId"
},
"RESPONSEMAPPING1": {
"nsId": "Body.searchResponse.searchResult.searchId"
}
}
Error:
Regards,
Vidhi.
11/28/2023 03:00 AM
11/28/2023 03:02 AM
Hello @Vidhimehta,
Could you please confirm, if you are using Rest or Soap Connector, As initally you mentioned it as REST Connector, now you share the XML using the Soap Connector.
Thanks.
11/28/2023 03:35 AM
Hello @sudeshjaiswal,
Apologies, shared the wrong JSON.
Kindly find the correct JSON below:
{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"statusConfig": {
"active": "true",
"inactive": "false"
},
"statusAndThresholdConfig": {
"inactivateAccountsNotInFile": false,
"deleteLinks": "true",
"includeExistingInActiveAccounts": "true"
},
"http": {
"url": "***",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/x-www-form-urlencoded",
"httpMethod": "GET"
},
"listField": "Resources",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "id~#~char",
"displayName": "displayName~#~char",
"name": "userName~#~char",
"status": "active~#~char",
"customproperty1": "id~#~char",
"customproperty2": "#CONST#${String r1 = response.'urn:scim:schemas:extension:fa:2.0:faUser'.workerInformation.personNumber; return r1}~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"
},
"pagination": {
"nextUrl": {
"nextUrlPath": "${response?.completeResponseMap?.next_page==null?null:response.completeResponseMap.next_page}"
}
}
}
},
"acctEntMappings": {
"Job Role": {
"listPath": "roles",
"idPath": "value",
"keyField": "entitlement_value"
}
}
},
"entitlementParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"entTypes": {
"Job Role": {
"entTypeOrder": 0
}
}
},
"acctEntParams": {
"entTypes": {
"Job Role": {
"call": {
"call1": {
"processingType": "acctToEntMapping"
}
}
}
}
}
}
Job details:
The job ran successfully but no accounts have been imported.
Log viewer:
Kindly note it is an Oracle Fusion application, so if any other steps need to follow, kindly let me know.
Revards,
Vidhi.
11/29/2023 02:14 AM
Hello @sudeshjaiswal ,
Any update here?
12/01/2023 01:07 AM
Hello @sudeshjaiswal ,
Any update here?
12/01/2023 02:09 AM - edited 12/01/2023 02:10 AM
Hello @Vidhimehta,
Sorry for the delay in the response, could you please share the compelete log.
Thanks.
12/04/2023 02:28 AM
Hello @sudeshjaiswal,
All details shared in the thread. Kindly let me know if you are looking for something specific, I can share accordingly.
Regards,
Vidhi.
12/04/2023 02:43 AM
12/04/2023 08:06 AM
Hello @Vidhimehta,
Thanks for sharing the postman snippet, can you please confirm if you are passing anything in the headers as well?
Please provide the snapshot from the postman.
Thanks.