Internal Error - no details

Internal Error - no details

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?

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now