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 / "Title: Field 'Title' ...
Power Apps
Unanswered

"Title: Field 'Title' is required" error on function.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Comunity,

 

I have a button in my app that is supposed to update some columns in a sharepoint list and i am getting "Title: Field 'Title' is required" error on my function.

Intrested in 4 columns in List: 'Start Time' , 'End Time' , 'Time Spent' , 'Active Session'

'Start Time' - at the press of a button just updates the column with that moments date and time - This was done !

'Active Session' - Yes/No type column. When start time is pressed active session turns to 'Yes'  - This was done !

'Time Spent' - calculated time in minutes from when start time was pressed untill end time was pressed

'End Time" - at the press of a button to update 'End Time', 'Time Spent' and switch 'Active Session' to 'No'

My function as i wrote it:

 

If(
LookUp('Time Records',User = UserField.Text, true) && LookUp('Time Records','Active Session' = true, true), Patch('Time Records',Defaults('Time Records'), {'End time': Now(), 'Time Spent': DateDiff(varNewItem.'Start time',Now(),Minutes), 'Active Session': false}));

 

 

Categories:
  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    The Title column in SharePoint is a required field.  So if you are creating a new record and using Defaults() you must supply a value for the Title field.  Any text value will work, but it can't be null or an empty string.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for reply @Pstork1,

     

    Then i guess i used the function wrong ? Because i do not want to create a new record, i want to update already existing record that has 'Start Time' and 'Active session' YES/true...

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    The key to editing an existing record is that instead of the Defaults() parameter you need to identify the specific record you want to update.  In your case that would probably be done with a Lookup() something like this:

    Patch('Time Records',Lookup('Time Records',User = UserField.Text,'Active Session' = true), {'End time': Now(), 'Time Spent': DateDiff(varNewItem.'Start time',Now(),Minutes), 'Active Session': false})

     Since Title is already populated you can try without submitting a Title.  

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard