Okay so for the past week I've been trying to automate assigning a correct layout based on some other fields after an automatic Import from Skyvia (which uses API).
1. Workflows (on create) for multiple records are unreliable or not triggered at all - so that option went out of the window
2. Workflows (date/time) worked but since it's not documented I can't be sure if it'll work
3. Mass update - nope, it's supposed to be automatic, I can't have people doing mass updates when they should be doing other things
The only other option was to run schedule with a function.
So I tested it with two lines of code:
contacts = zoho.crm.searchRecords("Contacts", "Layout:equals:Standard");
info contacts;
This gives me a very detailed error:
{"code":"INTERNAL_ERROR","details":{},"message":"Internal Server Error","status":"error"}
Which basically means I have no idea why it fails...
If I change the code to this:
contacts = zoho.crm.searchRecords("Contacts", "layout:equals:standard");
info contacts;
I'm getting error that field is not available through API - please tell me I'm doing something wrong here because I'm at the verge of jumping out of a window.
Updating layout automatically - how can I do this?