Hi,
Can anyone please tell how can i connect my UiPath Studio to Mongo DB…
Please tell me with the detailed steps.
Hi,
Can anyone please tell how can i connect my UiPath Studio to Mongo DB…
Please tell me with the detailed steps.
What is DSN? How can I get the DSN
You may use Invoke Code Activity
var client = new MongoClient("<mongo-db-string>");
Console.WriteLine("Client"+client);
// get the test database
var db = client.GetDatabase("test");
Console.WriteLine("db"+db);
// gets a collection named "foo" using a BsonDocument
var collection = db.GetCollection<BsonDocument>("sample8");
Console.WriteLine("collection"+collection);
var document = new BsonDocument("x", 1);
collection.InsertOne(document);