• CRM ADMIN 8
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 14
    Replies
Hi Team,

I use Salesforce Live Agnent Code in our Java Application. When i click "Online Chat" from Hava Application it shows "Invalid Arguments". When we set Debug for this Error it shows the Error in SfdcCore.js file. Actualy the chat request sent from our Java Application but problem occuring to receive the chat request.

Please find the Attached Screens for better understanding the actual problem. Please d needful for this issue.This is Java Application SideError Debug Screen
Hi Team,

I develop a visualforce page and i export table DIV content to PDF but after export it shows horizontally. i want to export results in Table format.
Result:
-----------
PNR
Invoice Number
Invoice Date
Case Number
Ticket Number
Airline
Remarks
Consolidator
asdf234
2342
8/12/2015
00500123
24234
QR
Hariworld
AV45S6
123123
8/19/2015
00500131
24234
AA
Test Remakes1
Test Remakes2
Test Remakes3
Test Remakes4
Test Remakes5
 
Hi,
I create a Visualforce page for create case. It is working and successfuly case created in salesforce. I crated a site for this Visualforce page, it shows Null_Session_ID and it is not create a case in salesforce. can any one resolve this problem? Please find the below visualforce page code.

Visualforce page
--------------------------
<apex:page showHeader="false" sidebar="false">
<apex:stylesheet value="{!URLFOR($Resource.Chat)}"/>
<!--<style>
    .myFormStyle {
        background-color: #E6E6FA;
    }
</style>
<apex:form styleClass="myFormStyle ">-->
<apex:includeScript value="/soap/ajax/34.0/connection.js"/>
<apex:includeScript value="/soap/ajax/24.0/apex.js"/>
<script src="/soap/ajax/20.0/connection.js" type="text/javascript"></script>
<script src="/soap/ajax/24.0/apex.js" type="text/javascript"></script>
<script>
    function createCase(){
        sforce.connection.login('XXXX@XXXX.com','XXXXXXXX'+'XXXXXXXXXXX');
        sforce.connection.sessionId = '{!$Api.Session_ID}';
        alert(' Session Id ' + '{!$Api.Session_ID}');
        var name = document.getElementById('name').value;
        var description = document.getElementById('query').value;
        var phone= document.getElementById('phone').value;
        var email= document.getElementById('email').value;
        var recType = sforce.connection.query("SELECT name,Id from RecordType where name = 'Live Agent RecordType'");
        var records = recType.getArray("records");
        if(name!='' && description!=''){
            var csObj= new sforce.SObject("Case" );
            csObj.Subject= name;
            csObj.Description= description;
            csObj.Offline_Chat_Phone_Number__c= phone;
            csObj.TripproAgentEmail__c= email;
            csObj.RecordTypeId = records[0].Id;
            result = sforce.connection.create([csObj]);
            document.getElementById('name').value='';
            document.getElementById('email').value='';
            document.getElementById('phone').value='';
            document.getElementById('query').value='';
            self.close();            
        }
        else{
            alert('You should give Query');
        }
    
    }
</script>
<script>
function getParameterByName(name) {
    name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
    var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
        results = regex.exec(location.search);
    return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
</script>
<script>
window.onload =
function AutoPopulateValuestoTextbox(name,email,phone) {
        document.getElementById("name").value = getParameterByName('userName');
        document.getElementById("email").value = getParameterByName('emailId');
        document.getElementById("phone").value = getParameterByName('phoneNumber');
}
</script>

<form>
<div class="chatOfflineMain">
        <div class="chatOfflineBox">
            <div class="name">Name</div>
            <div class="nameBox"><input type="text" id="name"/></div>
            <div class="email">Email</div>
            <div class="emailBox"><input type="text" id="email"/></div>
            <div class="phone">Phone</div>
            <div class="phoneBox"><input type="text" id="phone"/></div>
            <div class="query">Query</div>
            <div class="queryBox"><textarea id="query"></textarea></div>
            <div class="button" type="button" data-dismiss="modal" onclick="createCase()" height="40px" width="100px">Submit</div>
        </div>
</div>
</form>
<!--</apex:form>-->
</apex:page>

From Site Source
--------------------------
function createCase(){
        sforce.connection.login('XXXX@XXXX.com','XXXXXXXX'+'XXXXXXXXXXX');
        sforce.connection.sessionId = 'NULL_SESSION_ID';
        alert(' Session Id ' + 'NULL_SESSION_ID');
Hi Team,

I created a case in my production. It is created. When i want to retrieve that case with SOQL query it shows "No Response from Server". Please do needful.

 
Hi,  I created a visualforce page with InlineEdit, It is working but i created a force.com site for that visualforce page, inlineedit is not working. Please give me suggestions on this issue.
Hi Everyone,

I need to Intigrate Tableau Reports in Salesforce.com. Initally the Reports is visible in Salesfoce.com. We upgrade Tableau 8.1 to 8.3 there is Trusted Ticket Error Shown in Salesforce.com. Is there any Solution for this problem?
Hi Everyone,

I need to Intigrate Tableau Reports in Salesforce.com. Initally the Reports is visible in Salesfoce.com. We upgrade Tableau 8.1 to 8.3 there is Trusted Ticket Error Shown in Salesforce.com. Is there any Solution for this problem?
Hi All,

Recently we are working on a POC on Social Customer Service where we implmented the functionality of creating a Case in salesforce from a Facebook post. This functionality is working fine and we have built this interface as per the standard guide provided by Slaesforce. But below is the new requirement that we need to fulfill along with the existing functionality.

If we tag any Social Account on our home page and write any comment , that should also create a case in salesforce.
Please help me out how to implement this new feature. Whether this is feasible or not. Any useful documents or links would be appreciated.

Please find attached the screenshots.
Thanks in advance.
Regards
Somnath
Hi Team,

I use Salesforce Live Agnent Code in our Java Application. When i click "Online Chat" from Hava Application it shows "Invalid Arguments". When we set Debug for this Error it shows the Error in SfdcCore.js file. Actualy the chat request sent from our Java Application but problem occuring to receive the chat request.

Please find the Attached Screens for better understanding the actual problem. Please d needful for this issue.This is Java Application SideError Debug Screen
Hi Team,

I develop a visualforce page and i export table DIV content to PDF but after export it shows horizontally. i want to export results in Table format.
Result:
-----------
PNR
Invoice Number
Invoice Date
Case Number
Ticket Number
Airline
Remarks
Consolidator
asdf234
2342
8/12/2015
00500123
24234
QR
Hariworld
AV45S6
123123
8/19/2015
00500131
24234
AA
Test Remakes1
Test Remakes2
Test Remakes3
Test Remakes4
Test Remakes5
 
Hi,
I create a Visualforce page for create case. It is working and successfuly case created in salesforce. I crated a site for this Visualforce page, it shows Null_Session_ID and it is not create a case in salesforce. can any one resolve this problem? Please find the below visualforce page code.

Visualforce page
--------------------------
<apex:page showHeader="false" sidebar="false">
<apex:stylesheet value="{!URLFOR($Resource.Chat)}"/>
<!--<style>
    .myFormStyle {
        background-color: #E6E6FA;
    }
</style>
<apex:form styleClass="myFormStyle ">-->
<apex:includeScript value="/soap/ajax/34.0/connection.js"/>
<apex:includeScript value="/soap/ajax/24.0/apex.js"/>
<script src="/soap/ajax/20.0/connection.js" type="text/javascript"></script>
<script src="/soap/ajax/24.0/apex.js" type="text/javascript"></script>
<script>
    function createCase(){
        sforce.connection.login('XXXX@XXXX.com','XXXXXXXX'+'XXXXXXXXXXX');
        sforce.connection.sessionId = '{!$Api.Session_ID}';
        alert(' Session Id ' + '{!$Api.Session_ID}');
        var name = document.getElementById('name').value;
        var description = document.getElementById('query').value;
        var phone= document.getElementById('phone').value;
        var email= document.getElementById('email').value;
        var recType = sforce.connection.query("SELECT name,Id from RecordType where name = 'Live Agent RecordType'");
        var records = recType.getArray("records");
        if(name!='' && description!=''){
            var csObj= new sforce.SObject("Case" );
            csObj.Subject= name;
            csObj.Description= description;
            csObj.Offline_Chat_Phone_Number__c= phone;
            csObj.TripproAgentEmail__c= email;
            csObj.RecordTypeId = records[0].Id;
            result = sforce.connection.create([csObj]);
            document.getElementById('name').value='';
            document.getElementById('email').value='';
            document.getElementById('phone').value='';
            document.getElementById('query').value='';
            self.close();            
        }
        else{
            alert('You should give Query');
        }
    
    }
</script>
<script>
function getParameterByName(name) {
    name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
    var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
        results = regex.exec(location.search);
    return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
</script>
<script>
window.onload =
function AutoPopulateValuestoTextbox(name,email,phone) {
        document.getElementById("name").value = getParameterByName('userName');
        document.getElementById("email").value = getParameterByName('emailId');
        document.getElementById("phone").value = getParameterByName('phoneNumber');
}
</script>

<form>
<div class="chatOfflineMain">
        <div class="chatOfflineBox">
            <div class="name">Name</div>
            <div class="nameBox"><input type="text" id="name"/></div>
            <div class="email">Email</div>
            <div class="emailBox"><input type="text" id="email"/></div>
            <div class="phone">Phone</div>
            <div class="phoneBox"><input type="text" id="phone"/></div>
            <div class="query">Query</div>
            <div class="queryBox"><textarea id="query"></textarea></div>
            <div class="button" type="button" data-dismiss="modal" onclick="createCase()" height="40px" width="100px">Submit</div>
        </div>
</div>
</form>
<!--</apex:form>-->
</apex:page>

From Site Source
--------------------------
function createCase(){
        sforce.connection.login('XXXX@XXXX.com','XXXXXXXX'+'XXXXXXXXXXX');
        sforce.connection.sessionId = 'NULL_SESSION_ID';
        alert(' Session Id ' + 'NULL_SESSION_ID');
Hi Team,

I created a case in my production. It is created. When i want to retrieve that case with SOQL query it shows "No Response from Server". Please do needful.

 
Hi,  I created a visualforce page with InlineEdit, It is working but i created a force.com site for that visualforce page, inlineedit is not working. Please give me suggestions on this issue.

Hi,

 

I have encountered an issue with Live Agent.

 

It is not working in IE, in other browsers it is working well. is this bug or something?