0

imbricated rest query possible ?

I need to call 2 differents REST webservices sequentially: The first one send me a list of IDs.

For each ID I get in this first call, I need to make a second call to get a list of contact linked to this Id, and display this list.

Is there a way to do this kind of treatment with Klipfolio ?

1 comment

  • Avatar
    Parker Selman Official comment

    Hi Jeremy,

    Thanks for the post! This is absolutely possible in Klips through the use of Dynamic Data Sources.  Essentially, this feature allows you to set a query parameter to a variable, with which you can pass a list of values to like your IDs. 

    In order to get this set up, you'll need to set up your 2nd data source with a variable present in the format {props.variablename}. Then, in a Klip, execute a formula using the MAP or MAPFLAT function with the following general structure:

    MAP(@your list of IDs , "variablename" , @the value you'd like returned from the 2nd data source) 

    This will return that specified value for each ID provided. 

    I hope this helps! If you have any questions or require additional support on this, feel free to email support@klipfolio.com and we'd be happy to help! 

    Parker

Please sign in to leave a comment.