I am using a generic flow which can be invoked from multiple objects. In Flow, I have embedded the LWC Component, by using the Currentpagereference I am able to get the quick action name of the only some objects like opportunity etc and I am unable to get the quick action name which launched the flow for some objects like order and quote may be because of the url. The URL when the quick action launched from the opportunity looks like this:


But when i invoke the flow from order object the url turns out to be:


Currentpagereference code looks like this:

import { CurrentPageReference } from 'lightning/navigation';
    getStateParameters(currentPageReference) {        
        if(currentPageReference.type === 'standard__quickAction') {
            this.quickActionAPIName = currentPageReference.attributes.apiName;

Due to this, iam getting currentpagereference.type as standard__recordpage for order object and standard__quickAction for opprtunity object.

Is there any work around?

1 Answer 1


Why can't you just pass in the name of the quick action when launching the flow as a hard-coded value? Or are you really trying to get the object that the quick action was launched from? If the latter, you should be able to use @api objectApiName; to get that.

  • Thanks Rob. But I don't need the object name, I need to get the name of the quick action dynamically without hardcoding. Is there any way to get the quick action api name without hardcoding?
    – S1th
    Commented Feb 16, 2023 at 3:40

You must log in to answer this question.

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