Skip to main content

#Embedded Service Deployment4 discutindo

Hello Folks, 

I have created whole chat application using embedded service deployment in Salesforce. My chat window will be in salesforce only to another app user. My application is working perfect in my dev org. While deployment from Dev to QA - I am totally stuck, getting 

site.com

 issue everywhere. I couldn't deploy embedded service deployment from one org to other - I tried with Git, workbench and Changeset everywhere it's failing with site is not found or can not be created error. Is there anyone who faced the same and able to solve?  

Thanks, 

Seema. 

 

#Embedded Service Deployment  #Embedded Service

1 resposta
  1. 31 de ago., 14:40

    Hi Seema, this is expected. An Embedded Service Deployment always points to a Site endpoint, and Sites (Force.com

    or Experience) do not migrate through change sets or the Metadata API, so in QA the deployment references a Site that does not exist, hence site not found or cannot be created. 

     

    Fix, in order: 

    1. In QA, create and ACTIVATE the Site first (Setup, Sites, or the Experience site if Dev uses one) so QA has its own site domain. 

    2. Re-add your CSP Trusted Sites and CORS allowlist entries for the host page domain, or the widget loads but stays blocked. 

    3. Then deploy the Embedded Service Deployment plus its supporting metadata (chat or messaging config, flows, fields) pointing at that QA Site. 

    4. Do not reuse the Dev code snippet on the page, it hard-codes Dev org URLs. Copy the fresh snippet Salesforce generates for the QA deployment. 

     

    The Site is org-specific, so it can never come across in the change set itself. You build and activate it in the target org first, then layer the deployment on top. 

     

    If this helps, please mark it as the Best Answer so it helps the next person, thanks 🙂

0/9000

Hi Everyone :)  

 

Is there a way to add a fixed 'banner' to an embedded service deployment so that there's a constant disclaimer on the chat? Similar to the 'Powered by Agentforce' but customised text? 

 

#Agentforce  #Embedded Service Deployment  #LWC  #Trailhead  #Help

2 respostas
  1. 19 de ago., 16:58

    Hey Megan, 

     

    Adding one thing to Himanshu's answer since it's mostly right but slightly understates option 2: Salesforce actually has a fully supported LWC-based header customization for Messaging (lightningSnapin__MessagingHeader target), you extend the base chat header component and can add whatever fixed text/markup you want inside it. This is documented and stays visible for the whole conversation, unlike the greeting-message approach, which scrolls away. 

     

    So realistically you have two solid, supported paths: 

    1. Custom LWC header (extends BaseChatHeader/MessagingHeader), gives you a persistent banner area inside the actual chat window that Salesforce won't overwrite on releases, since it's a supported customization point, not DOM hacking 

    2. A banner on your host page around the widget (Himanshu's option 1), simplest if the disclaimer doesn't need to be inside the chat window itself 

     

    Both are supported. The custom header route is probably closer to what you're picturing since it sits inside the widget alongside "Powered by Agentforce," not just around it. 

     

    Reference:

    https://developer.salesforce.com/docs/service/messaging-web/guide/customize-header.html

0/9000

Hello Trailblazers,

 

Please upvote my latest Service Cloud Idea;

Add Email as a Channel Menu Option

 

https://trailblazer.salesforce.com/ideaView?id=0874V000000ciUuQAI

 

Thanks, Tom

2 comentários
  1. Tom Bassett (Vera Solutions) Forum Ambassador
    4 de jan. de 2021, 09:05
    Thanks for this suggestion, this is a neat workaround for now until Email is added as it's own option :)
0/9000

Hello Trailblazers,

 

Please upvote my latest Service Cloud Idea;

 

Add Email as a Channel Menu Option

 

https://trailblazer.salesforce.com/ideaView?id=0874V000000ciUuQAI

 

Thanks, Tom

0/9000

Hello Trailblazers,

 

Please upvote my latest Service Cloud Idea;

 

Add Email as a Channel Menu Option

https://trailblazer.salesforce.com/ideaView?id=0874V000000ciUuQAI

 

Thanks, Tom

0/9000

Hi Trailblazers! I have a question about Embedded Service Code Snippets. If someone is using different website pages, rather than different subdomains, for brands (i.e. example.com/brandA rather than brandA.example.com), is it possible to have an embedded chat window that is different for each brand and for the chat window to stay visible as the website visitor navigates sub-pages for the brand. Thanks in advance!

0/9000

Hi,

I am having issues with adding the webchat to our website. I configured the chat colors to be orange and grey and they works fine during the chat session. The problem is before the chat session the button is black and the icon is missing and just shows a box. you can view it on the website.

 

https://bacasystems.com/support-test/

 

Any help is appreciated. 

1 comentário
0/9000

Hi All and Anyone who can help :-) We are due to go live with our site later today and I have an issue with the web chat styling and screens changing and case automation disappearing with the installation of custom chat buttons.  I had some assistance from Salesforce support with the web chat set up and it working. They said to follow the documentation steps for the custom chat buttons which we did and then after deploying the code the custom chat buttons, the pop up chat screen, pre-chat form and styling from the Embedded Service Deployment were replaced with a rudimentary chrome chat pop up and no pre-chat as previously configured. Cases no longer autogenerate and a chat transcript window replaces the other case/chat configuration. We don't know why this happened but need URGENT assistance here.

 

We can delete the code and go back to the standard included buttons with embedded chat but we don't understand why this happened and why we can't connect it to our custom chat button.

 

These are the steps we followed:

1. Followed Salesforce Documentation Instructions to install Custom Chat Buttons.

2. Added Chat Button Code to Staging Site Pages.

3. Added Chat Deployment Code (Javascript) to Staging Site Pages - this finally changed the button but then replaced the other components.

 

There were no error message just complete change. Documentation reads as though embedded chat is an extension of Live Agent. Are they two different things?

Thanks for anything you can offer.

Emma

1 comentário
  1. 31 de out. de 2019, 19:48
    I'd bet it was the prechat...that has the code for all the automations, such as creating a case, record type, etc. I don't have much timwe to dive deeper on this, but at a glance, that is what I'd start with for troubleshooting.
0/9000