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 Apps / Add record to collecti...
Power Apps
Unanswered

Add record to collection/variable with nested/related record in Dataverse

(0) ShareShare
ReportReport
Posted on by 17

Hi,
Is it correct that when you add a record to a collection or variable, the related nested fields is not accessable ?
I try to add "Orders" to a variable that have "Customer" as a nested record defined by a relationship in dataverse. 

When Orders is added to the variable like "set(varOrder;Lookup(Orders; OrderID = XXXX))", i cant access the related record like "varOrder.Customer.BusinessName"

Is that normal behavor and a lookup is needed?

 

Thanks,

 

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    var is probably empty, it cant find nothing with that order ID

    You can check that with IsEmpty or IsBlank function

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • kaos Profile Picture
    17 on at

    var is not empty. That is confirmed by accessing the variable manually with the IDE.

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    varOrder.Customer.BusinessName this field might be empty.

    If you say that the var has info and everything is good, if you put that on a label it should appear with no problem unless it has no info, of course

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • kaos Profile Picture
    17 on at

    When accessing the variable, tables marked with yellow is not accessible. That confirms that varOrder.Customer.BusinessName is not available. The picture does not show the Customer relationship,  but other metadata that is also not available.

     

    Do I miss something?
    variable.png

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard