Do we have any global variable to access Portal object like this.appConfig or in widgets of Web AppBuilder?

05-04-2016 10:20 PM
Occasional Contributor II


1. Could anyone one please let me know if there is any way to easily access ArcGIS Portal object in custom widgets just similar to or this.appConfig. I found that we can access portalURL using this.appConfig.portalURL but no portal object or we need to simply create it where ever it is necessary.

2. Do we have any code written to fetch Web Maps that a logged in Portal user has access to in Web AppBuilder?

Thanks & Regards,

Vara Prasad.

1 Reply
MVP Emeritus


  There is global vars available for this that I am aware of. But there are a couple of jimu utility classes that you should look at.

  1. portalUtils.js
  2. portalUrlUtils.js
0 Kudos