ADF : Dynamic content in parameters related to a Lookup activity

Aicha Bayram 61 Reputation points
2022-05-19T10:49:32.467+00:00

Hello,

I have a lookup activity in and ADF pipeline connected to a set Web Activity :

203656-1.png

I need to catch the Name and insert it in my web Activity :

203712-2.png

I 've tried multiple combination but still nothing (here an example):
@activity('Lookup1').output.value
@activity('Lookup1').output
@activity('Lookup1').output.firstRow
@activity('Lookup1').output.value[0]
@activity('Lookup1').output.firstRow.name
@activity('Lookup1').output.firstRow['Name']
@activity('Lookup1').output.Response

203713-3.png

Thank you for your help !

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,740 questions
{count} votes

Accepted answer
  1. AnnuKumari-MSFT 32,991 Reputation points Microsoft Employee
    2022-05-19T11:08:56.917+00:00

    Hi @Aicha Bayram ,
    Thankyou for using Microsoft Q&A platform and posting your query.
    As I understand your query, you are trying to refer to the lookup output inside web activity. Please correct me if my understanding is incorrect.

    Kindly try using the following expression: @{activity('Lookup1').output.firstRow.Name} as firstRow is checked for you in lookUp activity, 'Name' property is coming inside firstRow JSON.

    If you uncheck firstRow in lookup settings , Name property would have appeared in value[] array , so then the expression would have been @{activity('Lookup1').output.value[0].Name}

    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

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.