• dho1
  • NEWBIE
  • 25 Points
  • Member since 2012

  • Chatter
    Feed
  • 1
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 14
    Questions
  • 7
    Replies

We have implemented the live Agent functionality in Production. We have also our portal users for whome this chat functionality provided. Through portal home page , clients can initiate chat (chat button provided on portal). Also we have implemented the Prechat form in order to receive the data like Name, email, Account..

 

This is working fine but clients needs to fill out these details in Prechat form, which is not feasible since they are Portla users. So I am prepopulating these details like name, email in Pre chat form. Used prety simple code at VF (mentioned below) , this is working fine in Salesforce preview. However, when used on Portal , prechat form is not reflecting the correct Name , email in Pre chat form. In the name field this is reflecting Sitename and in email email this is using the by default site user email id.

 

We want when, every client logged in Portal and initiating the chat , in prechat form , Client name and email should be in user context....

 

Please let me know any workaround / solution how to resolve this.

 

I will really appreciate this ....

 

<apex:page showHeader="false" standardController="User" >

    <script>
        function clickBtn()
        {
            var btnSubmit = document.getElementById('prechat_submit');
            btnSubmit.click();
        }
    </script>

    <!-- This script takes the endpoint URL parameter passed from the deployment page and makes it the action for the form -->
    <script type="text/javascript">
        (function()
        {
            function handlePageLoad()
            {
                var endpointMatcher = new RegExp("[\\?\\&]endpoint=([^&#]*)");
                document.getElementById('prechatForm').setAttribute('action', decodeURIComponent(endpointMatcher.exec(document.location.search)[1]));
            }
            if (window.addEventListener)
            {
                window.addEventListener('load', handlePageLoad, false);
            }
            else
            {
                window.attachEvent('onload', handlePageLoad, false);
            }
        })();
    </script>
   
    <h1>Pre-chat Form</h1>
    <form method='post' id='prechatForm'>
   
        <style type="text/css">
            body {
                margin: 0 auto;
                padding: 0;
                font-family: 'Trebuchet MS', Helvetica, sans-serif;
                font-size: 12px;
                color: #737373;
                line-height: 16px;
            }                   

            p {
                font-weight: bolder
            }
           
            td {
                font-family: 'Trebuchet MS', Helvetica, sans-serif;
            }
           
            h1 {
                font-family: 'Trebuchet MS', Helvetica, sans-serif;
            }

            .btnClass {
                font-family: 'Trebuchet MS', Helvetica, sans-serif;
            }

        </style>

        <!-- Creates an auto-query for a matching Contact record’s Email field based on the value of the liveagent.prechat:Email field -->   
        <table border="0" width="400px">
            <tr>
                <td>
                    <b>Name: </b>
                </td>
                <td>
                    <input type='text' size="40" name='liveagent.prechat:Name' id='prechat_field' value='{!$User.FirstName} {!$User.LastName}' />          
                </td>
            </tr>
            <tr>
                <td>
                    <b>Email Address: </b>
                </td>
                <td>
                    <input type='text' size="40" name='liveagent.prechat:Email' width="500" value='{!$User.Email}' />
                </td>
            </tr>
            <tr>
                <td>
                    <b>Property Name: </b>
                </td>
                <td>
                    <input type='text' size="40" name='liveagent.prechat:Account' value='{!getAccountName}' />
                </td>
            </tr>
            <tr>
                <td>
                   
                </td>
                <td align="center">
                    <input type='submit' value='Request Chat' id='prechat_submit' class="btnClass" />
                </td>
            </tr>
        </table>

        <input type="hidden" name="liveagent.prechat.query:Email" value="Contact,Contact.Email" />        

    </form>


</apex:page>

 

Thanks alot !!!!

 

I've got a beforeUpdate trigger on user that is supposed to do some work when the user is deactivated.  However the code seemed to not pass the below condition:

 

if (i.isactive == false)
{
   //do some work here
}

 

Shouldn't I be detecting for the Isactive field for this?  

 

TIA!

How do I resolve this issue? The services are running but I can't restart the machine all the time because this is a server. 

Any help would be appreciated. 

TIA 

Failed to login. 

; nested exception is: 
java.net.SocketTimeoutException: Read timed out 

This error occurred when calling http://localhost:47008/axis/konga_aut... 

Please post the stack trace (click the button below) to the Jitterbit Support Forum. 

Client version: 5.0.3.8 
Server version: [Not connected] 
Client platform: Windows Server 2008 R2 - Java 1.7.0_07 

org.jitterbit.integration.client.server.IntegrationServerException: ; nested exception is: 
java.net.SocketTimeoutException: Read timed out 

This error occurred when calling http://localhost:47008/axis/konga_aut... 
at org.jitterbit.integration.client.server.webservice.WebServiceConfiguration.throwException(WebServiceConfiguration.java:244) 
at org.jitterbit.integration.server.implementation.webservice.interchange.authenticate.impl.AuthenticateWsImpl.login(AuthenticateWsImpl.java:94) 
at org.jitterbit.integration.client.server.LoginServiceImpl.loginImpl(LoginServiceImpl.java:120) 
at org.jitterbit.integration.client.server.LoginServiceImpl.login(LoginServiceImpl.java:100) 
at org.jitterbit.integration.client.server.ui.login.LoginJob.runImpl(LoginJob.java:55) 
at org.jitterbit.application.ui.job.UiJob$2.run(UiJob.java:514) 
at org.jitterbit.application.worker.DefaultApplicationWorker$RunnableWrapper.run(DefaultApplicationWorker.java:202) 
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 
at java.util.concurrent.FutureTask.run(Unknown Source) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
at java.lang.Thread.run(Unknown Source) 
Caused by: java.net.SocketTimeoutException: Read timed out 
at org.apache.axis.AxisFault.makeFault(AxisFault.java:104) 
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154) 
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) 
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) 
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) 
at org.apache.axis.client.AxisClient.invokeTransport(AxisClient.java:150) 
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:289) 
at org.apache.axis.client.Call.invokeEngine(Call.java:2838) 
at org.apache.axis.client.Call.invoke(Call.java:2824) 
at org.apache.axis.client.Call.invoke(Call.java:2501) 
at org.apache.axis.client.Call.invoke(Call.java:2424) 
at org.apache.axis.client.Call.invoke(Call.java:1835) 
at org.jitterbit.integration.server.implementation.webservice.interchange.authenticate.client.Konga_authenticateSoapBindingStub.loginWithVersionAndKeyValues(Konga_authenticateSoapBindingStub.java:282) 
at org.jitterbit.integration.server.implementation.webservice.interchange.authenticate.impl.AuthenticateWsImpl.login(AuthenticateWsImpl.java:74) 
... 11 more 
Caused by: java.net.SocketTimeoutException: Read timed out 
at java.net.SocketInputStream.socketRead0(Native Method) 
at java.net.SocketInputStream.read(Unknown Source) 
at java.net.SocketInputStream.read(Unknown Source) 
at java.io.BufferedInputStream.fill(Unknown Source) 
at java.io.BufferedInputStream.read(Unknown Source) 
at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143) 
... 23 more

Hi,

 

I've developed APEX code to call an email service, which in turn calls a batch APEX job.  This works if I manually forward the email created by the APEX code to the service address. However I cannot see the batch job on the apex scheduler when the APEX code sends the email directly to the service address.  

 

I've tried messing around with the service address by adding my domain and removing it, and neither case worked.  I've also tried turning on and off the advanced security settings.

 

Any ideas? 

Is it possible to set up a validation rule to prompt the user to udpate the contact's email address before he can save a case?

 

TIA.

Is there any way to do this? The only reason I want to do this because I cannot set CC's on an workflow email alert.

 

TIA!