How To chain multiple webservice calls from Action tab

amir_ansari18amir_ansari18 IndiaCommunity Member Qubie ✭

How To chain multiple webservice calls from Action tab

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.

Answers

  • NiCNiC Community Member 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.

  • AkdashboardAkdashboard 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?

  • TomGTomG Raleigh, NCCommunity Member Wizard ✭✭✭✭✭

    @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.

  • amir_ansari18amir_ansari18 IndiaCommunity Member 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_ansari18amir_ansari18 IndiaCommunity Member 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.

  • TomGTomG Raleigh, NCCommunity Member 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_ansari18amir_ansari18 IndiaCommunity Member 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.

Sign In to Comment