ApiException [Error]: HTTP-Code: 0
Message: An error occurred.
Body: {"status":"error","message":"Object not found. objectId are usually numeric.","correlationId":"c3d704f9-8c59-4c90-ac79-da9e1ac0065a","context":{"id":["[object Promise]"]},"category":"OBJECT_NOT_FOUND"}
The whole purpose of the code is to update a custom property of every new client. If I manually replace contactId() with the actual contact id of the newest client, update() would work.
I suspect the issue lies in how the API handles promises. I'm not so sure, would appreciate it if someone could help!
By calling an async function a promise is inherently returned. So you are passing a promise to the update method, which expectes a string. I believe this could be fixed by changing the main line of code to:
By calling an async function a promise is inherently returned. So you are passing a promise to the update method, which expectes a string. I believe this could be fixed by changing the main line of code to: