-1

detailPageNavigation.cmp

<aura:component implements="force:lightningQuickAction, lightning:availableForFlowActions, lightning:availableForFlowScreens">
 <aura:attribute name="recordId" type="String" />
    <aura:handler name="init" value="{!this}" action="{!c.invoke}" />
</aura:component>

DetailPageNavifationController.js

({
    invoke: function(component, event, helper) {
        var navEvt = $A.get("e.force:navigateToSObject");
        navEvt.setParams({
          "recordId": component.get("v.recId"),
          "slideDevName": "related"
        });
        navEvt.fire(); 
        
    }
})

Flow error:"c:DetailPageNavigation" Lightning component's client-side controller includes an "invoke" method and that My Domain is enabled and deployed for your org.

New contributor
Christa Varghese is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
1
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Jun 23 at 14:43

0

Your Answer

Christa Varghese is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.