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 / SQL LookUp issue on Ca...
Power Apps
Answered

SQL LookUp issue on Canvas App

(0) ShareShare
ReportReport
Posted on by 174

Hello, 

 

I have IT Support sql table(Table A) which has ApplicationMatrixId column, On a label in App I am trying to lookup Application Name from ApplicationMatrix sql table(Table B) based on ApplicationMatrixId on Table A, but for some reason syntax is not recognizing ApplicationMatrixId. Am I doing something wrong?

 

"App Name: " & LookUp(ApplicationMatrix, Id = ApplicationMatrixId , ApplicationName)

 

Thank you!

godala_vamshi_1-1633563593400.png

 

godala_vamshi_0-1633563493901.png

 

Categories:
  • BCLS776 Profile Picture
    8,994 Moderator on at

    It looks like you are working off of a form, possibly connected to a gallery, right?

     

    If so, ApplicationMatrixId is probably a column name, not a reference to the specific field in a record. Instead try:

    "App Name: " & LookUp(ApplicationMatrix, Id = ThisItem.ApplicationMatrixId , ApplicationName)

    Hope that helps,

    Bryan

     

  • godala_vamshi Profile Picture
    174 on at

    @BCLS776  Yes, that ApplicationMatrixId column is in IT Support sql table, I need to get ApplicationName from ApplicationMatrix table, still error when I use ThisItem. 

    Thank you! 

     

    godala_vamshi_0-1633583530147.png

     

  • BCLS776 Profile Picture
    8,994 Moderator on at

    Could you share the whole error message? It is not clear what Power Apps is having an issue with

  • godala_vamshi Profile Picture
    174 on at

    @BCLS776 For = below is the error. 

    godala_vamshi_0-1633628688909.png

    For ThisItem, below is the error 

    godala_vamshi_1-1633628790678.png

     

     

  • BCLS776 Profile Picture
    8,994 Moderator on at

    Hmm, it is struggling with the reference to that column. Can you share the code that populates the label in the ApplicationMatrixID card in your form, the one that shows the value of 519 in your screenshot? We should be copying that same reference. Also, can you double-check that the IT Support table has a column named "Id"?

  • Z_Lukowski Profile Picture
    216 on at

    Hello, 

    Letter Sizes matters, in Function you have different name than in form, one have lower letters in id, other have Id,

    Possible that is the problem, check it:

    Z_Lukowski_0-1633637953611.png

     

    BR

    Zbigniew

  • godala_vamshi Profile Picture
    174 on at

    @BCLS776 For ApplicationMatrixID it is Parent.Default, I tried copying with it reference. 

     

    godala_vamshi_0-1633638340719.png

    godala_vamshi_2-1633638685127.png

     

    IT Support will have Id but we need to use ApplicationMatrixid to get the name 

    godala_vamshi_1-1633638480543.png

     

     

  • godala_vamshi Profile Picture
    174 on at

    @Z_Lukowski Its the same, I also tried as you said but same issue. 

    godala_vamshi_3-1633638789338.png

     

  • Z_Lukowski Profile Picture
    216 on at

    Sry, Im little blind I guess,

    Can you check what will prompt after you write "ThisItem." (Inntelij should give you some options), try creating inside your context label with ThisItem.ApplicationMatrixID and check what it contains?

     

    Also can we have two checks:

    1) Show the navigation left panel to check if we are still in context of Gallery/form with the label

    2) Check ApplicationMatrix SQL table to make sure that "ID" is there? Can you refresh your DataSource as well just to be 100% sure?

  • godala_vamshi Profile Picture
    174 on at

    @Z_Lukowski It doesn't give me any hits when I type ThisItem. Tried refreshing data sources,  Yes, ID is there on ApplicationMatrix.

     

    godala_vamshi_0-1633641526985.png

     

    godala_vamshi_1-1633641633003.png

    godala_vamshi_2-1633641743173.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

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 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard