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

Adding date submitted onto sharepoint

(0) ShareShare
ReportReport
Posted on by

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)
  • Community Power Platform Member Profile Picture
    on at

    @WarrenBelz ,

     

    Perfect, works great!

  • Verified answer
    WarrenBelz Profile Picture
    153,529 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

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
Kalathiya Profile Picture

Kalathiya 421

#2
WarrenBelz Profile Picture

WarrenBelz 365 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard