You need to sign in to do that
Don't have an account?
AichaSF
LWC and External Site window
Hello,
I have a request from my client:
From an external site (window), an agent clicks on a button, the salesforce page opens, the agent clicks on another button in the account detail page, and he returns to the 1st page (the SF page closes).
We used an LWC and JS code:
'window.addEventListener' from external site to SF.
window.opener.postMessage
({ func: 'echo',
message: "message" }, '*');
* window.close ();
in order to resume the original page.
When I log (window.opener) I got undefined.
Can someone help me.
I have a request from my client:
From an external site (window), an agent clicks on a button, the salesforce page opens, the agent clicks on another button in the account detail page, and he returns to the 1st page (the SF page closes).
We used an LWC and JS code:
'window.addEventListener' from external site to SF.
window.opener.postMessage
({ func: 'echo',
message: "message" }, '*');
* window.close ();
in order to resume the original page.
When I log (window.opener) I got undefined.
Can someone help me.