API error handling in scripts

If I make a call to getEntityById (or some other API function) in a script, and it errors, will that be handled as a normal Promise rejection for the caller?

Also - in such a case, where should we look in the returned API result for the best description of the error that occurred?

Hi, @Matt_Blais

getEntityById returns standard promise. Activity log of button/rule should contain the info about error happened in script. Please let us know if it doesn’t work for you case and we will investigate how to fix.

Thanks,
Oleg