How To Download Exported Data File Using API - Cloud Customer Connect
How To Download Exported Data File Using API - Cloud Customer Connect
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Planning
Back to Planning
Summary:
I need to down load file from EPBCS to my local computer using RestAPI
Content (required):
I have exported data using export Job and it is available in inbox/outbox folder and need to
download using REST API
Code Snippet (add any code snippets that support your topic, if applicable):
Tagged: PBCS, EPBCS
https://community.oracle.com/customerconnect/discussion/661280/how-to-download-exported-data-file-using-api 1/8
4/25/24, 10:44 AM How to Download exported data file using API? — Cloud Customer Connect
Flag Like
Answers
https://docs.oracle.com/en/cloud/saas/enterprise-performance-management-common/prest/down…
Downloads a file from the repository to the current directory in the local environment.
Regards
Stu
Flag 2 Like
As per the document using the same URL to download the file but getting Authorization error.
Flag Like
Hi Gayathri,
https://community.oracle.com/customerconnect/discussion/661280/how-to-download-exported-data-file-using-api 2/8
4/25/24, 10:44 AM How to Download exported data file using API? — Cloud Customer Connect
qq: Do you have enabled the traditional sign-method for that user?
Thanks,
Fred
Flag Like
Yes, enabled. Also tried with Admin id but getting same issue
Flag Like
If you are looking to download the file using REST API, it will not be as regular file download .
where a download session starts and it keeps downloading until full file is downloaded,
through rest api it returns octet stream reference of data, which means, if it is txt or csv file it
shows content on browser from where you hit the download part, or through postman, if you
are using EPM Automate it takes care of downloading the file as it downloads the file in
chunks, and appends to main file to make it full file.
In short you cant download a file from EPM using groovy in EPM, but if you are using EPM
Automate from your local system or If you install Groovy on your local system and calling rest
api through groovy , then it should work.
Flag 1 Like
https://community.oracle.com/customerconnect/discussion/661280/how-to-download-exported-data-file-using-api 3/8
4/25/24, 10:44 AM How to Download exported data file using API? — Cloud Customer Connect
REST API.docx
Uploaded Jan 9, 2024 424.92 KB
I am trying to use Rest API for file "Download" functionality within the EPM application, I have
delved into the API as indicated below. I would like to share a few key observations and look for
help, as I am not seeing any response from REST API.
Flag Like
It does not work with / you have to replace / with %5C escape character for EPM to interpret it
as a file under a folder, otherwise it thinks inbox/filename as a single word filename.
As an example for you i have created 2 files - 1. uploaded in standard inbox 2. uploaded in DM
inbox
https://community.oracle.com/customerconnect/discussion/661280/how-to-download-exported-data-file-using-api 4/8
4/25/24, 10:44 AM How to Download exported data file using API? — Cloud Customer Connect
You will see file in inbox is referred to as below to read the contents.
interop/rest/11.1.2.3.600/applicationsnapshots/inbox%5CSampleDownLoadFileDMInbox.txt
/contents
https://community.oracle.com/customerconnect/discussion/661280/how-to-download-exported-data-file-using-api 5/8
4/25/24, 10:44 AM How to Download exported data file using API? — Cloud Customer Connect
Flag 1 Like
Files in inbox/outbox can be accessed by GET calls and if it is directly under outbox then omit
'logs...log'
To download DM log file from Outbox (appname.log also works with single GET) as I see
inbox is already provided.
https://YourURL:443/interop/rest/v1/applicationsnapshots/outbox%5Clogs%5CXXXX.log/con
tents (where XXXX is the log file name)
https://YourURL:443/interop/rest/v1/applicationsnapshots/outbox%5Clogs%5CXXX.log/cont
ents/randomnumber (response of first GET, randomnumber will be returned from the call
itself and XXXX is the log file name)
https://YourURL:443/interop/rest/v1/applicationsnapshots/outbox%5Clogs%5CXXXX.log/con
tents/randomnumber/contents (response of second GET,randomnumber will be returned
from the call itself and XXXX is the log file name)
To download file as part of DM Data load rule (if filename is provided in options for
download)
https://YourURL/interop/rest/11.1.2.3.600/applicationsnapshots/filename.csv/contents
Flag Like
Thank you for your prompt reply. I have a question about downloading the file named
"07~OracleR12_Fixed_Assets.csv" from the DM folder- inbox/OracleR12_Fixed_Assets. I am
refering for document (REST API.docx) that I uploaded, but I don't see the "%5C" character in
the file name. Does the "~" character also cause any issues?
https://community.oracle.com/customerconnect/discussion/661280/how-to-download-exported-data-file-using-api 6/8
4/25/24, 10:44 AM How to Download exported data file using API? — Cloud Customer Connect
thanks
Flag Like
%5C is the interpretation for slash when using REST API in these cases. Just replace / with %5C
in your GET Calls
Flag Like
Leave a Comment
Type…
https://community.oracle.com/customerconnect/discussion/661280/how-to-download-exported-data-file-using-api 7/8
4/25/24, 10:44 AM How to Download exported data file using API? — Cloud Customer Connect
https://community.oracle.com/customerconnect/discussion/661280/how-to-download-exported-data-file-using-api 8/8