search cancel

Unable to Download File through Export API Call from Javelin

book

Article ID: 243322

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

When trying to invoke the Export API POST call from Javelin to export a JSON file, the file is not getting downloaded.

http://xx.xxx.xx.xxx/TDMModelService/api/ca/v1/objects/444444/actions/export?documentGroupId=Sample&exportIntoMultipleFiles=false&projectId=7777&versionId=7777

Tried using async value as true and false as well but it unable to download the file.

Able to download the file manually in Swagger UI but not in Javelin flow.

Cause

Used incorrect API.

Environment

Release : 4.10.0.19

Component : Javelin

Resolution

Need to invoke DownloadObjectArtifact API http://localhost:8080/TDMJobService/api/ca/v1/jobs/{JOB_ID}/actions/downloadArtifact/  to download the exported files. The JOB_ID must be the ID of previously published export job in the Javelin flow.
 
Attached is the the available extension. The extension need to be imported to the environment and copy the DLL file to the C:\ProgramData\CA\JavelinConfig\x64\Extensions folder and restart Javelin. Then the the API call  http://localhost:8080/TDMJobService/api/ca/v1/jobs/{JOB_ID}/actions/downloadArtifact/ can be validated and it should download the file.

Additional Information

. TDMModelService API 

. Import Extensions into Javelin

. Deploy the Custom Extension 

Attachments

1654617634761__DownloadObjectArtifacts.rar get_app