Forum Discussion

DevinL's avatar
DevinL
Icon for Helper I rankHelper I
2 years ago
Solved

Looping through URL fabric pipeline

Background: I've pulled all account information from a REST API using a data pipeline and stored it in a datalake table called "Accounts".  I now want to pull debit transaction information for each i...
  • v-cboorla-msft's avatar
    2 years ago

    Hi DevinL 

     

    Thanks for using Microsoft Fabric Community.

    I have tried to repro the scenario. Please find the screenshot for reference.

    Sample rest API - reqres.in/api/users?page=2

    Data in Lakehouse.

    Pipeline configuration:

    Output:

    Try to use the below mentioned code in pipeline expression builder

    //mysource.com/api/accounts/@variables('id')/transactions/debits/ 

     If the issue still persists, please do let us know. Glad to help.

     

    I hope this information helps.

     

    Thank you.

  • v-cboorla-msft's avatar
    v-cboorla-msft
    2 years ago

    Hi DevinL 

     

    You can set the value - id to variable cust_id using set variable activity.

    You can use this variable cust_id in between your relative URL, in order to generate the URL dynamically.

    Note : I just use the dummy relative URL in place of that you can replace with actual URL accordingly.

     

    I hope this information helps. Please do let me know in case of any further queries.

     

    Thank you.