E9.2 Using file/upload REST API - Orchestrator 9.2.4.4

coolkl

Active 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

1610517947123.png
 

sheeba

Reputable Poster
Coolkl - were you able to figure this out ? We may be trying this out soon too - so any feedback or experience you may want to share will be greatly appreciated .
Thanks
Sheeba
 

coolkl

Active Member
As per oracle this should work in 9.2.5.x version. The ability to create variables for File path and Mokey (single key) are supported in 9.2.5.x.
So yes pending to test in 9.2.5.x

However refer to Doc ID 2697443.1for the steps. You can Use the process with File server or FTP server
 

sheeba

Reputable Poster
As per oracle this should work in 9.2.5.x version. The ability to create variables for File path and Mokey (single key) are supported in 9.2.5.x.
So yes pending to test in 9.2.5.x

However refer to Doc ID 2697443.1for the steps. You can Use the process with File server or FTP server
Thanks - yes Oracle support also came back with the same doc. However, I was able to write up a bsfn to read a from a foldr and use the API to InsertMOfile into the MODAT table and then create a corresponding entry into F00165 table and get it to work.
 
Top