• Li Chen
  • NEWBIE
  • 10 Points
  • Member since 2014

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

We are implement Live Agent feature and configure skill and users, and tried to integrate with our own web-portal.
By Running sample script genereated by Salesforce from Local laptop, it's working well, can see online/offline of agents, also can do Live chat with agents.

When we deploy to our own Tomcat-Apache web-server, we are able to see the online/offline button, but after i click on the Online button the chat window pops up with an error as below:

HTTP ERROR: 500

Problem accessing /content/s/prechatVisitor. Reason:

This is not a JSON Array.
Powered by Jetty://


And URL call in browser looks like below strang url: 
https://9t.la9cs.salesforceliveagent.com/content/s/prechatVisitor?endpoint=https%3A%2F%2F9t.la9cs.salesforceliveagent.com%2Fcontent%2Fs%2Fchat%3Flan......................

I already saw there are two similar discussions on the forum without answer.

Any one could give some help? Thanks!

The Sample HTML script are as below:

<html>
<head></head>
<body>

<img id="liveagent_button_online_573O0000000CaUz" style="display: none; border: 0px none; cursor: pointer" onclick="liveagent.startChat('573O0000000CaUz')" src="https://uat-libertyinsurancesg.cs5.force.com/survey/resource/1421128309000/Live_Agent_online_button" /><img id="liveagent_button_offline_573O0000000CaUz" style="display: none; border: 0px none; " src="https://uat-libertyinsurancesg.cs5.force.com/survey/resource/1421129020000/Live_Agent_offline_button" />
<script type="text/javascript">
if (!window._laq) { window._laq = []; }
window._laq.push(function(){liveagent.showWhenOnline('573O0000000CaUz', document.getElementById('liveagent_button_online_573O0000000CaUz'));
liveagent.showWhenOffline('573O0000000CaUz', document.getElementById('liveagent_button_offline_573O0000000CaUz'));
});</script>


<script type='text/javascript' src='https://c.la9cs.salesforceliveagent.com/content/g/js/32.0/deployment.js'></script>
<script type='text/javascript'>
liveagent.addCustomDetail('Company Name', 'Company ABC');
liveagent.setName('John Doe');
liveagent.init('https://d.la9cs.salesforceliveagent.com/chat', '572O0000000CaT3', '00DO00000050jEO');
</script>
</body>
</html>



 
Hi All,

Understood that the SSO for salesforce.com in web broswer can implemented by SAML2, and there're lots docs on this setup. But my question is to have SSO on Salesforce1,  assumed one org enable some VF page visible in Salesforce1 mobile app. Can we still reuse same SAML2.0 setting? or we need to use the combination of SAML and OAuth?  Any one have real project experience on the first question, could help to provide a guideline? Thanks very much!
  • September 05, 2014
  • Like
  • 0
Hi All,

We are implement Live Agent feature and configure skill and users, and tried to integrate with our own web-portal.
By Running sample script genereated by Salesforce from Local laptop, it's working well, can see online/offline of agents, also can do Live chat with agents.

When we deploy to our own Tomcat-Apache web-server, we are able to see the online/offline button, but after i click on the Online button the chat window pops up with an error as below:

HTTP ERROR: 500

Problem accessing /content/s/prechatVisitor. Reason:

This is not a JSON Array.
Powered by Jetty://


And URL call in browser looks like below strang url: 
https://9t.la9cs.salesforceliveagent.com/content/s/prechatVisitor?endpoint=https%3A%2F%2F9t.la9cs.salesforceliveagent.com%2Fcontent%2Fs%2Fchat%3Flan......................

I already saw there are two similar discussions on the forum without answer.

Any one could give some help? Thanks!

The Sample HTML script are as below:

<html>
<head></head>
<body>

<img id="liveagent_button_online_573O0000000CaUz" style="display: none; border: 0px none; cursor: pointer" onclick="liveagent.startChat('573O0000000CaUz')" src="https://uat-libertyinsurancesg.cs5.force.com/survey/resource/1421128309000/Live_Agent_online_button" /><img id="liveagent_button_offline_573O0000000CaUz" style="display: none; border: 0px none; " src="https://uat-libertyinsurancesg.cs5.force.com/survey/resource/1421129020000/Live_Agent_offline_button" />
<script type="text/javascript">
if (!window._laq) { window._laq = []; }
window._laq.push(function(){liveagent.showWhenOnline('573O0000000CaUz', document.getElementById('liveagent_button_online_573O0000000CaUz'));
liveagent.showWhenOffline('573O0000000CaUz', document.getElementById('liveagent_button_offline_573O0000000CaUz'));
});</script>


<script type='text/javascript' src='https://c.la9cs.salesforceliveagent.com/content/g/js/32.0/deployment.js'></script>
<script type='text/javascript'>
liveagent.addCustomDetail('Company Name', 'Company ABC');
liveagent.setName('John Doe');
liveagent.init('https://d.la9cs.salesforceliveagent.com/chat', '572O0000000CaT3', '00DO00000050jEO');
</script>
</body>
</html>



 
Hi All,

Understood that the SSO for salesforce.com in web broswer can implemented by SAML2, and there're lots docs on this setup. But my question is to have SSO on Salesforce1,  assumed one org enable some VF page visible in Salesforce1 mobile app. Can we still reuse same SAML2.0 setting? or we need to use the combination of SAML and OAuth?  Any one have real project experience on the first question, could help to provide a guideline? Thanks very much!
  • September 05, 2014
  • Like
  • 0
I have created a force.com site and have added the deployment script as well as the code for buttons into my sites homepage
But when i click on my button the chat window pops up with an error as:

HTTP ERROR: 500

Problem accessing /content/s/prechatVisitor. Reason:

    This is not a JSON Array.
Powered by Jetty://
I was setting up live agent in my org.
  • i copied the button create code and the deployment code and pasted it in my VF page(home page of my force.com site)
  • When i click on the online icon it opens a pop up with the below error:
  • HTTP ERROR: 500

    Problem accessing /content/s/prechatVisitor. Reason:

    This is not a JSON Array.
  • When i copy the same code in an html file and try for a live chat it seems to be working fine
  • Then why not with my VF page?
Any help Would be appreciated

Thanks,
Neha Patil

  •  
Hi ,

We have implemented Salesforce Single Sign on with Active Directory using SAML 2.0

1. SSO login is successfull.
2. When user log out from salesforce , salesforce session ended however the ADFS session still active .
    User-added image
  
   When the user clicks Single sign on button again ,salesforce session starts without asking for username and password as ADFS session is still active.

Please help to configure "Identity Provider Logout URL" in SSO settings.

Hi All,

 

I am having custom field bill__c( datatype: checkbox) & wanted to change the color & font on standard quote layout. IS this possible?

 

Thanks,

Ravinder