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 / Concat with values in DB
Power Apps
Answered

Concat with values in DB

(0) ShareShare
ReportReport
Posted on by 67

Hi everyone,

I'm pretty new on PowerApps, and I need help to set DefaultValue in one of my forms :

I got a card, and I want its default value to be the concatenation of today's date and a value stored in my db at [dbo].[numberIndic].

What I've tried so far :

Concatenate(Text(Today();"yyyymmdd");<here the value from table>)

How can I do this ?

 

Thanks !

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    Hi @BaptisteP,

    Assuming that the DataSource of the Form that is housing your DataCard is based on the table [dbo].[numberIndic],, you would have something like

    Text(Today();"yyyymmdd") & ThisItem.YourFieldName

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • BaptisteP Profile Picture
    67 on at

    Thanks for you answer @WarrenBelz !

    But actually my form is based on an other table, is there a way to get that value anyway ?

     

    Or maybe I can use the ID value from the current table, but since the row isn't yet generated I do not know how to retrieve the ID that will be generated with the validation of the form.

  • Verified answer
    WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    @BaptisteP ,

    That is a bit different subject to what you posted.

    You can use a Lookup to the other table if you have a common key to the form, or you can retrieve the ID of a new record with YourFormName.LastSubmit.ID

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it 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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard