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 / 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
    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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard