Add multiple records from another form - deluge help needed

Add multiple records from another form - deluge help needed

I know enough to be dangerous - thus i can't seem to figure out what i'm doing wrong here on this script.  It won't let me save, saying error in line 1.  Any help is appreciated

for each fetchrec in Client_Details [(Status == "Customer") && (Status == "Pending Termination")]
{
insert into Tasks
    [
        Status = "Open"
        Due_Date = Zoho.currentdate
        Title = "Process Pending Payments for" & " " & fetchrec.Management_Company
        Task_Description = "Process Pending Payments and Post Lockbox"
        Added_User = zoho.loginuser
        Client_Details = fetchrec.ID
        Assigned_to_Team = fetchrec.Team_Assignment
    ];
}

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now