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 / Textbox in card - look...
Power Apps
Unanswered

Textbox in card - lookup using parent.default

(0) ShareShare
ReportReport
Posted on by 12

In a data card (bound to field CustomerID), I have a text box.

 

If I hard code a lookup function like this, it shows the Customer Code:

 

LookUp('[dbo].[Customer]',CustomerID=16,CustomerCode)

 

However if I instead pass the Parent.Default value to the lookup function, it doesn't work:

LookUp('[dbo].[Customer]',CustomerID=Parent.Default,CustomerCode)

 

Thanks,

Dave

 

 

 

Categories:
I have the same question (0)
  • Leo09 Profile Picture
    212 on at

    May I know what is the purpose to pass the Parent.Default value to the lookup function?

  • Brank Profile Picture
    149 on at

    Where do you have the lookup function?

     

    I think would be easier if you just do a reference to the textbox itself. You can know the id of the textbox in a datacard by pressing it with the mouse. The name of the textbox inside your form should called like: "DataCardValue" with a number or something like that. So in the lookup you can do: Value(DataCardValue.text).

     

    Remember to use Value because it will convert the String to a Number type, if in the lookup you are comparing strings and numbers it just won't work.

     

    Regards,

  • dfin Profile Picture
    12 on at

    Thanks - using Value(default.parent) allowed my lookup to work.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 333 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 86 Super User 2026 Season 1

Last 30 days Overall leaderboard