I have a custom button that launches a flow. The flow contains the LWC. This works fine for admins in prod and for all users in my partial sandbox. I have the button created on the case object under Buttons, Links and actions. The button is a display type list button. I have then added the button to the search layouts for salesforce classic under the list view section.
As far as I can tell there isn't using a visualforce page or apex that is being called but all the information I can find is related to granting permissions through one of those methods.
The component has a simple combo box that allows for a selection and then handles the event by by navigating to a specific url. The JS is below. Any insights would be helpful.
import { LightningElement, api } from 'lwc';
import { FlowAttributeChangeEvent, FlowNavigationNextEvent, } from 'lightning/flowSupport';
export default class NewCaseCreation extends LightningElement {
@api NewCaseCreation;
@api TestProp;
value = '';
get options() {
return [
{ label: 'Contact Center Case', value: 'Contact_Center_Case' },
{ label: 'Email to Case', value: 'Email_to_Case' },
];
}
handleChange(event) {
}else if(event.detail.value == "Contact_Center_Case"){
window.location.assign("https://customDomain.lightning.force.com/lightning/o/Case/new?count=1&nooverride=1&useRecordTypeCheck=1&navigationLocation=LIST_View&recordTypeId=0121U000000KISDSDSD");
}else if(event.detail.value == "Email_to_Case"){
window.location.assign("https://customDomain.lightning.force.com/lightning/o/Case/new?count=2&nooverride=1&useRecordTypeCheck=1&navigationLocation=LIST_View&recordTypeId=0121U000000DFDAAD");
}
this.NewCaseCreation = event.detail.value;
this.value = event.detail.value;
}
}