Zoho CRM Python SDK 2.1 won't update record owner

Zoho CRM Python SDK 2.1 won't update record owner

When I try to change the owner on a Zoho record for my website APKBEB, I get a success message but the Lead Owner field doesn't change. The record is in the "Potentials" module (I think it's a custom module)

lead: Record = self.get_lead(int(lead_id))
user: ZCRMUser = self.get_user_by_email(owner_email)

# Perform the update
lead.add_key_value("Owner", user)
request = BodyWrapper()
request.set_data([new_record])
request.set_trigger(["approval", "workflow", "blueprint"])
response = self.record_operators.update_record(zoho_id, "Potentials", request)
The update is performed and reports no errors but it doesn't change the "Owner" field:

INFO Status: success
INFO Code: SUCCESS
INFO Details
INFO Modified_Time : 2024-05-13 11:23:12+10:00
INFO Modified_By : <zcrmsdk.src.com.zoho.crm.api.users.user.User object at 0x115384c10>
INFO Created_Time : 2024-05-02 14:03:19+10:00
INFO id : 68968000000476063
INFO Created_By : <zcrmsdk.src.com.zoho.crm.api.users.user.User object at 0x115347d10>
INFO Message: record updated
If I inspect the lead itself the field exists:

Owner = <zcrmsdk.src.com.zoho.crm.api.users.user.User object at 0x1153ae7d0>
Also the user object is a valid User object. The API token I'm using seems to have all permissions granted. It seems like Zoho just quietly drops the field. I don't know if this is a permissions thing, an API limitation or something else.

UPDATE: I've noticed the code I'm working on has pinned zohocrmsdk2_1 = "^1.0.0" so might be an old issue. Will retest with latest 3.0.0 and see if it helps. UPDATE 2: Didn't help. Same issue with versions 1.1.0 and 3.0.0 of zohocrmsdk2-1
    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 コンテンツ




                              ご検討中の方