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 / (Form).LastSubmit date...
Power Apps
Unanswered

(Form).LastSubmit date not populating

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a form bound to an Azure SQL Database. There is a field "OfferDate", which is a Date type in SQL. Everything works as expected when a new record is created: the selected date saves to SQL properly and the form works normally.

 

But, if I access the form's "LastSubmit" property, the date value is empty. Note that LastSubmit does pickup everything else - including the primary key generated in the SQL db.

 

Can anybody help me understand what's going on here?

 

Thanks.

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

    Hi @Anonymous,

     

    Issue confirmed.

    32.PNG

    I will dig deeper and see if I could find any anthing helpful.

    Regards,

    Michael

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have the same issue.  Does anyone know when this issue will be fixed?  It's shocking that it has been 3 months and it still is not fixed.  Are we supposed to wait for 2 years before they work out all of the bugs before we deploy any apps that really matter to our businesses? 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    I have the same issue.  I was trying to add a record to collection  after submitting the form to dbo.table and I originally had Collect(collection,Form1.LastSubmitted) in OnSuccess but the date field would not populate even though all the other fields did. The workaround was to put Collect(collection,First(Sort(dbo.table,ID,Descending))) in the OnSuccess dropdown.

  • larspeterson Profile Picture
    42 on at

    This still doesn't appear to be fixed. I am using Azure SQL too.

     

    I collected my dates via a context variable on a submit button. On success of the form I then appended to the collection and a variable via a patch statement.

     

    I attached this to a forms OnSuccess for when it is a new form in case anyone needs a little guidance:

     

    UpdateContext({_MySelectedItemInGallery:
      Patch(MyCollection,
        Defaults(MyCollection), 

        MyForm.LastSubmit, 

        {MyDate: _MyContextCollectedDate}
      )}
    )

  • CreativeExpirements Profile Picture
    5 on at

    Currently experiencing the same issue which causes my form to display some empty fields after submitting, even though the previous values are stored in my SQL database.
    Seems like [Form].LastSubmit still can not hold date values, even after 4 years.

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 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard