0

i have a web activity through which i am executing a rest API(execute queries) this is a sample output of that:

        {

         "results": [
             {
             "tables": [
                 {
                 "rows": [
                       {
                       "[Value]": "2022-10-25T00:00:00Z"
                       }
                      ]
                  }
             ]
         }
]

i want to store the date value inside [Value] in a variable in adf

(variable value should be:2022-10-25T00:00:00Z)

but i am not able to do that because of square brackets this is what i have tried

"@activity('SQl validation').output.results[0].tables[0].rows[0].[value]"

but it give me error

Position 73 Unrecognized expression: value

please suggest how i can fix this

enter image description here

1
  • Edit the question to provide the error message as well. Commented Nov 15, 2022 at 11:32

1 Answer 1

0
  • Look at the following demonstration. I have the lookup which returns the following values.

enter image description here

  • To access the [companyId] attribute from this output array, I have used the following dynamic content (Using for loop just for demonstration):
@string(activity('myLookUp').output.value[item()]['[companyId]'])

enter image description here

  • So, you can use the following dynamic content instead:
@activity('SQl validation').output.results[0].tables[0].rows[0]['[value]']
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.