Skip to Content
Mar 05, 2019 at 03:38 PM

SAPUI5 - Accessing current sub-account from the controller.


I'm accessing a URI from my controller which at the moment is hardcoded to my current SAP Cloud Platform Sub-Account."">rsaactionplan-(subaccount)" + oBindingContext.JobId, "_system");

Rather than hard-code it, how can I access the current sub-account ID so I can dynamically setup the sub-account in the SAPUI5 controller?