Error while creating automation from custom app

2 Comentários

  • Cheryl Lane

    Hi,

    I took a look and was able to work out your issue, simply switch out your line

    dataType: "json"

    for

    contentType: "application/json"

    (or just add that line to your settings) and your existing code should work.

    And as a bonus, if you change out your console logs to use commas instead of plus signs, the logs will contain the data in an expandable format (instead of showing as [Object object]):

    console.log("Automation created", data);
    0
  • Amit Chinchane

    Hi Cheryl Lane:

    Thanks alot, I followed ur suggestion and it worked . :)

    0

Por favor, entrar para comentar.

Powered by Zendesk