In export-responses/ API V3 how do I get the export id associated with each internal question id? | XM Community
Skip to main content

Hi,

In the export responses, I receive each response value and label with the internal question id instead of the alterned export question id. When you manually export through the web interface, it provides the export ids for each question. The API on the other hand does not do this. The API only returns the internal question id. How do I get the mapping of the internal question id to the user defined export question id? 

 

Thanks,

Leslie

@LeslieS 

Even when we export using API, the user defined question id’s will be exported. The exported file using API and manual export from Data and analysis tab will have same headers.

As you can see in the below image, Q1 is the user defined question id whereas {"ImportId":"QID2"} is the internal qurstion id. (This is export file using respomse export API)

 


The issue I have found is with exporting the results through the API into a JSON file. The example you show is what is returned for the CSV file. So it is possible to obtain the CSV file to obtain the mapping but I would expect the JSON file to use the export id instead of the internal id for the responses. Even better would be to have an API option that allows you to indicate which id to use in the JSON file (ImportIds or export Ids.


Leave a Reply