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 Apps
Answered

Variable

(0) ShareShare
ReportReport
Posted on by 46

I've set a variable making use of Navigate('Scan Admin Screen', ScreenTransition.Cover, {ScanAdmin: DataCardKey28})

 

It pulls through to mentioned screen DataCardValue19.Text & "_" & ScanAdmin.Text

 

Everything appears to be working perfectly, but when I publish the app the Variable does not show the specific text?

 

The TextField shows "DataCardValue19(Content)_" but the last part(ScanAdmin variable) is missing or not showing at all?

 

Why is this?

Categories:
  • mdevaney Profile Picture
    29,993 Moderator on at

    @Andries1 

    This code is missing a reference to the Text property of the DataCardKey and therefore will not return anything.  Please make the following change.

     

    Navigate('Scan Admin Screen', ScreenTransition.Cover, {ScanAdmin: DataCardKey28.Text})

     

    Please also note, you are creating ScanAdmin as a context variable so it will reset to Blank() when the user navigates away from 'Scan Admin Screen'.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Andries1 Profile Picture
    46 on at

    I thought so much as well, but when I entered the below I get the following error?

    PowerApps.png
  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @Andries1 

    You are getting this error because you have several instances of ScanAdmin within your app that store variables of differing data types.  There are only 2 solutions:

     

    • Change the context variable ScanAdmin to a different name in that instance
    • Go through your entire app and make sure ScanAdmin always evaluates to Text

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard