Create new record in a table on click of save button

Kanika4
Tera Contributor

I want to create a new record in a table (table X) on click of save.

There are few checks that need to be in place before allowing the creation of new record in table X:

 

Check1: if the service selected on the current record (table Y) is already existed in table X

IF yes,

Check 2: Look for the start and the end time of the service being in used in table X.

 

If it is different from the start and the end time requested in the current record (table Y), then allow the creation of the record. Otherwise, stop creating it.

 

Can someone help with the date and time logic check ?

1 REPLY 1

AshishKM
Kilo Patron
Kilo Patron

Hi @Kanika4 , 

Share the code you have written for this use case, we will try to update it.

Share some column details of both the table.

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution