How to show response error message from 'API Action' on page?

I’ve set up an api connector, with ‘pass errors’ on:


It throws an error when submitting the form:
{ “ErrorInfo” : “”, “ErrorMessage” : “CM01 Property “test” already exists”, “StatusCode” : 400 }

I want to show the “ErrorMessage” value on the page in a notification. I tried things along the lines of:
lastError.message.ErrorInfo.ErrorMessage but I can’t seem to find the right syntax.

How can I pick this data to show on the page?

Community Page
Last updated: