Get portal id from Rollbase

Posted by ionacaerex on 18-Nov-2016 04:17

Hi everyone,

I'm trying to get from Rollbase a list of all my portal created. But I'm not able to get this because "PORTAL" is not an object?

Is there any solutions with that? Thank you

All Replies

Posted by Shiva Duriseati on 05-Dec-2016 05:37

Hi ,

As on today there is no such API or method to list all the portals. However if you are on private cloud please enable custom trigger and add following code to trigger method in RuntimeTrigger class.

For a test I have printed all the portals on console.



public void trigger(TriggerRunner runner) throws Exception {

List<WebSite> portals =  WebSiteHandler.getPortals(runner.getCustomer());

Iterator<WebSite> listOfPortals=portals.iterator();

System.out.println("*********List of all portals**************");




For more information on Custom Trigger please see attached document.




This thread is closed