web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Using outputs from pre...
Power Automate
Unanswered

Using outputs from previous steps and save data as variables for next steps

(0) ShareShare
ReportReport
Posted on by

Hi

 

I defined flow on which I am creating an Opportunity from a qualified lead (Sales Hub).

Once Opportunity is created, I am getting as a response a json: 

 

"@odata.context": "https://org511d6f6a.crm4.dynamics.com/api/data/v9.1/$metadata#opportunities",
"value": [
{
"@odata.type": "#Microsoft.Dynamics.CRM.opportunity",
"opportunityid": "0c16019e-2e09-ee11-8f6e-000d3aabcc45"
}
]
}

 

I would like to keep the opportunityid as a variable for a later use 

(Copy Contact/Account from the originate Lead into the new Contact)

 

I know I have to use expression but I have some issues with the correct syntax.

 

Can you please advise.

 

Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,479 Super User 2025 Season 2 on at

    Something like this

    lbendlin_0-1686619215651.png

     

    Note: For some weird reason my Power Automate would not accept "@odata..." but works fine with "odata". no idea why.

  • Community Power Platform Member Profile Picture
    on at

    Thanks! I will try the Initialized variable step.

     

    if I understand correctly, you screenshot includes static input for the Compose, I would like to use the data which retrieved from previous step, I tried the following before your reply. what should I change?

     

    Liorco_0-1686639716812.png

     

  • lbendlin Profile Picture
    8,479 Super User 2025 Season 2 on at

    Ignore the Compose step - that was just a way for me to use your sample data.  Your "Set variable"  step needs to parse the output of the step that produced the JSON.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard