SP.AppInstance.id property (sp.js)
Gets the unique identifier of the SP.AppInstance object (sp.js) object.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.AppInstance.get_id ()
Return value
Undefined
The GUID of this AppInstance object.