I need help! I'm trying to create multiple records in db based upon my checkbox field called class. I've tried to write the code but it isn't work. Is it possible for someone to assist me? I started off by checking to ensure that there is a value. If there is...then for each value create a record in the db.
- if (input.Class != Null){
- for each key in input.Class
- {
- insert into Classwork_Tracker
- [
- Added_User = zoho.loginuser
- Class = key.Class
- Bell_Ringer = input.Bell_Ringer
- Homework=input.homeowork
- Class_Work = input.Class_Work
- Ticket_out_the_door=input.Ticket_out _the_door
- Date1 = input.Date1]
- }
- }