• mk2013
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 9
    Questions
  • 20
    Replies

SFDC gurus,

I am new to SFDC and have implementaeda integration of our java web app. with SFDC. This integration is working fine on DEV sandbox and DEV server. But on staging we get the System.CalloutException: java.security.cert.CertificateException.

The remote site setting is set to the proper url 'https://ccc.bbb.com and is active. The endpoint works fine when used in a browser.
Below is the exception that we see in logs. The same endpoint works fine in browser. Any ideas for solving this issue?

 

08:38:48.049 (49762000)|SYSTEM_METHOD_EXIT|[16]|System.HttpRequest.setEndpoint(String)
08:38:48.049 (49813000)|SYSTEM_METHOD_ENTRY|[22]|System.Http.send(ANY)
08:38:48.049 (49891000)|CALLOUT_REQUEST|[22]|System.HttpRequest[Endpoint=https://ccc.bbb.com/MyWebApp/getPrimary.htm?id=430783, Method=GET]
08:38:48.235 (235735000)|EXCEPTION_THROWN|[22]|System.CalloutException: java.security.cert.CertificateException: No name matching croc1-stg.toshiba-solutions.com found
08:38:48.235 (235854000)|SYSTEM_METHOD_EXIT|[22]|System.Http.send(ANY)

 

Thanks, 

mk2013

 

 

I am a newbie to Salesforce and trying to get maximum code coverage in my test class.

I have a delete method in my controller class which deletes a custome object from external application vis a webservice call and if that is successful then it deletes it from SalesForce db.

My controller code is like below.

 

 

WebService static String deleteQuote(String quoteId) {
          HttpRequest req = new HttpRequest(); 
          String retString = 'false';
          req.setMethod('GET');
          req.setHeader('Connection','keep-alive');
          req.setEndpoint('http://aaaa.bbbb.com/MyWebApp/deleteQuote.htm?id=' +quoteId);

          Http http = new Http();
          HTTPResponse res = http.send(req);  
          if(res.getBody().equalsIgnoreCase('true')){
              retString = deleteQuoteFromSFDB(quoteId);
          }
         return retString;
    }
    
    public static String deleteQuoteFromSFDB(String quoteId){
      String returnStr =  'false';
      List<Custom_Quote__c> quotes = new List<Custom_Quote__c>();
        quotes = [SELECT Id, Name FROM Custom_Quote__c q where q.name = : quoteId];
	try {
            delete quotes;
            returnStr =  'true';
        } catch (DmlException e) {
            for (Integer i = 0; i < e.getNumDml(); i++){
                System.debug(e.getDmlMessage(i)); 
            }
        }
        return returnStr;
    }
    

 

In my test class I have following code.

      /*****************DML Start*********************/
           Account testAccount = new Account();
           testAccount.Name = 'test_99';
           testAccount.Protected_Account__c = 'yes';
           insert testAccount;
                 
           Opportunity o = new opportunity();
           o.Name = 'OppTest';
           o.AccountId = testAccount.Id;
           o.CloseDate = Date.today();
           o.StageName = '1. Prospecting';
           o.customer_type__c = 'zba';
      
           insert o;
           System.assertEquals(testAccount.Name, 'test_99');
           System.assertEquals(o.Name, 'OppTest');
           
           Custom_Quote__c eq = new Custom_Quote__c();
           eq.Name = '123456';
           eq.Package_Type__c = 'Lease';

           eq.Quote_Summary__c = 'Summary';
           eq.Quote_Total__c = 12334.21;
           eq.Opportunity__c = o.Id;
           insert eq; 
        /*****************DML complete.*********************/





         /********** Test Delete Quote Happy path**********************/
         String delRet = MyController.deleteQuoteFromSFDB(eq.Name);
         System.debug('\n\n\n delet ret = ' + delRet);
         System.assertEquals('true', delRet);
         
         /********** Test Delete Quote Exception path**********************/
         Custom_Quote__c eq1 = new Custom_Quote__c();
         eq1.Name = '123456';
         eq1.Package_Type__c = 'Lease';
         eq1.Quote_Summary__c = 'Summary';
         eq1.Quote_Total__c = 12334.21;
         eq1.Opportunity__c = o.Id;
         insert eq1;
        
	 delRet = MyController.deleteQuoteFromSFDB('xyzabd');
         System.debug('\n\n\n delete ret = ' + delRet);
         System.assertEquals('true', delRet);

 I thought passing a non-existing quote name to the deletefromSFDB method will create a DMLException situation and I can get code coverage for exception block, but I am not getting any exception there and the methid returns true.

 

How do I get coverage for the DMXException block? Please help.

Thanks,

mk2013

Hi,

I am facing same 'Login Rate Exceeded issue'. Would really appreciate your help on fixing this. I am new to SalesForce and first time doing this integration. I call the 'getConnection' method each time before making API call. Inside that method I check if connection is not null then I return the same connection object or else I create a new one.
I am not sure why I get this error. The method code is like below.

 

Thnaks,

mk2013

 

private EnterpriseConnection getConnection(boolean loginRequired){
		//get all the related properties
		
		String userName = sfdcProps.getProperty("sfdc.username");
		String password = sfdcProps.getProperty("sfdc.password");
			
		logger.warn(" \n\nloginRequired " + loginRequired +" UserName = " +userName + " pwd = " +password );
		
		if(connection != null && !loginRequired) {
			return connection;
		}
		else{
				try {
					 ConnectorConfig config = new ConnectorConfig();
					 config.setUsername(userName);
					 config.setPassword(password);
				 	 //config.setTraceMessage(true);
				 	 //config.setPrettyPrintXml(true);
				     connection = Connector.newConnection(config);
				     if(loginRequired){
				    	 synchronized(connection){
							 LoginResult loginResult = connection.login(userName, password);
							 String sessionId = loginResult.getSessionId(); 
							 String serverUrl = loginResult.getServerUrl();
							 connection.getConfig().setServiceEndpoint(serverUrl);
							 connection.getSessionHeader().setSessionId(sessionId);
				    	 }
				     }
					 String authEndPoint = config.getAuthEndpoint();
				      // display current settings
				      logger.info("SessionId: " + connection.getSessionHeader().getSessionId());
				      logger.info("Auth EndPoint: "+ authEndPoint );
				      logger.info("Service EndPoint: "+ connection.getConfig().getServiceEndpoint());
				      logger.info("Username: "+config.getUsername());
				    }catch (ConnectionException e1) {
					    logger.error("Could not connect to SalesForce: " + e1.getMessage());
				    }
		}
	    return connection;
	}

 

Hi,

I am new to Salesforce and apex and trying to retrieve an existing account which I think should  be a very simple thing.

But I do not get any rows back. Same query runs fine when I run it in Eclipse IDE on the schema.

 What can be the reason for not getting any rows back in apex code?

 

    public static Account retrieveAccount(){
    	Account testAct;
        try{
           String aId = '001V000000E1CPyIAN';
           List<Account> actList = new List<Account>();
           actList  = [select Id, Name from Account where Id=: aId];
           if (!actList.isEmpty()) {
                testAct = actList.get(0);   //get existing act
            }
            System.debug('\n\n\n\n Acct = ' + testAct +'\n\n\n\n');
       }catch(QueryException ex){

           System.debug(ex.getMessage());
        }     
       return testAct;
    }

 Thanks,

mk2013

I am integrating a java web app with SalesForce. when the session is expired, and I try to create a new Connection I get some weird error and am bot able to connect to SalesForce.

The error shows as below. I do not understand why does it say username null. I am new to SalesForce and not able to understand what the error is. It is not throwing the exception either. The java webapp is on weblogic application server.

Any help is apprecated.

------------------------------------------------------------------------------------------------------------------------------------------------------------------
WSC: Creating a new connection to https://***api.salesforce.com/services/Soap/c/27.0/00DV00000051xMT/0DFV0000000Cav2 Proxy = DIRECT username null
------------ Request start ----------
<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001$
------------ Request end ----------
null=[HTTP/1.1 500 Server Error]
Date=[Wed, 01 May 2013 15:21:26 GMT]
Content-Length=[1011]
Content-Type=[text/xml;charset=UTF-8]
------------ Response start ----------
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sf="urn:fault.enter$
------------ Response end ----------
<May 1, 2013 8:21:39 AM PDT> <Warning> <Socket> <BEA-000450> <Socket 6 internal data record unavailable (probable closure due idle timeout)$

---------------------------------------------------------------------------------------------------------------------------------------------------------

 

I have the connection code as below.

 

public EnterpriseConnection getConnectionToSalesForce(){
if(connection != null){
return connection;
}else{
// Connect to SalesForce
ConnectorConfig config = new ConnectorConfig();
config.setUsername("userName");
config.setPassword("passwrord");
config.setTraceMessage(true);
try {
connection = Connector.newConnection(config);
String sessionId = config.getSessionId();
String authEndPoint = config.getAuthEndpoint();
String serviceEndPoint = config.getServiceEndpoint();
connection.getSessionHeader().setSessionId(sessionId);

// display current settings
logger.debug("SessionId: " + sessionId);
logger.debug("Auth EndPoint: "+ authEndPoint );
logger.debug("Service EndPoint: "+ serviceEndPoint);
logger.debug("Username: "+config.getUsername());
}catch (ConnectionException e1) {
e1.printStackTrace();
}
}
return connection;
}

 

 

------------------------------------------------------------------------------------

 

Thanks,

mk2013

Scenario:

I have a button on a custom object. In the button click the content source is URL and that URL opens up in the existing window with a sidebar. So when user clicks button they are taken to the uRL which is a J2EE webapp.  User performs some actiity in that application and a new object is craeted in J2EE webapp. I need to create it's corresponding custom object in SF.  I was trying to do this from J2EE webapp using the SOAP API and it worked fine. But all this time I was using the web app which is hosted on my local server. Now when I point the URL to the real production server, I get security error.

 

My question is, is there any way to communicate back to SF when using a URL button? if there any such way to communicate and tell back to SF, that a java record is created and go ahead and insert corresponding custom object in SF, then I do not need to find any solution for security as I can take care of inserting in SF in apex code.

Please note that the button has to be with content source as URL as I have to open that web app in current window.

 

Anybody came accross such situation, please help.

 

Thanks,

mk2013

  • April 24, 2013
  • Like
  • 0

Hi,

I have a controller which makes HTTP callouts to a J2EE webapp, the callout returns a list of JSON objects.

I need to retrive values from this object and insert it into salesforce object, there is no VF page for this. I get the following list in response to my call.

 

[{"quoteId":"364926","baseModelName":"e-Studio Color Copier - Tandem LCF","accessoryNames":["Finier Rail"],"baseModelCost":20000.0,"skuNumber":"ESTU0CT"},{"quoteId":"364926","baseModelName":"e-Studio Copier - 4 Drawer","accessoryNames":["50 Sheet Stapling Finisher"],"baseModelCost":10000.0,"skuNumber":"ESTU0C"}]
 
To parse above list I first created an apex class as below
 
public class PrimaryQuoteObj {

       public String quoteId;
       public String baseModelName;
       public List<String> accessorySKUs;
       public Double baseModelCost;
       public String skuNumber;
}

and then tried to parse the list in the controller using the above class like below.
global class ExtCalloutController {

   WebService static void getPrimaryQuoteDetails(String id) {
          HttpRequest req = new HttpRequest(); 
        //Set HTTPRequest Method
       req.setMethod('GET');
   
       //Set HTTPRequest header properties
       req.setHeader('Connection','keep-alive');
       req.setEndpoint('http://cxyz.row.com/myApp/getPrimaryDetails.htm?qId='+id);
       Http http = new Http();
       try {
               //Execute web service call here     
                HTTPResponse res = http.send(req);  
                System.debug('Response Body = ' + res.getbody());
                PrimaryQuoteObj priQuotedetails =(PrimaryQuoteObj)System.JSON.deserialize(res.getbody(), PrimaryQuoteObj.class);
                //Helpful debug messages
                System.debug(res.toString());
                System.debug('STATUS:'+res.getStatus());
                System.debug('STATUS_CODE:'+res.getStatusCode());

        } catch(System.CalloutException e) {
            //Exception handling goes here....
        }  
       // return null;   
    }
}
    
 
When parsing the JSON list I get the exception:
System.JSONException: Malformed JSON: Expected '{' at the beginning of object
 
I understand that this is because it's a list of JSON objects, trying to figure out how to loop through this list. I am a total newbie to salesForce and apex and any help is appreciated.
  • April 18, 2013
  • Like
  • 0

I am a newbie to SalesForce and trying to call a REST service in a custom button's onclick JavaScript.

I get error, Error 400 Endpoint protocol(http/https) mismatch: 

My endpoint is http://blah.blah.. and I can hit it separately in browser, so the RESt service getPrimaryQuoteDetails is working fine.

My onclick JavaScript code is as below. Can anybody throw light onto why this is not working? The site is listed as 'Remote Site' and I can also make a call to this service from a VF page. But the problem is the requirement is not to use VF page. This button is part of a custom object which is added to a standard opportunity layout.

Any answers or suggestions from gurus?

 

==========================================

{!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")} 

 

sforce.connection.remoteFunction({
url : 'http://c-----.com/----------/getPrimaryQuoteDetails.htm?quoteId=364926',
async : true,
cache : false,
method: "GET",
onSuccess : function(response) { alert('OK: '+response); },
onFailure : function(response) { alert('ERROR: '+response); }
});

 

Thanks,

mk2013

 

  • April 10, 2013
  • Like
  • 0

Hi,

I am a newbie to SalesForce and trying to do one simple task. In SalesForce Account creation page I have created a custom button, which can take me to another web application in my company, when I create a new account. Now while doing that I also need to capture the data used in account creation and provide that to other application. That application is a legacy application used to generate quote. When the user is done with generating the quote I want that data to flow back to SalesForce.

 

I am wondering what is the way I can transmit the data from SalesForce to other app and again back to SalesForce.

Any pointers/help will be greatly appreciated.

Thanks,

M

 

 

 

  • February 13, 2013
  • Like
  • 0

SFDC gurus,

I am new to SFDC and have implementaeda integration of our java web app. with SFDC. This integration is working fine on DEV sandbox and DEV server. But on staging we get the System.CalloutException: java.security.cert.CertificateException.

The remote site setting is set to the proper url 'https://ccc.bbb.com and is active. The endpoint works fine when used in a browser.
Below is the exception that we see in logs. The same endpoint works fine in browser. Any ideas for solving this issue?

 

08:38:48.049 (49762000)|SYSTEM_METHOD_EXIT|[16]|System.HttpRequest.setEndpoint(String)
08:38:48.049 (49813000)|SYSTEM_METHOD_ENTRY|[22]|System.Http.send(ANY)
08:38:48.049 (49891000)|CALLOUT_REQUEST|[22]|System.HttpRequest[Endpoint=https://ccc.bbb.com/MyWebApp/getPrimary.htm?id=430783, Method=GET]
08:38:48.235 (235735000)|EXCEPTION_THROWN|[22]|System.CalloutException: java.security.cert.CertificateException: No name matching croc1-stg.toshiba-solutions.com found
08:38:48.235 (235854000)|SYSTEM_METHOD_EXIT|[22]|System.Http.send(ANY)

 

Thanks, 

mk2013

 

 

I am integrating a java web app with SalesForce. when the session is expired, and I try to create a new Connection I get some weird error and am bot able to connect to SalesForce.

The error shows as below. I do not understand why does it say username null. I am new to SalesForce and not able to understand what the error is. It is not throwing the exception either. The java webapp is on weblogic application server.

Any help is apprecated.

------------------------------------------------------------------------------------------------------------------------------------------------------------------
WSC: Creating a new connection to https://***api.salesforce.com/services/Soap/c/27.0/00DV00000051xMT/0DFV0000000Cav2 Proxy = DIRECT username null
------------ Request start ----------
<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001$
------------ Request end ----------
null=[HTTP/1.1 500 Server Error]
Date=[Wed, 01 May 2013 15:21:26 GMT]
Content-Length=[1011]
Content-Type=[text/xml;charset=UTF-8]
------------ Response start ----------
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sf="urn:fault.enter$
------------ Response end ----------
<May 1, 2013 8:21:39 AM PDT> <Warning> <Socket> <BEA-000450> <Socket 6 internal data record unavailable (probable closure due idle timeout)$

---------------------------------------------------------------------------------------------------------------------------------------------------------

 

I have the connection code as below.

 

public EnterpriseConnection getConnectionToSalesForce(){
if(connection != null){
return connection;
}else{
// Connect to SalesForce
ConnectorConfig config = new ConnectorConfig();
config.setUsername("userName");
config.setPassword("passwrord");
config.setTraceMessage(true);
try {
connection = Connector.newConnection(config);
String sessionId = config.getSessionId();
String authEndPoint = config.getAuthEndpoint();
String serviceEndPoint = config.getServiceEndpoint();
connection.getSessionHeader().setSessionId(sessionId);

// display current settings
logger.debug("SessionId: " + sessionId);
logger.debug("Auth EndPoint: "+ authEndPoint );
logger.debug("Service EndPoint: "+ serviceEndPoint);
logger.debug("Username: "+config.getUsername());
}catch (ConnectionException e1) {
e1.printStackTrace();
}
}
return connection;
}

 

 

------------------------------------------------------------------------------------

 

Thanks,

mk2013

Scenario:

I have a button on a custom object. In the button click the content source is URL and that URL opens up in the existing window with a sidebar. So when user clicks button they are taken to the uRL which is a J2EE webapp.  User performs some actiity in that application and a new object is craeted in J2EE webapp. I need to create it's corresponding custom object in SF.  I was trying to do this from J2EE webapp using the SOAP API and it worked fine. But all this time I was using the web app which is hosted on my local server. Now when I point the URL to the real production server, I get security error.

 

My question is, is there any way to communicate back to SF when using a URL button? if there any such way to communicate and tell back to SF, that a java record is created and go ahead and insert corresponding custom object in SF, then I do not need to find any solution for security as I can take care of inserting in SF in apex code.

Please note that the button has to be with content source as URL as I have to open that web app in current window.

 

Anybody came accross such situation, please help.

 

Thanks,

mk2013

  • April 24, 2013
  • Like
  • 0

Hi,

I have a controller which makes HTTP callouts to a J2EE webapp, the callout returns a list of JSON objects.

I need to retrive values from this object and insert it into salesforce object, there is no VF page for this. I get the following list in response to my call.

 

[{"quoteId":"364926","baseModelName":"e-Studio Color Copier - Tandem LCF","accessoryNames":["Finier Rail"],"baseModelCost":20000.0,"skuNumber":"ESTU0CT"},{"quoteId":"364926","baseModelName":"e-Studio Copier - 4 Drawer","accessoryNames":["50 Sheet Stapling Finisher"],"baseModelCost":10000.0,"skuNumber":"ESTU0C"}]
 
To parse above list I first created an apex class as below
 
public class PrimaryQuoteObj {

       public String quoteId;
       public String baseModelName;
       public List<String> accessorySKUs;
       public Double baseModelCost;
       public String skuNumber;
}

and then tried to parse the list in the controller using the above class like below.
global class ExtCalloutController {

   WebService static void getPrimaryQuoteDetails(String id) {
          HttpRequest req = new HttpRequest(); 
        //Set HTTPRequest Method
       req.setMethod('GET');
   
       //Set HTTPRequest header properties
       req.setHeader('Connection','keep-alive');
       req.setEndpoint('http://cxyz.row.com/myApp/getPrimaryDetails.htm?qId='+id);
       Http http = new Http();
       try {
               //Execute web service call here     
                HTTPResponse res = http.send(req);  
                System.debug('Response Body = ' + res.getbody());
                PrimaryQuoteObj priQuotedetails =(PrimaryQuoteObj)System.JSON.deserialize(res.getbody(), PrimaryQuoteObj.class);
                //Helpful debug messages
                System.debug(res.toString());
                System.debug('STATUS:'+res.getStatus());
                System.debug('STATUS_CODE:'+res.getStatusCode());

        } catch(System.CalloutException e) {
            //Exception handling goes here....
        }  
       // return null;   
    }
}
    
 
When parsing the JSON list I get the exception:
System.JSONException: Malformed JSON: Expected '{' at the beginning of object
 
I understand that this is because it's a list of JSON objects, trying to figure out how to loop through this list. I am a total newbie to salesForce and apex and any help is appreciated.
  • April 18, 2013
  • Like
  • 0

Hi,

 


I need to update some information automatically through java script after a record is created. Please help me..

 

 

I have created vf page and if i run that vf page value will come in to vf page. I need to update that value after a record is created. Please help me how to solve this..

 

Thanks,

Rams

  • April 10, 2013
  • Like
  • 0

Hi,

I am a newbie to SalesForce and trying to do one simple task. In SalesForce Account creation page I have created a custom button, which can take me to another web application in my company, when I create a new account. Now while doing that I also need to capture the data used in account creation and provide that to other application. That application is a legacy application used to generate quote. When the user is done with generating the quote I want that data to flow back to SalesForce.

 

I am wondering what is the way I can transmit the data from SalesForce to other app and again back to SalesForce.

Any pointers/help will be greatly appreciated.

Thanks,

M

 

 

 

  • February 13, 2013
  • Like
  • 0

I am trying to setup SSO using Federated authentication. I turned on the SAML entered all the params for the Identity Provider. The IDP is jasig's implementation of CAS. The system admin added saml.salesforce.com to the CAS registry.

Can someone please tell me how to build the page redirect URL from Salesforce URL (https://test.salesforce.com) to the IDP URL? I have looked at some documentation which suggests to add params to saml.salesforce.com but I keep getting page not found error message.

 

Thanks,

a.v.

I have followed the force.com documentation to create a SAML assertion sent from my Identity Provider to Salesforce which is configured to expect this incoming SSO response. My assertion looks just like the sample XML including the Signature. When I use an external tool (two actually) to validate the signed assertion (generated using the private key by my solution) using the public key certificate I've installed on Salesforce, the assertion validates just fine.

 

But when Salesforce receives this same signed assertion, it throws an error. When I use the validation tool, I get the following error (with the cert name snipped out):

 

11. Validating the Signature

  Is the response signed? true

  Is the assertion signed? false

  Is the correct certificate supplied in the keyinfo? false

  Certificate specified in settings: CN=[snip] Expiration: 31 Dec 2039 23:59:59 GMT

 

The XML assertion looks like this (with sensitive parts snipped):

<samlp:Response ID="_26b1076a323642a78c4199a855f8e1bb"
IssueInstant="2013-01-14T21:21:46Z" Version="2.0"
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol">
  <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
    <SignedInfo>
      <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
      <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
      <Reference URI="">
        <Transforms>
          <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
        </Transforms>
        <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
        <DigestValue>[snip]</DigestValue>
      </Reference>
    </SignedInfo>
    <SignatureValue>
    [snip]</SignatureValue>
    <KeyInfo>
      <KeyValue>
        <RSAKeyValue>
          <Modulus>[snip]</Modulus>
          <Exponent>AQAB</Exponent>
        </RSAKeyValue>
      </KeyValue>
    </KeyInfo>
  </Signature>
  <saml:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">
  https://[snip]</saml:Issuer>
  <samlp:Status>
    <samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success" />
  </samlp:Status>
  <saml:Assertion ID="_92d3c65bd6544b7eb514b9b0e4321ffd"
  IssueInstant="2013-01-14T21:21:46Z" Version="2.0"
  xmlns="urn:oasis:names:tc:SAML:2.0:assertion">
    <saml:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">
    https://[snip]</saml:Issuer>
    <saml:Subject>
      <saml:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">
      anybody.student@[snip]</saml:NameID>
      <saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">

        <saml:SubjectConfirmationData Recipient="https://login.salesforce.com/?saml=Mg[snip]rq"
        NotOnOrAfter="2013-01-14T21:26:46Z" />
      </saml:SubjectConfirmation>
    </saml:Subject>
    <saml:Conditions NotBefore="2013-01-14T21:16:46Z"
    NotOnOrAfter="2013-01-14T21:26:46Z">
      <saml:AudienceRestriction>
        <saml:Audience>https://saml.salesforce.com</saml:Audience>
      </saml:AudienceRestriction>
    </saml:Conditions>
    <saml:AuthnStatement AuthnInstant="2013-01-14T21:21:46Z">
      <saml:AuthnContext>
        <saml:AuthnContextClassRef>
        urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified</saml:AuthnContextClassRef>
      </saml:AuthnContext>
    </saml:AuthnStatement>
    <saml:AttributeStatement>
      <saml:Attribute Name="portal_id">
        <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:type="xs:string">06[snip]VT</saml:AttributeValue>
      </saml:Attribute>
      <saml:Attribute Name="organization_id">
        <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:type="xs:string">00[snip]dA</saml:AttributeValue>
      </saml:Attribute>
    </saml:AttributeStatement>
  </saml:Assertion>
</samlp:Response>

 

The certificate we are using to sign the assertion is self-issued, not from a certificate authority. But I can't find anything that says this is bad.

 

Does anyone know of any particular requirements for signing an assertion that are not covered in the documentation? I cannot find anything else to try changing!!!

I have a bit of a strange use case for OAuth that I am trying to overcome. I'm developing a mobile application that will be used by non-salesforce users. I want the app to record usage information and send the data back to my salesforce account. I need the app to be able to authenticate without the end-user inputing any credentials (they don't have a salesforce account, the data is being sent to my account). I think the only OAuth flow that would work would be username-password flow, where I would hardcode my username and password into the application. This isn't very secure, and I will run into a problem if I ever change my password. Is there any other OAuth flow that would allow me to do what I need?

 

Forgive me, I'm very new to OAuth and I've read all the guides trying to find a solution that will work but have come up short. Any help is much appreciated.

Hi,

I need to setup an intranet site which will not hold any user accounts and will instead use salesforce as the identity provider despite the login actually being instigated from the intranet(service provider) site.

 

Follow-on question:

Following the authentication we need to communicate with the salesforce api using the credentials /token from the initial login.

 

Is it possible to work in this way and has anyone got any experience of doing something along these lines or is there a better way?

 

All help and comments very much appreciated!

 

For those who have experience with implementing SSO between Salesforce and LDAP, on a scale of 1-10, what would you rate the following:

 

Level of complexity

 

Level of technical knowledge required (beyond point-click Admin experience)

 

 

And how long do you estimate it takes to complete?

 

Thank you,

 

 

Anyone knows what is causing "Login rate exceeded" exception for an (integration) user?
 

Haven't foundnd any reference/answer in "Help" or manual.

 

Can anyone provide me some more information abou this error, because it's really a blocker.

Hi,

 

While creating a list button, it asks me "Display Checkboxes (for Multi-Record Selection)" ? May I know how do I take advantage of it in my custom list button?

 

Selecting the option does show checkbox next to each line item in the related list, but thats about it. I want to take action only on selected records, how can I do it? 

 

Any idea, reference? 

 

Thanks. 

Hi All,

 

I'm new to Salesforce so forgive me if this question has been asked before.

 

We have a Salesforce instance with custom address fields. I want to add functionality in a custom button

which takes various address components e.g. post code, house no etc and sends them to a third party tool

that will use these details to return area specific information back to a custom Salesforce field. We have an API to access the methods for this 3rd party site but I want to know what is the best way to construct the API call via the button. Do we use the Javascript feature on the Custom Button settings or can we use the AJAX Remote proxy functionality

 

Many Thanks

Brian   

Hi

 

I am working on a old code. The line  sforce.connection.sessionId = "{!$Api.Session_ID}"; does not work anymore and prevents any other code line to get executed!!

 

Any Suggestions/ Alternatives?

 

Thanks

Pallavi

We have a .Net service that uploads data to the SFDC data store via their APIs. Today I found that the user account that is leveraged for these uploads is locked out and has errors stating "Login Rate Exceeded".

 

After reviewing the newsgroups my understanding is that this error comes from exceeding the daily "API Requests". The problem is that when I login as a different user to check the "API Requests, Last 24 Hours" on the "Company Information" page,  it states my current level is only 80%.

 

I was hoping for some insight as to what is the root cause of this governor problem.

 

Thanks,

Thomas

Hi everyone i have a list in my Apex class which has soql query result..

        

String query = 'SELECT  City,Latitude__c FROM Lead WHERE City LIKE \''+city+'%\'';
       
        leadrecords = Database.query(query);   

 

Eg :in the above line leadrecords is alist of lead type

 

    private List<Lead> leadrecords;

 

So now iam trying to pass this list to ajavascript variable so dat javascript variable should have query  output...but when i have done like this iam able to pass the list but when iam tryong to display that it is displaying the  ids  but i want to display the field city and latitude which are storesd in that list how to do it please someone help me with the solution... to javascript variable so how to pass this list to javascript variable

  

Good afternoon.

 

I'd like to customize the Actions available on a Related List. Specifically, I'd like to remove the Edit/Del options on the Opportunity Product Related List and add an "Inactivate" in their place. We have too many custom fields and objects to make customization of the entire page realistic, and I can't really override any of the main page views to accomodate this.

 

Anybody ever had any success with this?

 

Thanks