delfincortesb
delfincortesb

Reputation: 101

How to access custom fields of invoices using Zoho Deluge?

Zoho Screenshot

I'm trying to access the custom fields of my invoices and I'm getting the following error: Zoho Error

Any ideas on how to solve this?

Upvotes: 1

Views: 364

Answers (1)

ZohoCoder
ZohoCoder

Reputation: 443

To help debug the issue:

  • display the values in invoiceID and test2 and make sure they are not empty or zoho numbers (rather than strings)

    info invoiceID;   
    info test2;
    
  • Try running the same url in a browser and/or curl to see if the behavior is the same or successful.

  • Try putting a 'try/catch' around the invokeurl cmd. Sometimes (but not always) the catch(err) will report more specific error information.

    try {
        webhooktest = invokeurl
        [
            url: "https:example.org?invoice_id=" + invoiceID + "&tips_ncf=" + test2
        ]
        info "Webhooktest: [" + webhooktest + "]";
    }
    catch(err)
    {
        info err;
    }
    

Upvotes: 0

Related Questions