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 / Save text data in a la...
Power Apps
Answered

Save text data in a label from nfc in powerapps

(0) ShareShare
ReportReport
Posted on by 294

Hello everyone, i am trying to save text data from nfc in a label.

 

How can i do this ?

 

I have created a button with onselect property that scans code, but i don't know how save this text data on a label.

 

Anyone can help me ?

 

Thank you

Categories:
I have the same question (0)
  • Verified answer
    C-Papa Profile Picture
    1,836 on at

    try the below, i haven't been able to test but this should work

     

    on the button OnSelect: Set(var_My_Scanned_Tag, ReadNFC()) 

     

    For the label text property, add var_My_Scanned_Tag. when you type the last . after tag it will show you you available options to display. you probably want var_My_Scanned_Tag.Text

  • gennarodp Profile Picture
    294 on at

    it doesnt' work 😞

     

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @gennarodp,

    Based on the issue that you mentioned, do you want to display NFC value in a Label?

    Could you please share a bit more about your scenario?

     

    Actually, the  ReadNFC() returns a record containing the following field:

    vqiaqimsft_0-1635475373303.png

     

    ReadNFC is only supported when running the app in a native mobile player such as the iOS and Andriod players. Even with a supported player, a device may not support NFC, in which case a message will be shown to the user and the function will return a blank record.

    Please note that Text and URI datatypes are supported.

     

    Add a Label and set the Text property as below:

    With( ReadNFC(), 
     If( Not IsBlank( Text ), 
     "Read Text: " & Text, 
     Not IsBlank( URI ),
     "Read URI: " & URI ,
     "Didn't read Text or URI" 
     )
    )

     

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 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard