MongoDB Connector 24.1

# Retrieve Information from MongoDB

To automatically retrieve information from MongoDB, create a new fetch task by following these steps. The connector runs each fetch task automatically, based on the schedule that is configured in the configuration file.

To create a new Fetch Task

1. Stop the connector.
2. Open the configuration file in a text editor.

3. In the `[FetchTasks]` section of the configuration file, specify the number of fetch tasks using the `Number` parameter. If you are configuring the first fetch task, type `Number=1`. If one or more fetch tasks have already been configured, increase the value of the `Number` parameter by one (1). Below the `Number` parameter, specify the names of the fetch tasks, starting from zero (0). For example:

       [FetchTasks]
       Number=1
       0=MyTask

4. Below the `[FetchTasks]` section, create a new TaskName section. The name of the section must match the name of the new fetch task. For example:

       [FetchTasks]
       Number=1
       0=MyTask

       [MyTask]

1. In the new section, set the following configuration parameters:

   `ConnectionString` | The connection string to use for connecting to MongoDB.
   `Username` | (Optional) The user name to use when connecting to MongoDB.
   `Password` | (Optional) The password to use when connecting to MongoDB. OpenText recommends that you encrypt the value of this parameter before adding it to the configuration file. For information about how to do this, see Encrypt Passwords.
   `ContentField` | (Optional) The name of a field in a MongoDB document that you want to use to populate the IDOL document content. If the field does not exist or you do not set this parameter, the connector produces a metadata-only document.

2. (Optional) There are additional parameters that you can set to choose the items that you want to synchronize. For information about these parameters, refer to the MongoDB Connector Reference.

3. Save and close the configuration file.

   You can now start the connector.

Copyright 2023 Open Text
Version 24.1 | Last updated December 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: IDOL MongoDB Connector 24.1

Topic Title: Retrieve Information from MongoDB