• Santosh Chakrapani 10
  • NEWBIE
  • 15 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
We have a force.com site and a community portal both with their own logins. For a user to logon to force.com site and community portal currently we have to maintain duplicate users accessing site and communities respectively.  I want to my force.com site members to access community portal but not all community users should have access to force.com site.
I have created a proof of concept for Heroku Connect and would like to share this knowledge with the developer world. How should I go about?
We have a force.com site and a community portal both with their own logins. For a user to logon to force.com site and community portal currently we have to maintain duplicate users accessing site and communities respectively.  I want to my force.com site members to access community portal but not all community users should have access to force.com site.
Hello,

I moved my code from dev to Sandbox.

The same piece of code gives very different behaviour.

Is there any particular cause or Is there some mistake at my end ?
  • March 13, 2015
  • Like
  • 0
Hi,

We have to integrate our Salesforce Org with an external system (ES1). The integration requirement is as below:

ES1 has a custom object CO1 and ES1 is the MASTER for this object’ records. This object records need to be transferred to SFDC on an hourly basis. The volume of the records < 1000. For this requirement we are proposing the below solutions:

- Option 1: Automated data load - every one hour using Data Loader

- Option 2: Using ESI's API: The ES1 system's wsdl be consumed by SFDC and then salesforce will query the CO1 object every hour, fetches these record and upsert in Salesforce.


- Option 3: Using SOAP API: ES1 system will consume SFDC's enterprise wsdl and then connect with Salesforce programmatically. It will then upsert the CO1 object records every hour in Salesforce

Now which is the best option out of three above? Also if we chose option2, how can we run the integration every hour automatically?

Any help will be highly appreciated.

Thanks
 
 

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