Create data type ‘point’ which has User, date (date) and ‘points’ (number)
Have field ‘points’ on User
When page is loaded, only when Do a search for points (date = Current date/time rounded down to day):first item is empty, create a new point for current user and add points to Current user’s points
Extract day from Current date time, if Saturday/Sunday increase points by X
For holidays, you could create a data type holiday which has the date of each valid holiday and search the Holidays to see if today is a holiday.
Hi, thanks a lot for your fast reply, I followed your instructions but every time the search for points: first item in the debugger turns up empty, even though it isn’t in the data.
The date of your point is Sept 3rd 11:29, and your Current date time expression rounds to Sept 3rd 00:00, so the dates aren’t equal.
Add the dates so that each date is at midnight, or make the search constraints a range so date >= current date time rounded down to day and date< current date time rounded down to day +days (1)