Skip to main content

Questions tagged [lightning-message-service]

Questions related to the Lightning message service when communicating across DOM between Visualforce pages, Aura components, and Lightning web components, including components in a pop-out utility bar.

23 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
403 views

Trying to publish Lightning Message Channel from Visualforce page and getting error `Sfdc is not defined`

I am trying to publish a message from a visualforce page into a lightning component and my visualforce page is not able to publish. My Visualforce code : <apex:page applyBodyTag="false" ...
nyuv's user avatar
  • 41
3 votes
0 answers
310 views

Including Lightning Message Service in Managed Package?

I am attempting to make use of the Lightning Message Service to pass events between components when various actions occur (e.g. Sending an email, or authenticating the app. The Salesforce docs suggest ...
Anthony Kelly's user avatar
2 votes
1 answer
65 views

Lightning message channel error

This is my meccage channel code. <?xml version="1.0" encoding="UTF-8"?> <LightningMessageChannel xmlns="http://soap.sforce.com/2006/04/metadata"> <...
Neha Palekar's user avatar
2 votes
0 answers
812 views

Odd Error Returned When Using Lightning Message Service in LWC - WindowMessengerNoConnectionError

This is my first time using Lightning Message Service. I set it up following the directions on this standard documentation page. After setting this up I am able to communicate between two lightning ...
Tim Wilson's user avatar
2 votes
0 answers
924 views

Lightning Message service error in visualforce page - Cannot read property 'subscribe' of undefined

Was anybody able to work with sforce.one.subscribe for subscribing to lightning message service in visualforce? I keep getting below error: Even after including sforce and ajax js files, sforce.one ...
salesforce-sas's user avatar
1 vote
0 answers
157 views

Can I use (and how) LMS to stream events from VF page with WS connection to LWC without clicks in the VF

My VF page is directly embedded into the utility bar. As I have a WebSocket used to stream some events, I would like to find a way to use LMS to stream those events to LWC and Aura components. On my ...
Искрен Станиславов's user avatar
1 vote
1 answer
560 views

CORS error in visualforce page (open CTI Softphone integration) that uses Lightning Message service

I have a Visual force page that contains a lightning web component hosted in a Salesforce developer sandbox I have a custom object that will be linked with this Visual force page using the streaming ...
mjk6035's user avatar
  • 11
1 vote
0 answers
551 views

LMS Channel error: Your component must be rendered before you can publish to channel

I have two Aura Components that talk to each other via 2 LMS channels. The flow goes: Once we click on the quick action button on Case Header, it would fire a LMS channel that will be subscribed by ...
Austin Evans's user avatar
1 vote
0 answers
690 views

Can I have multiple instances of the same component using a Lightning Message Service channel?

If I create an lwc app component that uses an LMS message channel, will I run into problems if I have multiple instances of that app in a record page? By problems, I mean all instances of the ...
Drew's user avatar
  • 41
1 vote
1 answer
219 views

Alert on account page for a new note being added

I want to be able to create an alert that is displayed on the account page whenever a new note is added. I've seen the Lightning Message Utility managed component in appexchange (https://appexchange....
Allison Fernandez's user avatar
1 vote
1 answer
1k views

Lightning messaging service communities support for guest users

We are working towards building a community where we have the need to communicate with different parts of the page built with LWC and Aura. Since salesforce launched lightning messaging service we ...
manjit5190's user avatar
  • 8,043
1 vote
1 answer
546 views

Listening to LMS messages from a background utility bar item

I want to do some background processing so I wrote a background utility bar item, and tried listening to LMS messages, but it didn't work. Then I found this: It is a front-end service that works in ...
kamezaburo's user avatar
0 votes
0 answers
21 views

Best way to design screen flow reactivity with LWC outputs on the same page

I have created a LWC that acts as a top-level filter for user's to choose different properties and filter data based on their selected inputs. Multiple screen flows and LWCs need to be able to react ...
andre_b's user avatar
0 votes
0 answers
235 views

(in promise) Error: lightning/messageService: invalid message context

Hi I am trying to using Lightning Message Service my Component structure is as below Parent Component Component1 Component2 from Component1 I am publishing a payload via LMS which contains name date1 ...
Nrupa Vora's user avatar
0 votes
0 answers
34 views

Trying to open filePreview in console app (LWC/Aura)

I'm trying to replicate this functionality, which opens a filePreview in a Standard App to work in a Console App: this[NavigationMixin.Navigate]({ type: 'standard__namedPage', attributes: { ...
Laure Ravier's user avatar
0 votes
0 answers
158 views

When Subscriber placed in record page Lightning Message Service (LMS) not receiving messages between different Apps

I was trying to implement Lightning Message Service. But for some reason, the message is getting published but not reflected in the subscriber module. It is not throwing any errors not even in the ...
user2943892's user avatar
0 votes
0 answers
74 views

LMS retrieval/update lags 1 click behind

It seems that the component relying on the URL update doesn't get the correct mediaId from the URL. The first click gets the Something went wrong.... <template>, then each following click is 1 ...
Tristan Berger's user avatar
0 votes
1 answer
1k views

Lightning Message Service is not working

I have implemented the LMS(Lightning Message Service) concept in my project because I have to pass some parameter values from LWC component to Aura component. the problem is my LWC component is not ...
Abdulaziz Burghal's user avatar
0 votes
0 answers
60 views

Events between components not on the same system

As the question goes, what can I use to communicate between 2 LWC components which are accessed by different users? I am trying to build a Sprint planning poker app in LWC, where the vote submitted by ...
LoveBomber777's user avatar
0 votes
1 answer
2k views

LMS throwing :sorry to interrupt error[invalid message context]

I am trying to publish a message form lWC , but getting error as below: lightning/messageService: invalid message context] i have created the message channel file added it in the package.xml and ...
dumitry's user avatar
0 votes
0 answers
266 views

Sending message from AURA to LWC

I have a requirement to send messages from Aura component to an LWC component. The component exist on the The Aura Component contain an LWC inside it,, i need if the tab of Aura is open the i need to ...
Yujikava's user avatar
0 votes
0 answers
3k views

LWC LMS: Invalid message context error

I ask this question because I did not find any similar. My error is "invalid message context". I will explain it graphically. From tab 1, I create a record, with a navigation mixin, I am ...
TestUser's user avatar
0 votes
0 answers
910 views

Receiving error "Cannot convert a Symbol value to a string" at @wire (MessageContext)

I am getting an error while publishing message from one web Component: [error = TypeError: Cannot convert a Symbol value to a string at], it occurs while receiving MessageContext using @wire(...
Chetna Pundir's user avatar