You need to sign in to do that
Don't have an account?
Roy Sourav
LMS - "invalid message context" error.
We are facing issues with Lightning Message Service. We are using a LWC component in experience builder which publishes the message using LMS. Please find below error message while publishing the message.
Error details
We are using all standard code as per the below documentation -
1. we have subscribed to the message channel in our community.
import SAMPLECHANNEL from '@salesforce/messageChannel/SampleMessageChannel__c';
2. we have imported the pusblishMessage , MessageContext.
import { publish, MessageContext } from 'lightning/messageService';
3. We have also use the wire context.
@wire(MessageContext) messageContext;
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_message_channel
Need help from the Ohana community..!! Please help..!!
Error details
We are using all standard code as per the below documentation -
1. we have subscribed to the message channel in our community.
import SAMPLECHANNEL from '@salesforce/messageChannel/SampleMessageChannel__c';
2. we have imported the pusblishMessage , MessageContext.
import { publish, MessageContext } from 'lightning/messageService';
3. We have also use the wire context.
@wire(MessageContext) messageContext;
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_message_channel
Need help from the Ohana community..!! Please help..!!
2. check if the messagecontext variable name is correct in the publish