web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : I1bqZJIMlCeLw4NEjd++uV
Power Apps - Building Power Apps
Answered

Canvas app, setting a variable with multiple fields..ie joining a bunch into one variable

Like (0) ShareShare
ReportReport
Posted on 28 Aug 2023 22:35:46 by 677

Hi all,

 

I want to set a variable based on the current timestamp and date along with a prefix.

for example.

Set(UniqueID,"GB"+Today()+somethingaboutseconds)??

 

 

I assume it will be similar syntax for pre-populating a textbox with "Welcome" and appending an office 365 username to it?

If so, how do I do that too :)? At the moment I have two text boxes, one with 'Welcome' and another with the Office.365Users.Myprofile().Displayname in it. Would be great to have this in one box so I can align more reliably.

 

Thank you!

 

Categories:
  • Verified answer
    Ami K Profile Picture
    15,665 Super User 2024 Season 1 on 28 Aug 2023 at 23:03:27
    Re: Canvas app, setting a variable with multiple fields..ie joining a bunch into one variable

    @RandomDept ,

     

    Set(
     UniqueID,
     "GB" & Value(Now())
    )

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

  • Verified answer
    RandomDept Profile Picture
    677 on 28 Aug 2023 at 22:55:47
    Re: Canvas app, setting a variable with multiple fields..ie joining a bunch into one variable

    That did it!

     

    Thank you

     

    Now I need to try and figure out how I would convert 'GB1238/29/2023 8:47 AM' into a string / so it looks more like

    #GB1238292023847

  • Verified answer
    Ami K Profile Picture
    15,665 Super User 2024 Season 1 on 28 Aug 2023 at 22:39:44
    Re: Canvas app, setting a variable with multiple fields..ie joining a bunch into one variable

    Try:

     

    Set(
     UniqueID,
     "GB " & Now()
    )

     

     

    And: 

    "Welcome " & User().FullName

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete