Web API IC Adjustment posting handle Sage 300 errors

SOLVED

Hi,

I am very new to using the Web API integration in Sage 300. I am in the process of writing a system that will integrate IC Adjustments using the Web API and so far all seems to be working as expected.

One question I have:

If the API returns an error (there could be many: e.g. location is inactive, or item is inactive, etc.), how do I grab that error so that I handle it?