The GetSourceId method returns the identification (registration) number of the MsgObject or Event object.

Syntax for method invocation:

 function GetSourceId() : String

There are no method arguments.

Example. See the example in The GetSourceType method.