Add Date_of_Last_Purchase custom Function

Add Date_of_Last_Purchase custom Function

I am looking for a way to create a simple custom function that will execute when a new sales order is created.  The function will set a custom field on the customer called "Date_Last_Purchase" to the current date.  So as ever new sales order comes in for a customer, the field is updated.  Could someone help me create this custom function?  It would be great if I could update the field in Zoho Inventory customers as well as Zoho CRM accounts.

We plan to use this to automate emails to customers who have not ordered in a certain number of days.

Thank you for the help!
Drabbies

      Zoho Campaigns Resources


        • Desk Community Learning Series


        • Digest


        • Functions


        • Meetups


        • Kbase


        • Resources


        • Glossary


        • Desk Marketplace


        • MVP Corner


        • Word of the Day


        • Ask the Experts


          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 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 コンテンツ






                                ご検討中の方