Good morning
I'm trying to create a timekeeper app and when the user clicks 'login' I need there to be a check on the user to see if they have ANA next to their record in dataverse. If they have 'ANA' next to their record in dataverse then they need to have a default start time of 7am for them. Right now I have -
Collect(
'Time',
{
'User Code': TextInputUserCode.Text,
'Login Time': DateTimeValue("7:00 AM"),
'Logged In': Text("Yes"),
}
);
This logic works for all users and starts them at 7am. How can I filter it so that it only works for users with ANA next to their record in dataverse and the rest of the users have login time 'Now()'.
I;m guessing I have to create some sort of 'if' statement but Im unsure how to write it.
I've also created another post in the dataverse forum to have a 7:00am default column next to each user so that I can just filter it this way but I dont think dataverse allows date and custom time columns, only date and time right now columns.
Any help is much appreciated. Thank you all.