• sbob909
  • NEWBIE
  • 50 Points
  • Member since 2010
  • Architect Evangelist
  • salesforce.com


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

Hi

 

Can I used 3rd party libraries within the Developer Force environment ?

 

For example, can I use jQuery ?

 

Thank you.

 

 

  • May 14, 2012
  • Like
  • 0

I am rebuilding my  custom objects on database.com to make them public. I have to use database.com for licenses reasons, as we expect to have many thousand light users. I would like to use VF as the front-end since I already have some idea of how to work with it. I also have a Force.com Site, Is it possible to use VF via Sites and point to the database.com objects? Is there an easier way to do this?

 

I am only trying to build out the functionality with a serviceable UI. We will bring in Pros to polish once everything works.

 

Would learning how to use the Force.com IDE be valuable for this question, or should I just use HTML and PHP?  Any other suggestions or directions?   And no, I don't know Ruby or PHP or any other tools very well yet. so I'm starting with an open mind.

 

Thank you for any suggestions.

 

Hi,

I'm facing problem having subquery.

Here is my query:

---------
QueryResult query = binding.query("select Title, "
    + " from ContentVersion v where "
    + "v.ContentDocumentId = '(select id from contentdocument c where c.latestpublishedversionid like \'<somevalue>%\')'");
 ----------

I tried couple other approaches to escape '%' but, no luck.

no viable alternative at character '%'  is the error I see on execution.

Did I miss anything?

Thanks,
Suresh

Hi

 

Can I used 3rd party libraries within the Developer Force environment ?

 

For example, can I use jQuery ?

 

Thank you.

 

 

  • May 14, 2012
  • Like
  • 0

Hi there,

 

We are having several issues between salesforce and our company proxy / reverseproxy. Here SalesForce is acting as a client, that is calling a WebService that is in our internal servers.

 

We sniffed all that is comming from Salesforce and realized that the HTTP header received from SalesForce is not that clean.

 

Below is part of the header :

 

______________________________________________

POST /xxx/yyy.svc HTTP/1.0\r\n

SFDC_STACK_DEPTH: 1\r\n

User-Agent: SFDC-Callout/24.0\r\n

Accept: text/xml\r\n

Content-Type: text/xml; charset=UTF-8\r\n

...

Via: 1.1 proxy-chi.net.salesforce.com:8080 (squid)\r\n

X-Forwarded-For: 10.232.12.23\r\n

Cache-Control: max-age=259200\r\n

Connection: keep-alive\r\n

______________________________________________

 

Strangely, SalesForce is using the http 1.0, did they know that the http 1.1 is out for a while, and that it corrected several issues related to the http 1.0, specifically to the handling of the Connection Keep-Alive and so on.

 

All other calls comming from SOAPUI or JMeters are calls that are by default http 1.1, and the Connection is set to Close.

 

If Salesforce wants to Keep-Alive the connection it has at least to specify a Connection-Token.

 

I think this is a complete mess on the SalesForce Side.

 

Question :

 - Do we have access to the version of http when we call a WebService?

 - Can we set the Connection Property of the Http header to Close?

 

Best Regards,

BizTalk@Paris

i 'm developing flex application , from there i execute queries.  .once in a while i get  query time out. i  can run query  several  times  and get query  time out but after several executions it works fine and retrieves all the records. i guess it's because of  cash  mechanism. than another day i run the query and it happens again. i get query time out for a few executions and  after several times it starts to work. again .my query is below. is my query problematic?  how can i improve time execution ? thanks,

 


<query xmlns="urn:partner.soap.sforce.com" xmlns:ns1="sobject.partner.soap.sforce.com">
<queryString>Select f.Year__c, f.Month__c, f.Product_TowerJazz__r.Id ,f.Id, f.Product_TowerJazz__c,
 f.Product_TowerJazz__r.NRE_Type__c,f.Product_TowerJazz__r.Name, f.Product_TowerJazz__r.Stage__c,
f.IsDeleted, f.Product_TowerJazz__r.Fab_Name__c, f.Product_TowerJazz__r.Flow_Group__c,
 f.Product_TowerJazz__r.oppProbability__c,f.ASP__c ,f.Qty_Probable__c ,
f.Revenue_Probable__c,  f.Account__r.Sales_Region__c, f.Account__r.Name, f.Account__c,  
f.Account__r.Sales_Level_1__c, f.Account__r.Sales_Level_2__c,
f.Account__r.Sales_Level_3__c, f.Account__r.Id,
  f.Forecast_Plan_Version__c From Forecast_Product__c f
