Get portal id from Rollbase - Forum - Rollbase - Progress Community

Get portal id from Rollbase

 Forum

Get portal id from Rollbase

This question is not answered

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
  • 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.

     

    @Override

    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**************");

    while(it.hasNext()){

    //System.out.println(it.next());

    }}

    For more information on Custom Trigger please see attached document.

    DevelopmentGuide.docx

    Regards,

    Shiva