DocSF

DocSF

Did You Know?

Advanced visual search system powered by Ajax

How pass record id from quick action to lwc

Do you need to create a quick action that passes the record id to a Lightning Web Component? This note might be useful to you.
Here you find the example of the LWC template and its controller

				
					<template>
    <template if:true={recordId}>
        test
    </template>
</template>				
			
				
					import { LightningElement, api } from 'lwc';

export default class Testing extends LightningElement {
    @api recordId;

    connectedCallback() {
        console.log('connected===============');
        console.log(this.recordId);
    }

    renderedCallback() {
        console.log('rendered------------');
        console.log(this.recordId);
    }
}				
			

Related Post

Salesforce Apex Bulk Insert

Esempio di codice che inserisce record in un oggetto in...

Come fare una callout in commerce cloud

creare e configurare un servicecreare un controller che...

Leave a Comment