When passing a parameter to an Azure Data ADF pipeline from Power Automate: Failed: The expression 'pipeline().parameters.EmailTo.EmailFrom' cannot be evaluated because property 'EmailFrom' cannot be selected.

Gaultz 21 Reputation points
2021-11-15T05:47:23.44+00:00

I am trying to create a generic ADF Pipeline that:

  1. Is called from Power Automate (using Create a Pipeline Run)
  2. Has an EmailFrom parameter (type object), that is passed from Power Automate
  3. Converts EmailFrom parameter (object) to var_email variable (string)
  4. Using Web Activity, calls a Logic App to send an email using the var_email variable

This is how my Power Automate "Create a Pipeline" parameter looks like
149261-image.png

This is how I convert EmailFrom parameter (Object) to var_email variable (string) using "Set Variable" step in pipeline

@pipeline().parameters.EmailTo.EmailFrom  

When I call the ADF Pipeline from Power Automate, I get the following error in the Pipeline Runs
149331-image.png

However, when I use "Debug" mode in ADF Pipeline, passing the same parameter
149262-image.png

The email is successfully sent and received without any issues.

149209-image.png

How can I use the parameter passed from Power Automate to convert to string, and pass on to Logic App? What am I doing wrong here?

Cheers,
VT

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
{count} votes

Accepted answer
  1. ShaikMaheer-MSFT 38,546 Reputation points Microsoft Employee Moderator
    2021-11-15T15:45:31.483+00:00

    Hi @Gaultz ,

    Thank you for posting query in Microsoft Q&A Platform.

    I see there is a small mistake which you are doing. You should be using your pipeline parameters inside parameters of "Create pipeline run" logic app step.

    Please check below images where I implemented similar thing and it was working for me.

    Pipeline Implementation:
    149416-image.png

    Create pipeline Run step inside Power Automate:
    149463-image.png

    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
    1 person found this answer helpful.
    0 comments No comments

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.