Azure Data Factory: Output Script Activity

Poel van der, RE (Ron) 451 Reputation points
2022-03-15T17:56:58.053+00:00

Hi

I am using two Script activities. The first one reads a table to get one row.

183227-knipsel.jpg

This array is then the input for the second Script activity. In this second one I will build a SQL query (concat or string interpolation (preferred)).
But how do I refer to the three items SRC_STM_CODE / SRC_SCM_CODE / SRC_DSET_TECH_NM?
Query would then be something like:
Update SRC_SCM_CODE.SRC_DSET_TECH_NM set Procesdate = current date where System = SRC_STM_CODE

@activity('Select_HLP_CFG').output.resultSets[0]['rows'] gives me the whole array.

I have tried so many things, but don't succeed. :(
Really hope someone can help.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,623 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nasreen Akter 10,811 Reputation points Volunteer Moderator
    2022-03-15T18:01:34.333+00:00

    Hi @Poel van der, RE (Ron) ,

    what about @activity('Select_HLP_CFG').output.resultSets[0]['rows'][0].SRC_STM_CODE?

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.