Embeded Messenger

ElfallahiM
Tera Contributor

Hello,

The embedded messenger is not dynamic, the end user cannot change the position of the icon related to embedded messenger on the page where it's displayed.

Do we have a solution for that ?

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@ElfallahiM 

did you try to play with the css?

Engagement Messenger launcher button stretched horizontally (Virtual Agent) 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

AbinC
Tera Contributor

HI @ElfallahiM ,

 

Requirement: I'm trying to implement Embedded Messenger feature for one of our client.  I've configured the module, copied the "Embed Code" in my third party website page (which I've considered as another ServiceNow instance for a testing purpose). So, the Embedded Messenger from instance A started to appear on my portal page of instance B. 

 

DOMException: However, some features are not working and it gives me an exception as, 

Uncaught DOMException: Blocked a frame with origin "https://instanceA.service-now.com" from accessing a cross-origin frame. 

AbinC_0-1745929634184.png

 

 

Findings: The error seems to be appearing due to a restriction since we're calling the cross origin resource. 

The window.postMessage() method provides a controlled mechanism to securely circumvent this restriction. 

 

Question: But, I'm uncertain on how can I use this postMessage function in my below code used to embed an engagement messenger. Can someone please help around this. 

 

AbinC_1-1745929634236.png

If my response has  helped  you in any way please mark it correct and close the thread so  i can grow in this wonderful community

Regards
Abin

 

ElfallahiM
Tera Contributor

Hello @AbinC , 

 

The other site is in the same domain as your servicenow instance ? if it's not you need to authorize it by adding a custom URL on your side, and also on the cors rules, you need to add the other domain.