• Himanshu Rana 7
  • NEWBIE
  • 0 Points
  • Member since 2017
  • Salesforce Appliacation developer
  • WakencodeTechnologies

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

I Need to track the origin of the pages. ie from which page its navigated to the current page, whether the page is browsed by clicking on a link in the mail etc.

Thanks
  • March 15, 2017
  • Like
  • 1
what is the Dml operation?
whats is the database.querylocator?
What is the interface?
What is the GovernerLimit in DML?
Hi guys,

What is google analytics and how is it related to salesforce?
Hi All,

Next month onwards I have to use ANT tool for deploment.How to do deployment  using ANT tool? How to move All componenets like(Custom obejct,fields ,class,pages)  to other sandboxes through ANT tool?Pls Explained with some examples.It will be very helpful to me..


Thanks,


Vicky SFDC

Hi Team,

 

I have one doubt on the System.runAs() method .

 

Can I use this system.runAs() in the Apex class not the test class?

 

I want to use this method in apex class to execute block of code based on the system adminstrator user.

 

Please help me .If i can use then what are the procedure i need to take care.If not please give me the reson.

 

Thanks in advance

Hi All

 

I am trying to track my Salesforce Site, by using Google Analytics.

 

My Site URL is : www.fdrclient.com
I added the tracking code to this page, and i am able to track it successfully.

 

Now the problem is, when a Client enters Username and Password in this Site, it redirects the user to my VisualForce Page
www.fdrclient.com ------> https://na5.salesforce.com/home/home.jsp

 

I want to track this VisualForce page(home.jsp) also.
I added <site:googleAnalyticsTracking/> to the end of VisualForce page, but still i am not seing anything in the Google Analytics.

 

Any idea, what should i do?

 

Thanks
Sid

Hi,

 

How to integrate the google analytics with salesforce. Any one help me how to solve these.

 

Thanks,

Yamini.

  • August 31, 2011
  • Like
  • 0

Hi,

 

I would like to know if we can sort a Map by Value. I have a Map like below.

 

Map<Id, Integer> accMap = new Map<Id, Integer>();

 

e.g I have values in the Map like below

 

accMap.put('Id1' , 2);

accMap.put('Id2' , 1);

accMap.put('Id3' , 4);

accMap.put('Id4' , 3);

accMap.put('Id5' , 5);

 

Now i want the Map to be sorted by the Integer value and my output should be like below

 

accMap.put('Id5' , 5);

accMap.put('Id3' , 4);

accMap.put('Id4' , 3);

accMap.put('Id1' , 2);

accMap.put('Id2' , 1);

 

 

Any help will be appriciated.

 

Thanks

 

Bramha

I am trying the sample deployment  from Force.com Migration Tool and getting an error. Below is the verbose copy of the error. I have verified that my login and password in the properties file are correct. Please advise what could be missing.

 

-----------------------------------------------------------------------------------------------------------------------
Complete build sequence is [test, listMetadata, deployCode, deployCodeFailingTes
t, retrieveCode, deployCodeCheckOnly, retrieveUnpackaged, retrievePkg, bulkRetri
eve, describeMetadata, deployUnpackaged, undeployCode, deployZip, ]

test:
parsing buildfile jar:file:/C:/Program%20Files/ANT/apache-ant-1.8.2/lib/ant-sale
sforce.jar!/com/salesforce/antlib.xml with URI = jar:file:/C:/Program%20Files/AN
T/apache-ant-1.8.2/lib/ant-salesforce.jar!/com/salesforce/antlib.xml from a zip
file
[sf:deploy] Note: use ant -verbose to get more information on the failure

BUILD FAILED
C:\Documents and Settings\HB39422\Desktop\SFDC-ANT\sample\build.xml:9: Failed to
 login: Failed to send request to https://login.salesforce.com/services/Soap/u/2
0.0
        at com.salesforce.ant.SFDCAntTask.doLogin(SFDCAntTask.java:183)
        at com.salesforce.ant.SFDCAntTask.getMetadataConnection(SFDCAntTask.java
:212)
        at com.salesforce.ant.SFDCMDAPIAntTaskRunner.runTask(SFDCMDAPIAntTaskRun
ner.java:16)
        at com.salesforce.ant.DeployTask.execute(DeployTask.java:59)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: com.sforce.ws.ConnectionException: Failed to send request to https://
login.salesforce.com/services/Soap/u/20.0
        at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:117)
        at com.sforce.soap.partner.PartnerConnection.login(PartnerConnection.jav
a:872)
        at com.salesforce.ant.SFDCAntTask.doLogin(SFDCAntTask.java:178)
        ... 20 more
Caused by: java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:529)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java
:559)
        at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketI
mpl.java:141)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
        at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:272)
        at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:329)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewH
ttpClient(AbstractDelegateHttpsURLConnection.java:172)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:954)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(AbstractDelegateHttpsURLConnection.java:158)
        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLCo
nnection.java:1019)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Htt
psURLConnectionImpl.java:230)
        at com.sforce.ws.transport.JdkHttpTransport.connectRaw(JdkHttpTransport.
java:133)
        at com.sforce.ws.transport.JdkHttpTransport.connectLocal(JdkHttpTranspor
t.java:97)
        at com.sforce.ws.transport.JdkHttpTransport.connectLocal(JdkHttpTranspor
t.java:92)
        at com.sforce.ws.transport.JdkHttpTransport.connect(JdkHttpTransport.jav
a:88)
        at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:94)
        ... 22 more

 

Hello, everybody!

 

Again, i'm here to do some questions...

 

I have the following code...

 

public Map<String,Double> calculaFaturamentoMensal(){

		Double soma; 
		
		Map<String,Double> faturamentoMensal = new Map <String,Double>();
		
		for(MovimentoMes__c movimento : 
                   [Select m.Valor__c, m.Mes_de_Referencia__c From MovimentoMes__c m]){
			if(faturamentoMensal.containsKey(movimento.Mes_de_Referencia__c)){
				soma = 0;
				soma = faturamentoMensal.get(movimento.Mes_de_Referencia__c);
				soma += movimento.Valor__c;
				faturamentoMensal.put(movimento.Mes_de_Referencia__c,soma);
			} else {				           
                                faturamentoMensal.put
                                (movimento.Mes_de_Referencia__c,movimento.Valor__c);
			}
			
		}
		
		return faturamentoMensal;
	
	}

 

After this, i want to sort my map by the key... trying to ensure that when I iterate over the map ill have the values based on the crescent sequence of the key...

 

Tks for all

 

 

Hi,

 

We saw the latest release of Salesforce includes 'out-of-the-box' integration with Google Analytics:

https://na2.salesforce.com/help/doc/user_ed.jsp?section=help&target=sites_analytics_tracking_code.htm&loc=help&hash=topic-title

 

However, this new feature does not appear to include the ability to get Google Analytics into our reports and dashboard objects.  Does anyone know how we can import detailed Google Analytics reports into these two objects?  This integration was fairly seemless using the Google AdWords app (http://sites.force.com/appexchange/listingDetail?listingId=a0N300000016Z6XEAU).  But, there doesn't seem to be the equivalent app for Google Analytics.

 

We'd like to be able to create a single dashboard and/or report in Salesforce that showed both information from Google Analytics and Google AdWords.

 

Any suggestions?

 

Thanks!

-- Greg

  • October 29, 2009
  • Like
  • 0