WHERE   (f.Forecast_Plan_Version__c='a08500000040hpFAAQ' OR f.Forecast_Plan_Version__c='a08500000043sv4')
AND f.IsDeleted=false AND
f.Product_TowerJazz__r.RecordType.Name!='PLATFORM'  
AND f.Includes_In_FC__r.inactive__c=0
AND f.Opportunity__c
in (select Opportunity__c from Includes_in_fc__c fc  where fc.include_in_version__c =true AND fc.IsDeleted=false AND  Forecast_Plan_version__c = 'a08500000040hpFAAQ')  
AND ( (f.Year__c&lt;2012 AND f.Year__c&gt;2011) OR
(f.Year__c=2011 AND f.Year__c&lt;2012 AND f.Month__c&gt;=12)
OR (f.Year__c=2012 AND f.Year__c&gt;2011 AND f.Month__c&lt;=12)
OR (f.Year__c=2011 AND f.Year__c=2012 AND f.Month__c&gt;=12 AND f.Month__c&lt;=12 ) )  
AND f.Account__r.Planner__c='00550000001IxyaAAC' ORDER BY f.Product_TowerJazz__c
 

 

Hi All,

    i wrote this class for integration of Mailchimp with salesforce using apis

 

public class MailchimpOauth{public void invokeExternalWs(){Http h = new Http();   HttpRequest req = new HttpRequest();               //req.setHeader('Host','https://oauth.constantcontact.com/ws/oauth/request_token');      req.setBody('https://login.mailchimp.com/oauth2/authorize');   req.setBody('https://login.mailchimp.com/oauth2/token');   req.setBody('https://login.mailchimp.com/oauth2/');   req.setBody('https://login.mailchimp.com/oauth2/metadata');
    req.setHeader('Connection','keep-alive');    req.setHeader('Content-Type', 'application/atom+xml');    req.setMethod('POST');    req.setEndpoint('https://login.salesforce.com/services/oauth2/authorize?response_type=code&client_id=957533735502&redirect_uri=http://localhost/oauth/complete.php');

     HttpResponse res = h.send(req);      system.debug(res.getbody());
}}

 

But i got a response like  Status=Bad Request, StatusCode=400 &&&&&error=invalid_client_id&error_description=client%20identifier%20invalid.How to fix this.

any one can u please rectify this.can u give me the solution for fixing that.calient id given in that one is valid.But i dont know how the response coming like this.

 

Thanks in advance.

anu

 

  • September 27, 2011
  • Like
  • 0

I asked an Account Exec at SFDC, but she was clueless about database.com pricing.

 

I have 2 questions about the pricing based on the Pricing Page, perhaps someone out there has the answer.

 

1) The base installation includes 3 Standard Users according to the slider. But in the sidebar on the right side, it says 3 Standard Users and 3 Administrators. Does that mean 6 users all together? Or, 3 Standard Users who can have Admin rights?

 

2) What's the difference, practically, between a Standard (access) User and a Lightweight (functional) User? Is it that Standard users can log in to the back end force.com interface that we all love so much and change sharing, security and direct data entry, pull whereas Lightweight Users can only access/write data via the api? Or is there some other difference?

 

Who ever can answer these questions deserves a cookie.

 

Dovid

I am rebuilding my  custom objects on database.com to make them public. I have to use database.com for licenses reasons, as we expect to have many thousand light users. I would like to use VF as the front-end since I already have some idea of how to work with it. I also have a Force.com Site, Is it possible to use VF via Sites and point to the database.com objects? Is there an easier way to do this?

 

I am only trying to build out the functionality with a serviceable UI. We will bring in Pros to polish once everything works.

 

Would learning how to use the Force.com IDE be valuable for this question, or should I just use HTML and PHP?  Any other suggestions or directions?   And no, I don't know Ruby or PHP or any other tools very well yet. so I'm starting with an open mind.

 

Thank you for any suggestions.

 

I am building the java sample..

 

I created my remote access application definition, and copied the key and secret to the environment

as client_id and client_key per the sample.

 

"Copy the consumer key and consumer secret, and set them as environment variables in the project settings in your IDE. For example, in Eclipse Helios, right click the project, and select Properties > Run/Debug Settings > select the project > Edit > Environment. You will also need to add your username and password, plus the Force.com login URL for your org; by default this will be https://login.salesforce.com/ for Developer Edition orgs, https://test.salesforce.com/ for sandboxes. "

 

I get OAuth failed: {"error":"invalid_client_id","error_description":"client identifier invalid"}

 

so, what am I doing wrong? I verified that the correct value is picked up from the environment..