on 2022 Sep 15 2:38 AM
Dear Experts,
Hello, I am having a problems using Ariba Event Management API to get itemID from specific Sourcing Projects.
The itemId from a project which is created with SOAP api cannot be obtained using API Event Management API. Please note that itemId from projects created on SAP Ariba UI can be acquired following the same acquiring procedure (#6 - #10).
The project was created following the procedures below:
#1 Select Post as request method
#2 Set objective url as "https://s1.ariba.com/Sourcing/soap/.../SourcingProjectImport"
#3 Input content from "body1.txt" into request body
#4 Define Content-Type in request Headers as text/xml
#5 Send the request
The method I used to get itemId is as below:
#6 Select Get as request method
#7 Acquire Oauth token (access_token)
#8 Input the following items(key: value) into Headers:
Accept: application/json
Authorization: Bearer{access_token}
apiKey: {apiKey}
#9 Set objective url as "https://openapi.ariba.com/api/sourcing-event/v2/prod/events/{event id}?realm={realm}&user={user}&passwordAdapter=PasswordAdapter1&$expand=none"
#10 Send the request
The expectations are:
① Response to #10 above shall return Item information
② "itemId" shall be included in ①
The incident is:
①500 respond with the following body:
{
"error": {
"errorCode": 50023,
"description": "ErrorID:<ASO-8546104551663058980204>",
"message": "Internal error while getting event items."
}
}
Please find body1.txt file mentioned above attached with captures of error.
It would be kind of you to let me know how did the incident happen and what is the resolution.
Kind Regards
Han
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.