Community Groups are officially here!
We've released Groups, a new feature that enables us to connect community members of similar industries and interests in a shared, private space. You can check out all of the details here, including information about who can join, how to join, and what Groups are currently offered. Please leave your feedback through this Community Groups Feedback Survey.

How To chain multiple webservice calls from Action tab

amir_ansari18
amir_ansari18 IndiaCommunity Member, Qualtrics Brand Admin Qubie ✭

Hi ,

I want to call multiple webservice from one task in Atcion tab. First webservice fetch some data from 3rd party system and one field from the header response needs to be fed to second webservice in the same task. How can this be achieved.

Best Answer

  • TomG
    TomG Raleigh, NCCommunity Member, Qualtrics Brand Admin Wizard ✭✭✭✭✭
    Accepted Answer

    @amir_ansari18,

    You need to write a web service script that you fire from the Action tab that calls the other web services and manages the data flow between them.

Answers

  • NiC
    NiC MumbaiCommunity Member, XMPN Member, Qualtrics Brand Admin Superuser ✭✭✭✭

    hi @amir_ansari18 as far as i know. These API can't be chained as data which comes through after API has ran can't be saved somewhere.

  • Akdashboard
    Akdashboard South CarolinaCommunity Member Superuser ✭✭✭✭

    Could you do the dependent web service calls in the Survey Flow and the final as an action in the Action Tab?

  • amir_ansari18
    amir_ansari18 IndiaCommunity Member, Qualtrics Brand Admin Qubie ✭

    @Akdashboard said:
    Could you do the dependent web service calls in the Survey Flow and the final as an action in the Action Tab?

    I tried that but from survey flow i could not find a way to provide credentials for my external webservice.

  • amir_ansari18
    amir_ansari18 IndiaCommunity Member, Qualtrics Brand Admin Qubie ✭

    @TomG said:
    @amir_ansari18,

    You need to write a web service script that you fire from the Action tab that calls the other web services and manages the data flow between them.

    Would you please guide me where can i find more help in creating web service script and calling from Action.

  • TomG
    TomG Raleigh, NCCommunity Member, Qualtrics Brand Admin Wizard ✭✭✭✭✭

    @amir_ansari18 said:

    @TomG said:
    @amir_ansari18,

    You need to write a web service script that you fire from the Action tab that calls the other web services and manages the data flow between them.

    Would you please guide me where can i find more help in creating web service script and calling from Action.

    That's a pretty broad question. Here is a post I did on web service basics:
    https://stackoverflow.com/a/43481680/4434072

  • amir_ansari18
    amir_ansari18 IndiaCommunity Member, Qualtrics Brand Admin Qubie ✭

    I was able to trigger the GET call of the external API and data is coming into qualtrics. Now the issue is i need to trigger POST method of same API just after GET and need to pass one key field value in POST methods header from the header response of the GET call. But since that key value is dynamic and will change after each call i have to use some kind of variable concept. Now my question in how can i extract that key field value and pass it to the header of POST call.

    Thanks in advance.

  • KRum
    KRum New ZealandCommunity Member, Qualtrics Brand Admin Qubie ✭

    Did you manage to find a way to do this? I am hoping to do something similar.