how to run function once to fill a field programmatically?

how to run function once to fill a field programmatically?

I create a new field in deal module and this module will depends on another module. let say I simplify the case like this

1. I need to fetch all the records in deal module that the field 'status' is "Won"
2. if the field 'weight' value is more than 100 then I need to update the field 'condition' to 'overweight' (string) otherwise it will be 'normal' (string)

I need to run the code one time only

my questions are:

1. can I do that using Zoho CRM only, I mean using 'function'? it is okay if it will a 'hack' because as far as I know the 'fuction' can only triggered using workflow or blueprint

2. could you please show me a code to to that, I am a programmer, but not familiar yet to the Zoho API function to be honest.

thank you very much
    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 コンテンツ




                              ご検討中の方