Handling SOAP Errors

You should always check that any SOAP API call was successful before using the results.

The errors property is an array of oaError objects.

See Code Samples for more examples.

oaError

An array of oaError objects is returned in the ReadResult and UpdateResult objects.

Note:

In this version, only the code property is available from user script.

Property

Value

attributes

An array of additional attributes for this complex type.

comment

More Information for the error.

text

Short Message for the error.

code

Error code returned by the SOAP API.

Tip:

For the full list of errors, see Error Codes.

See also Error Handling.

Who Am I

You can get information about the currently signed in user by calling the NSOA.wsapi.whoami() function.

The NSOA.wsapi.whoami() function returns an oaUser object.

              function test() {
        var user = NSOA.wsapi.whoami();
        NSOA.meta.alert( "User ID " + user.id + " saved this record");
    } 

        

oaUser

The oaUser object has more than 100 attributes defining user specific information. See User.

An oaUser object is returned by the NSOA.wsapi.whoami() function.