function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ravi NarayananRavi Narayanan 

Integrate Salesforce with Mongo DB

Hi Guys,

Is it possible to retrieve records from MONGO DB and show it in salesforce using REST API?

Is it possible to insert records to Mongo db from Salesforce using REST ?

if Possible,Any Code Samples Please?

Thanks,
Ravi Narayanan
Ravi NarayananRavi Narayanan
I have one more requirement . Here my user will upload from a VF page. but i dont want to save these documents in SF as it involves so much of space. So i want to save the documents with recordid to some other DB and when user want to view documents,i want to retrieve n show in vf
Ravi NarayananRavi Narayanan
Thanks bro. Will look into this. Apart from MONGO DB is there  any other cloud service provider where i can save documents/files ??
Leslie  KismartoniLeslie Kismartoni
Just chiming in, but you might also consider looking at Salesforce's implementation of OData. http://www.odata.org/blog/salesforce-external-object-integration-using-lightning-connect-with-odata/

Basically, OData lets you look at data via REST from any source that implements the Odata spec. It isn't writable, but you get read access from pretty much any source you want.

There are a couple of OData wrappers for mongo out there, but I don't have any insights to any of 'em.
Leslie  KismartoniLeslie Kismartoni
BTW - we've been able to call external REST api's and insert data, but we've had to code up various wrappers to handle all that. 

Sails.js on heroku backended by Mongo seems promising... (Sails auto generates a REST API for you)
Arun Shanmugam 7Arun Shanmugam 7
Hi, We pretty much have the same requirement. Integrating Salesfore with Mongo DB. Were you guys able to achieve this? Please let me me know.

Thanks,
Arun
Muralidhar S (Salesforce)Muralidhar S (Salesforce)
Hi,

The below mentioned link has a post on inteygrate.com (http://inteygrate.com" target="_blank) that describes the steps to implement a simple integration using the default REST API included in mongod process,. Hope this helps for a kickstart.

https://inteygrate.com/salesforce-mongodb-integration/ (https://inteygrate.com/salesforce-mongodb-integration/" target="_blank)
Andrea Di CesareAndrea Di Cesare
Hi,

RESTHeart is the leading API server for MongoDB. It allows to easily integrate Salesforce using its REST API for both reading and writing data.

At https://restheart.org/use-cases/rest-api/ an high level description of this use case.

Disclaimer: I'm work for the company developing RESTHeart