Automatically attaching Lookup fields

Automatically attaching Lookup fields

Hello, 

So, I am trying to automate the attachments of lookup fields depending on the program that the contact is assigned too. There are 3 possible options for programs and then each program has multiple faculty that it needs to link too. So I need them to work with IF statements, but I'm having trouble figuring out how to create it.

This is what I have so far:

contactMap = zoho.crm.getRecordById("Contacts",contactId);
info contactMap;
updateMap = Map();
If "Program" = SUD;
updateMap.put("Supervising Faculty", Vanessa Garcia)

I think I'm using the IF function wrong, but I'm not sure how to fix it.

Thank you for any assistance you can give!
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方