Newer Version Available

This content describes an older version of this product. View Latest

getEnclosingUtilityId() for Lightning Experience

Returns the ID of the enclosing utility, or false if not within a utility.

Arguments

None.

Sample Code

This component has a button that, when pressed, retrieves the enclosing utility’s ID.

Component code:

Controller code:

Response

This method returns a promise that, upon success, resolves to the utilityId of the enclosing utility or false if not within a utility.