You need to sign in to do that
Don't have an account?

onstatuschange does not works on mobile
Hi!
I have aura component
and controller
onstatuschange="{!c.gotoURL}" works perfectly fine inside desktop Salesforce but on mobile, it is not. It just returns to the first screen of the flow.
Is there any way to redirect to the created with the flow record inside the mobile app?
I have aura component
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,lightning:actionOverride" access="global"> <aura:attribute name="PATEST" type="CTPHARMA__Activity__c" /> <aura:handler name="init" value="{!this}" action="{!c.init}" /> <div style="background-color:white"> <lightning:flow aura:id="PATEST" onstatuschange="{!c.gotoURL}"/> </div> </aura:component>
and controller
({ init : function (component) { // Find the component whose aura:id is "flowData" var flow = component.find("PATEST"); // In that component, start your flow. Reference the flow's Unique Name. flow.startFlow("PATEST"); }, gotoURL : function (component, event, helper) { if(event.getParam("status") === "FINISHED") { var outputVariables = event.getParam("outputVariables"); var outputVar; for(var i = 0; i < outputVariables.length; i++) { outputVar = outputVariables[i]; if(outputVar.name === "redirect") { var urlEvent = $A.get("e.force:navigateToSObject"); urlEvent.setParams({ "recordId": outputVar.value, "isredirect": "true" }); urlEvent.fire(); }}}} })
onstatuschange="{!c.gotoURL}" works perfectly fine inside desktop Salesforce but on mobile, it is not. It just returns to the first screen of the flow.
Is there any way to redirect to the created with the flow record inside the mobile app?
Hi, Same Problem with me.
love status (https://lovequotes.co.in/love-status/) and sad status (https://lovequotes.co.in/sad-status/)