Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

How I can use Set variable from lookup?

(0) ShareShare
ReportReport
Posted on by

Set(varLookup,

If(IsBlank(LookUp('list_sharepoint', No = Value(DataCardValue39.Text),'Column')),

"f",

LookUp('list_sharepoint', No = Value(DataCardValue39.Text),'Column')));

I want to convert type of varLookup to Text.

Categories:
  • Verified answer
    Re: How I can use Set variable from lookup?

    @mmxupp,

     

    Set(varLookup,
    
    If(IsBlank(LookUp('list_sharepoint', No = Value(DataCardValue39.Text),'Column')),
    
    "f",
    
    LookUp('list_sharepoint', No = Value(DataCardValue39.Text),'Column'))));

     

    I did some test according to your description.

    You should be missing a parenthesis at the end of your expression and the varLookup will be text type.

  • mmxupp Profile Picture
    mmxupp on at
    Re: How I can use Set variable from lookup?

    @v-mingkz-msft Text

  • Re: How I can use Set variable from lookup?

    Hi @mmxupp,

    What is the type of 'Column' in your list?

     

    Best Regards,

    Kyrie

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard