How to parse SOAP Web Services Usage Log responses with SuiteScript 2.0?

I have a SOAP web service integrator with Netsuite that generates a response in XML format, those responses can be seen in the SOAP Web Services Usage Log page. I would like to render this XML response to get notified by email every time that the web service fail, in the execution log the Status said FAILED and opening the response xml file by clicking “view”, it show the reason why it fail, for example:

-<platformCore:statusDetail type="ERROR">
   <platformCore:code>USER_ERROR</platformCore:code>
      <platformCore:message>Please configure the inventory detail in line 1 of the item list. 
      </platformCore:message>
</platformCore:statusDetail>

I was trying to create a saved search with the URL of the response to parse it, but the SOAP Web Service saved search is not scriptable.

Here is an image as an example:

How to parse SOAP Web Services Usage Log responses with SuiteScript 2.0?

Can anybody give me an idea how to send an email from Netsuite with a message when we get a failed response? Where or how is the best way to access that information? Where should I start? I am out of idea.

Thanks in advance.

Rookie Asked on September 24, 2020 in SuiteTalk.
Add Comment
1 Answer(s)

Closest you will probably get is a SOAP Web Services Operations or SOAP Web Services Record Processing saved search. I doubt you will be able to get to the request or response xml.

Use the email notification options of the saved search to do your emails

Intermediate Answered on September 24, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor