<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Event Handling between Aura, Lightning Web Components (LWC) and Visualforce	</title>
	<atom:link href="https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/</link>
	<description>AI, Salesforce, ServiceNow &#38; Enterprise Tech Guides</description>
	<lastBuildDate>Mon, 24 May 2021 15:39:54 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Dhananjay		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#comment-6675</link>

		<dc:creator><![CDATA[Dhananjay]]></dc:creator>
		<pubDate>Mon, 24 May 2021 15:39:54 +0000</pubDate>
		<guid isPermaLink="false">https://www.jitendrazaa.com/blog/?p=6920#comment-6675</guid>

					<description><![CDATA[Hi Jitendra, How to use LMS when we want to navigate from one LWC to another(when 2 LWC are on different tabs)]]></description>
			<content:encoded><![CDATA[<p>Hi Jitendra, How to use LMS when we want to navigate from one LWC to another(when 2 LWC are on different tabs)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chetna		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#comment-6257</link>

		<dc:creator><![CDATA[Chetna]]></dc:creator>
		<pubDate>Mon, 31 Aug 2020 18:55:48 +0000</pubDate>
		<guid isPermaLink="false">https://www.jitendrazaa.com/blog/?p=6920#comment-6257</guid>

					<description><![CDATA[HI JItendra,

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(MessageContext) mContext;

console says mContext value = Symbol(MessageContext_43ee57fb_fbb4_4cf1_bd78_c45358de67cd)]]></description>
			<content:encoded><![CDATA[<p>HI JItendra,</p>
<p>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(MessageContext) mContext;</p>
<p>console says mContext value = Symbol(MessageContext_43ee57fb_fbb4_4cf1_bd78_c45358de67cd)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Pradeep Dani		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#comment-6133</link>

		<dc:creator><![CDATA[Pradeep Dani]]></dc:creator>
		<pubDate>Wed, 27 May 2020 15:07:58 +0000</pubDate>
		<guid isPermaLink="false">https://www.jitendrazaa.com/blog/?p=6920#comment-6133</guid>

					<description><![CDATA[Hi Jitendra, Not able to get this working in Classic application where 1 visualforce page has LWC (receiver) and other has direct Message Channel using sforce.one.publish. 

The sforce.one is not working. This is because of not executing in lightning experience. 

Any hints to patch it up for classic experience ?]]></description>
			<content:encoded><![CDATA[<p>Hi Jitendra, Not able to get this working in Classic application where 1 visualforce page has LWC (receiver) and other has direct Message Channel using sforce.one.publish. </p>
<p>The sforce.one is not working. This is because of not executing in lightning experience. </p>
<p>Any hints to patch it up for classic experience ?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vinit Kulkarni		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#comment-5918</link>

		<dc:creator><![CDATA[Vinit Kulkarni]]></dc:creator>
		<pubDate>Wed, 04 Mar 2020 18:15:38 +0000</pubDate>
		<guid isPermaLink="false">https://www.jitendrazaa.com/blog/?p=6920#comment-5918</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#comment-5917&quot;&gt;David Encinas&lt;/a&gt;.

Sorry David, I am not sure about that and also couldn&#039;t find anything on this, its still in developer preview.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#comment-5917">David Encinas</a>.</p>
<p>Sorry David, I am not sure about that and also couldn&#8217;t find anything on this, its still in developer preview.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: David Encinas		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#comment-5917</link>

		<dc:creator><![CDATA[David Encinas]]></dc:creator>
		<pubDate>Wed, 04 Mar 2020 18:07:08 +0000</pubDate>
		<guid isPermaLink="false">https://www.jitendrazaa.com/blog/?p=6920#comment-5917</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#comment-5916&quot;&gt;Vinit Kulkarni&lt;/a&gt;.

What about SESSION scope or something like that??]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#comment-5916">Vinit Kulkarni</a>.</p>
<p>What about SESSION scope or something like that??</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vinit Kulkarni		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#comment-5916</link>

		<dc:creator><![CDATA[Vinit Kulkarni]]></dc:creator>
		<pubDate>Wed, 04 Mar 2020 18:01:37 +0000</pubDate>
		<guid isPermaLink="false">https://www.jitendrazaa.com/blog/?p=6920#comment-5916</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#comment-5915&quot;&gt;David Encinas&lt;/a&gt;.

Yes. Its APPLICATION.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#comment-5915">David Encinas</a>.</p>
<p>Yes. Its APPLICATION.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: David Encinas		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#comment-5915</link>

		<dc:creator><![CDATA[David Encinas]]></dc:creator>
		<pubDate>Wed, 04 Mar 2020 17:59:58 +0000</pubDate>
		<guid isPermaLink="false">https://www.jitendrazaa.com/blog/?p=6920#comment-5915</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#comment-5914&quot;&gt;Vinit Kulkarni&lt;/a&gt;.

Do you know which possible values exist??]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#comment-5914">Vinit Kulkarni</a>.</p>
<p>Do you know which possible values exist??</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vinit Kulkarni		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#comment-5914</link>

		<dc:creator><![CDATA[Vinit Kulkarni]]></dc:creator>
		<pubDate>Wed, 04 Mar 2020 15:31:26 +0000</pubDate>
		<guid isPermaLink="false">https://www.jitendrazaa.com/blog/?p=6920#comment-5914</guid>

					<description><![CDATA[lightning:messageChannel need Scope attribute.]]></description>
			<content:encoded><![CDATA[<p>lightning:messageChannel need Scope attribute.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: David Encinas		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#comment-5911</link>

		<dc:creator><![CDATA[David Encinas]]></dc:creator>
		<pubDate>Wed, 04 Mar 2020 08:31:19 +0000</pubDate>
		<guid isPermaLink="false">https://www.jitendrazaa.com/blog/?p=6920#comment-5911</guid>

					<description><![CDATA[Hi Jitendra,

I just copied your examples because I need communication between Aura and LWC.
When I try to subscribe the LWC to the message I´m getting an error in the next line:

...
messageService.subscribe(this.context, lmsDemoMC, function (event)
...

when I debug it I´m accessing to:

...
function runWithBoundaryProtection(vm, owner, pre, job, post) {
    {
      assert.isTrue(vm &#038;&#038; &#039;cmpRoot&#039; in vm, `${vm} is not a vm.`);
    }

    let error;
    pre();

    try {
      job();
    } catch (e) {
      error = Object(e);
    }
...

but the excetion value is:
JSON.stringify(e): &quot;{}&quot;

Any idea?

BTW, with both components I´m able to publish messages.
In the other hand is that the aura component I needed to add the scope:

    

Do you know which other scopes are supported?

Thanks in advance]]></description>
			<content:encoded><![CDATA[<p>Hi Jitendra,</p>
<p>I just copied your examples because I need communication between Aura and LWC.<br />
When I try to subscribe the LWC to the message I´m getting an error in the next line:</p>
<p>&#8230;<br />
messageService.subscribe(this.context, lmsDemoMC, function (event)<br />
&#8230;</p>
<p>when I debug it I´m accessing to:</p>
<p>&#8230;<br />
function runWithBoundaryProtection(vm, owner, pre, job, post) {<br />
    {<br />
      assert.isTrue(vm &amp;&amp; &#8216;cmpRoot&#8217; in vm, `${vm} is not a vm.`);<br />
    }</p>
<p>    let error;<br />
    pre();</p>
<p>    try {<br />
      job();<br />
    } catch (e) {<br />
      error = Object(e);<br />
    }<br />
&#8230;</p>
<p>but the excetion value is:<br />
JSON.stringify(e): &#8220;{}&#8221;</p>
<p>Any idea?</p>
<p>BTW, with both components I´m able to publish messages.<br />
In the other hand is that the aura component I needed to add the scope:</p>
<p>Do you know which other scopes are supported?</p>
<p>Thanks in advance</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Charan		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#comment-5885</link>

		<dc:creator><![CDATA[Charan]]></dc:creator>
		<pubDate>Fri, 28 Feb 2020 15:49:46 +0000</pubDate>
		<guid isPermaLink="false">https://www.jitendrazaa.com/blog/?p=6920#comment-5885</guid>

					<description><![CDATA[Hi Jitendra,

Have asked this particular requirement related to OpenCTI in multiple channels. dlouvton from salesforce suggested to use OpenCTI lighting message Service( https://github.com/developerforce/open-cti-demo-adapter/issues/37). 

Requirement: Have to make a call from a quick Action but not on clicking phone number.


Challenges: 

1) Don&#039;t have any similar method like sendCTIMessage() in lighting which works well in classic.
2) Though I have a hack, we can&#039;t simply raise an onClickToDial event in Lighting aura/Web Components. And VF page in lighting won&#039;t work as VF renders in iframe and end of the day VF renders in Lighting Experience. 
3) My OpenCTI adapter URL in call center is not our SFDC page instead it is a Twilio-Flex(3rd party vendor) URL so I don&#039;t have a any DIRECT control to add the subscribe() code. And this Twilio-Flex is implemented in react.js and I do have a little control where I can add some plugins to this URL. In this plugin I can add Salesforce openCTI_min.js script and use the subscribe() method.

Options I left with:
Using this Lighting Message Service for OopenCTI( https://developer.salesforce.com/docs/atlas.en-us.api_cti.meta/api_cti/sforce_api_cti_methods_intro_lightning.htm ). I wanted to publish() a message in my aura/LWC and would like to have this message needed to subscribe() by Twilio-Flex soft-phone which is in same DOM but in react.Js. Can we achieve this using LMS? More specifically, how to configure/get Salesforce Message channel stuff into Flex react.js page though these both are in same DOM.?

If you are interested, I can provide you the sample code snippets about react.js plugin and little hack (point# 2). But https://github.com/developerforce/open-cti-demo-adapter/issues/37 has most of the requirement what I am talking about.

Thank you!
Charan]]></description>
			<content:encoded><![CDATA[<p>Hi Jitendra,</p>
<p>Have asked this particular requirement related to OpenCTI in multiple channels. dlouvton from salesforce suggested to use OpenCTI lighting message Service( <a href="https://github.com/developerforce/open-cti-demo-adapter/issues/37" rel="nofollow ugc">https://github.com/developerforce/open-cti-demo-adapter/issues/37</a>). </p>
<p>Requirement: Have to make a call from a quick Action but not on clicking phone number.</p>
<p>Challenges: </p>
<p>1) Don&#8217;t have any similar method like sendCTIMessage() in lighting which works well in classic.<br />
2) Though I have a hack, we can&#8217;t simply raise an onClickToDial event in Lighting aura/Web Components. And VF page in lighting won&#8217;t work as VF renders in iframe and end of the day VF renders in Lighting Experience.<br />
3) My OpenCTI adapter URL in call center is not our SFDC page instead it is a Twilio-Flex(3rd party vendor) URL so I don&#8217;t have a any DIRECT control to add the subscribe() code. And this Twilio-Flex is implemented in react.js and I do have a little control where I can add some plugins to this URL. In this plugin I can add Salesforce openCTI_min.js script and use the subscribe() method.</p>
<p>Options I left with:<br />
Using this Lighting Message Service for OopenCTI( <a href="https://developer.salesforce.com/docs/atlas.en-us.api_cti.meta/api_cti/sforce_api_cti_methods_intro_lightning.htm" rel="nofollow ugc">https://developer.salesforce.com/docs/atlas.en-us.api_cti.meta/api_cti/sforce_api_cti_methods_intro_lightning.htm</a> ). I wanted to publish() a message in my aura/LWC and would like to have this message needed to subscribe() by Twilio-Flex soft-phone which is in same DOM but in react.Js. Can we achieve this using LMS? More specifically, how to configure/get Salesforce Message channel stuff into Flex react.js page though these both are in same DOM.?</p>
<p>If you are interested, I can provide you the sample code snippets about react.js plugin and little hack (point# 2). But <a href="https://github.com/developerforce/open-cti-demo-adapter/issues/37" rel="nofollow ugc">https://github.com/developerforce/open-cti-demo-adapter/issues/37</a> has most of the requirement what I am talking about.</p>
<p>Thank you!<br />
Charan</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: www.jitendrazaa.com @ 2026-04-17 05:41:17 by W3 Total Cache
-->