0

For Salesforce Users, we can create multiple 'Apps' and add relevant Tabs to the Apps.

Is it possible to create such multiple Apps for a Single Community and let Users navigate different apps using 'App Launcher' in Community?

1

1 Answer 1

0

You can create try with creating custom app launcher using lightning component.

Step1. Get Application menu items using below SOQL.

Select Id,Type,ApplicationId,Name,Label,Description,IconUrl,StartUrl,InfoUrl,
IsAccessible,IsVisible,LogoUrl,SortOrder,MobileDeviceType from AppMenuItem 
where IsAccessible=true AND Type='TabSet' order by Name ASC

Step2. Create Lightning component to show app menus.

appItems component

<aura:attribute type="AppMenuItem[]" name="apps"/>
<aura:handler  name="init" value="{!this}" action="{!c.doinit}"/>
<lightning:carousel disableAutoRefresh="false" disableAutoScroll="false" class="slds-carousel__pane">
            <aura:iteration items="{!v.apps}" var="obj">
                <lightning:carouselImage class="slds-carousel__image"
                                         src = "{!obj.LogoUrl}"
                                         header = "{!obj.Label}"
                                         description = "{!obj.Description}"
                                         alternativeText = "{!obj.Name}"
                                         href = "https://www.salesforce.com">
                </lightning:carouselImage>
            </aura:iteration>
        </lightning:carousel>

appItems.js controller

doinit : function(component, event, helper) {                                                                                        
        var action=  component.get('c.getAllApps');   
        action.setCallback(this,function(response){
            console.log(response.getState());
            if("SUCCESS"===response.getState())
            {
                console.log('response'+response.getReturnValue());
                component.set('v.apps',response.getReturnValue());     
            }
        });
        $A.enqueueAction(action);

    }

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .