0

I have created a aura component to call my LWC but it's not appearing when I go to my app through app manager. Through my app manager, clicking on my test page, at the bottom right hand corner, clicking on Actions, I only see the standard actions, LOG CALL, NEW ACCCOUNT, NEW CASE,etc..

Here is my code

createUser.cmp

<aura:component implements="force:lightningQuickAction">
    <c:createUserLWC />
</aura:component>

createUserLWC.html

<template>
    <lightning-card title="Hello" icon-name="custom:custom14">
        <lightning-button name="hello" label="hello" onclick={sayHello}></lightning-button>
    </lightning-card>
</template>

createUserLWC.js

import { LightningElement } from 'lwc';

export default class CreateUserLWC extends LightningElement {
    sayHello() {
        alert('HELLO');
    }
}

createUserLWC.js-meta.xml

<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>48.0</apiVersion>
    <isExposed>true</isExposed>
    <masterLabel>Best Component Ever</masterLabel>
    <description>This is a demo component.</description>
    <targets>
        <target>lightning__RecordPage</target>
        <target>lightning__AppPage</target>
        <target>lightning__HomePage</target>
    </targets>
</LightningComponentBundle>

Any advice on how to get my button up on my flexipage would be greatly appreciated.

  • Also, in the builder, there's a refresh button (two arrows pointing at each other) that can reload the available list. – sfdcfox Apr 21 at 19:44
  • On the left hand side, I can see through the app manager, my LWC component. The problem is that I don't see it in the "Actions" list. I closed my browser and reloaded the app in a new browser and it didn't show up either. It's just not there. – Rony Aoun Apr 21 at 21:49
  • My Global action is called testuser, I don't see it. See screenshot: prnt.sc/s3lgot – Rony Aoun Apr 21 at 21:55
  • You can find the source here github.com/ronyaoun/globalaction – Rony Aoun Apr 22 at 13:53
0

The first thing you should check is weather you had created a global action of type Lightning Component or not.

enter image description here

| improve this answer | |
  • Yes, that's what I have. Choosing Lightning Component is the only way I can add my aura component. – Rony Aoun Apr 22 at 12:53

Not the answer you're looking for? Browse other questions tagged or ask your own question.