• System Administrator 1101
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
This is a screen-based flow.
I have the user enter a number 2 times ( to reduce incorrect entries).
Both fields are validated with the following expression (except that the variable is different of course):
REGEX({!scrvar_RCN1},"4[6-9]{1}[0-9]{9}[0-9]{0,1}")
When a valid value is entered, the flow behaves as it should.
When an invalid value is entered ( too few or too many digits or the first two digits do not fall within the specified ranges), instead of getting the supplied error message, the screen collapses to a line and a "spinning wheel of death" occurs that doesn't go away, even after an hour.
Flow - spinning wheel of death!
When run in debug mode, nothing shows in the log after the previous screen, an assignment component that occurs between the screens and the standard "Transaction Committed - Any records that the flow was ready to create, update, or delete were committed to the database." message that shows up before each new screen.
...so I have no data to troubleshoot further.
I have also tried using the Developer Console, but the only thing that shows is that the user info for the user that pressed Next.

I have tried regex variations of the validation criteria, but all versions show the same pattern(s) of behaviour.

Any insight would be greatly appreciated! Thank you!
Hi there,

In Lightning Flow, I want to open case record detail page after finish my screen Flow.

To solve this, I added Lightning Component to Last Screen of my Flow.
Is it good idea to implement it or not?
Is there other ways to do this, please let me share.
<aura:component implements="lightning:availableForFlowScreens,lightning:availableForFlowActions">
    <aura:attribute name="recordId" type="String" />
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>    
</aura:component>
 
({    
    doInit: function(component, event, helper) {
        // Get the record ID attribute
        var record = component.get("v.recordId");
        
        // Get the Lightning event that opens a record in a new tab
        var redirect = $A.get("e.force:navigateToSObject");
        
        // Pass the record ID to the event
        redirect.setParams({
            "recordId": record
        });
        
        // Open the record
        redirect.fire();
    }
})

Regards,
LinThaw