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 / Lookup not updating gl...
Power Apps
Answered

Lookup not updating global variable properly

(0) ShareShare
ReportReport
Posted on by 46

Hi! 

I have an app with gallery and multi pages create forms. Inspired by this.

DDBull_2-1698319184343.png

 

OnSelect property of my gallery looks like this:

 

 

If(!ThisItem.'WTN Type',
ViewForm(Form4);
ViewForm(Form4_1);
Set(gblRecordWTNCurrent, LookUp(WTNS, wtn_guid=ThisItem.wtn_guid));
Navigate('IN Section A');,
ViewForm(Form4_3);
ViewForm(Form4_4);
ViewForm(Form4_5);
ViewForm(Form4_6);
Set(gblRecordOUTCurrent, LookUp(WTNS, wtn_guid=ThisItem.wtn_guid));
Navigate('OUT Section A');
)

 

 

Item property of forms set to respective global variables.

DDBull_1-1698319123651.png

 

But when I select any item, only WTN Type field contains value, other fields are empty.

DDBull_3-1698319433929.png

When viewing record of global variables only wtn_guid field updates, the rest are empty.

DDBull_0-1698319022385.png

Why is lookup function not pulling whole record as it's supposed to?

Table is in Dataverse. 

Categories:
  • Verified answer
    SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @DDBull 

     

    I have had this kind of problem with Dataverse tables before. My workaround for this is to put the Dataverse table into a Collection. Then you can then apply a LookUp on the Collection and did work for me.

     

    So on the OnStart propety of my of my app I had:

    ClearCollect(colDataverseTable, DataverseTable);

    Be aware of the row limit so maybe try use a filter to bring down the numbers of rows in your collection.

     

    And then you can use the LookUp:

    If(!ThisItem.'WTN Type',
    ViewForm(Form4);
    ViewForm(Form4_1);
    Set(gblRecordWTNCurrent, LookUp(colDataverseTable, wtn_guid=ThisItem.wtn_guid));
    Navigate('IN Section A');,
    ViewForm(Form4_3);
    ViewForm(Form4_4);
    ViewForm(Form4_5);
    ViewForm(Form4_6);
    Set(gblRecordOUTCurrent, LookUp(colDataverseTable, wtn_guid=ThisItem.wtn_guid));
    Navigate('OUT Section A');
    )

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • DDBull Profile Picture
    46 on at

    Thank you! It worked! But I can't say that I like this type of approach, because I still don't know understand what the issue with my approach was 😊

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard