• Prachi Arya 13
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi,

I have written a trigger on ContentDocumentLinkobject to cover the below scenario:

1. If there is a ContentDocumentLink record created with a ContentDocumentId & Entity ID is of MessagingSession object, and
2. MessagingSession record referred in Entity ID has a case linked to it then

A new ContentDocumentLink record is created to link the ContentDocumentId and the case related to MessagingSession record referred in EntityID.

Now, I don't know how to write the test class of the same as I am not finding way to create MessagingSession record. Kindly help.
I'm trying to change the default live agent icon with the custom image in my salesforce site. But its not getting updated. Here is the current Icon:
User-added image

I'm not able to find the correct place where I need to change the icon. I tried to update embedded_svc.settings.defaultMinimizedTex but it update the highlighted part in image. It's even not taking the image of chat button. Not sure from where to replace the icon.
 
<img id="liveagent_button_online_5730O000000byoz" style="display: none; border: 0px none; cursor: pointer" onclick="liveagent.startChat('5730O000000byoz')" src="https://saasdeveloper-developer-edition.ap7.force.com/liveAgent/resource/1555073074000/chat" /><div id="liveagent_button_offline_5730O000000byoz" style="display: none;"><!-- Offline Chat Content --></div><script type="text/javascript">
if (!window._laq) { window._laq = []; }
window._laq.push(function(){liveagent.showWhenOnline('5730O000000byoz', document.getElementById('liveagent_button_online_5730O000000byoz'));
liveagent.showWhenOffline('5730O000000byoz', document.getElementById('liveagent_button_offline_5730O000000byoz'));
});</script>