Query Related to Data Pull using API | XM Community
Skip to main content
Question

Query Related to Data Pull using API


Forum|alt.badge.img+2
  • Level 2 ●●
  • 21 replies

I understand that by setting up useLabels as true we can export data in choice label format through APIs.
But i have a requirement where for few questions i need to values in numeric format while for rest variables i need values in choice label format. Will it be possible to achieve using APIs or any other way?
 

4 replies

Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+32
  • Level 8 ●●●●●●●●
  • 633 replies
  • January 15, 2024

Try changing the variable naming of the questions where we need numbers. Please note this will also change the value shown in data analysis and dashboard.


Forum|alt.badge.img+2
  • Author
  • Level 2 ●●
  • 21 replies
  • January 16, 2024

Thanks for your inputs @Shashi.

But if i follow your suggestion, i have to do variable naming at many places in the survey which will be quite time consuming process. Do you have any other suggestion here? Is there any way we can pull partial records using useLabels=true while remaining keeping useLabels=false.


Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+32
  • Level 8 ●●●●●●●●
  • 633 replies
  • January 16, 2024
Salim wrote:

Thanks for your inputs @Shashi.

But if i follow your suggestion, i have to do variable naming at many places in the survey which will be quite time consuming process. Do you have any other suggestion here? Is there any way we can pull partial records using useLabels=true while remaining keeping useLabels=false.

In that case not so good approach but we need to call the API twice with using question id as parameter and then meger them outside using some middleware.


Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+32
  • Level 8 ●●●●●●●●
  • 633 replies
  • February 1, 2024

@Salim - For new surveys which are not yet live, you can make use of embedded data to pipe in label or recode values of the questions response. This will give you desired output in the API irrespective if useLabels is true or false.


Leave a Reply