Unable to run the API "Export Data"

book

Article ID: 17057

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

Working with API's and getting different results than if I use the Portal directly.



What am I setting incorrectly in my API settings that would account for the difference between the portal and API outputs?

Environment

TDM 4.2

Resolution

Export API has 2 different types of response based on the parameter value "async". If the value for this parameter is empty or false, the API returns the exported files as response.

For downloading the exported files, you need to use Chrome Postman REST client. While sending the request select "Send and Download" option, instead of "Send". When asked to save the response, save it as zip file. (Note that you have to explicitly mention the file extension .zip while saving). 

If the value for "async" parameter is set to true, the export action is submitted as a job and returns the job details in the response. In this case you need to look for the job id and use it to get the status of the job. 

Please note, with all the API calls, a high level of programming knowledge is expected to read the SWAGGER documents and understand their implementation.

Additional Information

Video URL on how to open a Support Case - https://communities.ca.com/videos/5898-demo-how-to-open-a-support-case

You can download the latest version of TDM by following the directions in this document: https://support.ca.com/us/knowledge-base-articles.TEC1903942.html.   

To contact support, go to https://www.ca.com/us/services-support/ca-support/contact-support.html