Whenever I get an error from API, I receive the error message that shows
Raw error:
{"status":"invalid","reasons":[{"code":"project-locked","description":"Project Busy: Finance Agreement is being generated"}]}
How can I show this message to our users UI without showing the message with "[{"code":"" and only show the actual texts like
{"status":"invalid","reasons":[{"code":"project-locked","description":"Project Busy: Finance Agreement is being generated"}]}
When I do show error message, it contains the "[{"code":"" texts.
Hmm I think if you are able to assign an Option set or condition to the Error Code you receive you should be able to make a custom text for it. For example if current workflow error’s message contains HTTP 401 display X
Would need to get a list of all the errors but it could work if there are no duplicate error codes.