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 / Barcode only save part
Power Apps
Answered

Barcode only save part

(0) ShareShare
ReportReport
Posted on by 55

I have a scan button in my app. The scanned value is also saved correctly. However, there is information in the barcode that should not be saved. Barcode: 95419601011. 
After scanning, only the last 5 Numbers should be saved.

Scanbutton "Onscan"= UpdateContext({var_Barcode:Self.Barcodes})

Savebutton "OnSelect"= SubmitForm(Eingabe_Detail);;UpdateContext({varScannedItem:Blank()})

Can someone help?

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Nobbi63 ,

     

    Please try this

    UpdateContext({var_Barcode:Right(Self.Barcodes,5)})

     

    Best Regards,

    Wearsky

  • Nobbi63 Profile Picture
    55 on at


    Error: The Right function returns invalid arguments

    Error: 
    invalid schema. A single-digit table was expected

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Nobbi63 ,

     

    Try this

    UpdateContext({var_Barcode:Right(Self.Barcodes;5)})

     

    Best Regards,

    Wearsky

  • Nobbi63 Profile Picture
    55 on at

    I did it (;)

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Nobbi63 ,

     

    It seems to be a table outputs.

    Please try this

    UpdateContext({var_Barcode:Right(First(Self.Barcodes).Value;5)})

     

    Best Regards,

    Wearsky

  • Nobbi63 Profile Picture
    55 on at

    Now I Have an Error in the Default Value (First(var_Barcode).Value)

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Nobbi63 ,

     

    Use var_Barcode instead of using First(var_Barcode).Value

     

    Best Regards,

    Wearsky

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard