coolkl
Well Known Member
Hello Everyone,
I am creating an Orchestrator to upload a PDF file. I am using REST API as per link - /file/upload https://docs.oracle.com/en/applicat...product/9.2/rest-api/op-file-upload-post.html
Step 1 - I have created a connector to request for token => Request a Token v1 - POST - /tokenrequest. This works and token is retrieved.
https://docs.oracle.com/en/applicat...roduct/9.2/rest-api/op-tokenrequest-post.html
Step 2: I have created a connector to upload the media object using /file/upload API. I am stuck at point, how do i send the token from first connector output to second connector. Even if I manually copy the token, the call fails
{
"token":044oD+2kyJP4SkyhccLv9M7DZCzbfDGa43xBGQ4HFVJMTYxMjAyMUpERV9TdHVkaW8xNjEwNTEzMTM4Njk0",
"deviceName":"MyDevice",
"ssoEnabled":false,
"moStructure":"ABGT",
"moKey":[
"109"
],
"formName":"P01012_W01012B",
"version":"ZJDE0001",
"file":{
"fileName":"90001.pdf",
"fileLocation":"\\Test999\ftptest\",
"itemName":"Uploaded File APIs",
"sequence":2
}
}
Not sure if any output formatting is required or how that is done ? Your help is highly appreciated
I am creating an Orchestrator to upload a PDF file. I am using REST API as per link - /file/upload https://docs.oracle.com/en/applicat...product/9.2/rest-api/op-file-upload-post.html
Step 1 - I have created a connector to request for token => Request a Token v1 - POST - /tokenrequest. This works and token is retrieved.
https://docs.oracle.com/en/applicat...roduct/9.2/rest-api/op-tokenrequest-post.html
Step 2: I have created a connector to upload the media object using /file/upload API. I am stuck at point, how do i send the token from first connector output to second connector. Even if I manually copy the token, the call fails
{
"token":044oD+2kyJP4SkyhccLv9M7DZCzbfDGa43xBGQ4HFVJMTYxMjAyMUpERV9TdHVkaW8xNjEwNTEzMTM4Njk0",
"deviceName":"MyDevice",
"ssoEnabled":false,
"moStructure":"ABGT",
"moKey":[
"109"
],
"formName":"P01012_W01012B",
"version":"ZJDE0001",
"file":{
"fileName":"90001.pdf",
"fileLocation":"\\Test999\ftptest\",
"itemName":"Uploaded File APIs",
"sequence":2
}
}
Not sure if any output formatting is required or how that is done ? Your help is highly appreciated