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 / Adding date submitted ...
Power Apps
Answered

Adding date submitted onto sharepoint

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi guys,

In my expense app I currently have a button that when pressed, updated my 'approval' from unsubmitted to pending. This works, however I'd also like to add the time of when this button is pressed to a column that ive created called 'date submitted' (which is in sharepoint). how do i change my code to reflect this?

 

Here is my code:

UpdateIf(
LineItems,

Approval.Value = "Unsubmitted",
{
Approval: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value: "Pending"
}
}
);

Navigate(SubmittedExpensesScreen)

 

Thanks in advance and let me know if you have any questions!

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,496 Most Valuable Professional on at

    Hi @Anonymous ,

    Try this

    UpdateIf(
     LineItems,
     Approval.Value = "Unsubmitted",
     {
     Approval: {Value: "Pending"},
     'Date Submitted': Now()
     }
    );
    Navigate(SubmittedExpensesScreen)

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @WarrenBelz ,

     

    Perfect, works great!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 531 Most Valuable Professional

#2
Haque Profile Picture

Haque 261

#3
Kalathiya Profile Picture

Kalathiya 221 Super User 2026 Season 1

Last 30 days Overall leaderboard