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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Now() doesnt getting s...
Power Apps
Unanswered

Now() doesnt getting saved in datetime column in SharePoint - Resubmit form

(0) ShareShare
ReportReport
Posted on by 531

I have a powerapp new form where user can create New Room booking request. On submission of this form, I am saving Submission _date_time field as current time. This works fine.

 

Update property of Submission_date_time

Now()

 

However if i use the same logic in EditForm field for resubmitting the request by same user, above field doesnt save current datetime.

Update property of Submission_date_time in EditForm

Now()

 

May i know how to solve this?

Categories:
I have the same question (0)
  • Hassan_SZ_365 Profile Picture
    542 on at

    Hi @Iantaylor2050 ,

    For your PowerApps form where the Now() function isn't updating the Submission_date_time field in the EditForm, you might need to refresh the data source or reset the form field to ensure the current date and time are captured correctly. In some cases, the EditForm might be holding onto the old data.

    Use this formula:

     

    UpdateContext({currentDateTime: Now()});
    Patch(YourDataSource, YourForm.Item, {Submission_date_time: currentDateTime});
    SubmitForm(YourEditForm);

     

    Replace YourDataSource with the name of your SharePoint list and YourEditForm with the name of your edit form.

    This code snippet first captures the current date and time in a variable (currentDateTime), then patches the Submission_date_time field with this value before submitting the form.

    Ensures that the Submission_date_time field is explicitly updated with the current date and time every time the form is submitted in edit mode.

    Best Regards,

    Hassan Raza

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @Iantaylor2050,

    That's easy, you just need to set a timestamp once you open the edit form.

    Set the OnVisible property of your screen including your edit form as:

    Set(TimeStamp,Now())

    Set the Update property of the submission date time data card as this variable:

    TimeStamp

     

    Or a easier way, set the OnSuccess property of your edit form as below:

    Patch(list,form.LastSubmit,{SubmissionDateTime:Now()})

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard