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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get the RowID of a new...
Power Automate
Answered

Get the RowID of a new row of a dataverse table

(0) ShareShare
ReportReport
Posted on by 1,302

Hi 

I have a dataverse table which i will call 'Primary'.

 

I have a second table which is called 'secondary'.

 

I add a new record to 'secondary' and I want to relate this record to a record in 'Primary'.

 

Relate Rows 4 parameters :

Table Name - 'Secondary'

RowID of the newly created Record in 'Secondary'

Relationship - yes - I know this

Relate With  - The RowID of the table 'Primary'

 

How do I get the RowID of the newly created record in 'Secondary' ?

 

At the moment it is coming back Blank.  Compose is first(outputs('Secondary')?['body/value'])?['secondaryid']  where secondaryid is the unique value of the newly created record.

 

Thanks

 

Nigel

 

Categories:
I have the same question (0)
  • Verified answer
    NPrice99 Profile Picture
    1,302 on at

    I have found the issue - it was the compose statement - it should be body('<Create Dataverse Row Action>')?['<RowID Field Name>']

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @NigelP,

    Glad that you have resolved it.

    Could you please mark your reply as the answer to help more users?

    Thanks for your cooperation.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 535

Last 30 days Overall leaderboard