Deluge function zoho.crm.updateRecord not updating
Hi,
I have a very basic function that when a new record is created it takes the value of a few fields glues them together and then adds the result into a new field.
The function was working fine till a few days ago when it magically stopped working !
I did a very simple demo out of it and still didn't manage to make it work !
id = xxxx ;
data = {"Property_Listing_ID": "SR2024"};
info data; // returns:
info zoho.crm.updateRecord("Products",id,data);
info zoho.crm.getRecordById("Products",id).get("Property_Listing_ID");
The above returns the following:
- {"Property_Listing_ID":"SR2024"}
- {"Modified_Time":"2021-06-07T15:58:58+02:00","Modified_By":{"name":"xyz xyz","id":"123123"},"Created_Time":"2021-06-07T14:26:05+02:00","id":"123123","Created_By":{"name":"xyz xyz","id":"123123"}}
- null
Again, this was working flawlessly before and for some reason now it's not.
### Edit 1:
I checked the API Quota .. and we're 1% in term of usage according to the dashboard.
I also verified several times the names of the module and the field in the API / Names section.
###Edit 2:
the field a read only field. But i was able to update it before. now when i switch it back to read / write i can update the field. I thought there was a difference between updating a field via the standard interface and a Deluge function.
I still need to figure out a way to keep doing so.
### Edit 3:
Okay i found an alternative solution. I kept the field enabled for read / write for Administrators and locked for everyone else and since my function runs as an administrator it managed to update the record.
But to be honest i would've liked if that returns an error ! this was silently failing actually giving me the AOK and i was completely unaware for a couple of days that it is not working.
Please advise,
Regards,
Karim Mansour