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 Apps / LookUp Yes/No Data Typ...
Power Apps
Unanswered

LookUp Yes/No Data Type in OnStrat property

(0) ShareShare
ReportReport
Posted on by 92

I am doing a lookup based on a dataverse table in OnStart. Below is my code.
Very confusing why the lookup result is empty. I also attach the screenshot of the table.

TW001_0-1691417625173.png

TW001_1-1691417653540.png

Set(
 CurrentAppVersion,
 "151"
);
Set(
 LatestAppVersion,
 LookUp(
 CSHHR_AppVersions,
 IsLatest = 1
 ).AppVersion
);
If(
 Value(CurrentAppVersion) <> Value(LatestAppVersion),
 Notify(
 "A newer version of this app is available. Please update to the latest version.",
 NotificationType.Warning
 )
)

 

 

I have the same question (0)
  • TW001 Profile Picture
    92 on at

    TW001_0-1691417792559.png

     

  • Verified answer
    Mitanshu Profile Picture
    1,650 Moderator on at

    Your IsLatest column is a choice column rather than a number column. So your LookUp is having a data type mismatch.

    Try something like below (you will have to adjust to your own column/table names):

     

    LookUp(
    	CSHHR_AppVersions,
    	IsLatest = 'IsLatest (CSHHR_AppVersions)'.Yes
    ).AppVersion

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If this post or my previous reply was useful in other ways, please consider giving it Thumbs Up.

     

  • TW001 Profile Picture
    92 on at

    Thanks for your answer. But it's still blank. I need get the correct version number.

    TW001_0-1691420698797.png

     

  • Mitanshu Profile Picture
    1,650 Moderator on at

    I trust you have done App -> Run OnStart before checking whether you get blank or not - correct?
    Do you get any error messages when you do App -> Run OnStart

    happyume_0-1691421043218.png

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If this post or my previous reply was useful in other ways, please consider giving it Thumbs Up.

  • TW001 Profile Picture
    92 on at

    Yes

    Spoiler (Highlight to read)
    LatestAppVersion = Error. (Error when trying to retrieve data from the network)
    LatestAppVersion = Error. (Error when trying to retrieve data from the network)

    TW001_0-1691421690136.png

     

  • TW001 Profile Picture
    92 on at

    I tried to updated the security role today and it works.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard