Seeking Suggestions for MongoDB Integration with UiPath Studio

Hello UiPath Community,

I am currently working on a project that requires integration between UiPath Studio and MongoDB, and I am encountering some challenges. I need to execute MongoDB queries and handle the results within UiPath workflows, but there doesn’t seem to be a direct MongoDB package available in UiPath.

I’ve attempted to use the ‘Invoke Code’ activity with the MongoDB .NET Driver, but I’m running into issues with importing the required namespaces and referencing the external MongoDB assemblies.

Here’s what I’ve tried so far:

  • I’ve written C# code within the ‘Invoke Code’ activity to connect to MongoDB and perform operations.
  • I’ve encountered errors when trying to import namespaces (e.g., using MongoDB.Driver;) in the ‘Invoke Code’ activity, which seems to be due to the inability to reference external libraries directly.

I am considering creating a custom activity in Visual Studio that includes the MongoDB .NET Driver and then importing that into UiPath. However, before I proceed with this approach, I wanted to ask if anyone in the community has experience with MongoDB integration or could suggest alternative methods for connecting to and interacting with MongoDB from UiPath Studio.

Any guidance, suggestions, or examples of how you’ve successfully implemented MongoDB integration in your UiPath projects would be greatly appreciated.

Thank you in advance for your help!

Hi!

Instead of Invoke Code try using coded workflows Studio - Coded Workflow (uipath.com)

This thread also mentions something called mongo db crud
Connect Uipath to MongoDB Database? - Help / Studio - UiPath Community Forum

This thread mentions a tutorial you could look into
Uipath and MongoDB connectivity - Learn / Academic Alliance - UiPath Community Forum

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.