NSOA.wsapi.whoami()
Use this function to add or modify data in SuiteProjects Pro based on lookup attributes. The function returns an oaUser object, see Who Am I.
Note:
For more information about the SOAP API (Web Services), see XML API and SOAP API.
See also Making SOAP Calls.
Parameters
(none)
Returns
An oaUser object.
Since
November 16, 2013
Example
This sample logs the name of the user running the script.
function logUser() {
var user = NSOA.wsapi.whoami();
NSOA.meta.alert( "User ID " + user.id + " saved this record");
}
Note:
This simple example does not show error checking, see Handling SOAP Errors.
See Code Samples for more examples.