How to consume the output of a (SQL) script in a pipeline in a data flow in order to join with data from other external sources?

Michael MacGregor 6 Reputation points
2022-12-23T21:10:46.447+00:00

I'm new to Azure Synapse.

I'm using a (SQL) script in a pipeline to run a query retrieving data from multiple tables located in an Azure SQL Database and then wish to consume that data in a data flow where it will be joined with data pulled from another external database and undergo some transformations and aggregation before being saved to another database. How do I get the data flow to consume the data from the script activity? I can't seem to figure that out, and the documentation only goes on about other pipeline activities such as Lookup or Copy not data flows. I also don't see an option in the script activity as to where to save the actual output.

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,373 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AnnuKumari-MSFT 34,551 Reputation points Microsoft Employee Moderator
    2022-12-27T05:07:48.063+00:00

    Hi @Michael MacGregor ,

    Thankyou for using Microsoft Q&A platform and thanks for posting your question here.

    As I understand your query, you want to know the way to pass the output of script activity into dataflow . Please let me know if that is not the ask here.

    You can create parameter inside dataflow and use this expression : @{activity('Script1').output.resultSets} in the parameterTab of Dataflow activity with expression option unchecked. You can then leverage the dataflow parameter in any of the transformations to use it.

    274009-passoutputtodf.gif

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you.
      Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.