InsertMongoDBEntity<T>

InsertMongoDBEntity<T>

What to use it for

Prerequisites for usage

Essential options to set

Insert / create a mongodb document into a collection.

See the mongodb C# driver documentation for more information.

 
  • Collection
  • Entity

<T>

Activities with a <T> will ask you to indicate what the data type is of the data that will be affected. Depending on the data type, you will get a different Template (<T>) with configuration options.

 

 Learn more about <T>

Activities with a <T> will ask you to indicate what the data type is of the data that will be affected. A database contains data of several types, and the <T> indicates that configuring that Activity starts with setting the targeted data type.

Depending on the data type, some configuration options will (dis)appear, depending on their relevancy.

When this Activity will affect this type of database data..Then select this option
BooleanBoolean
Whole numbersInt32
Text and/or numbersString
Object (with properties)Object
SmartBridge documentTie.MessagePortal.Shared.Entities.Document
Content of a SmartBridge documentTie.MessagePortal.Shared.Entities.DocumentContent
State of a SmartBridge documentTie.MessagePortal.Shared.Entities.DocumentState
A list of data of a specific data typeArray of (T)
Data specific to SmartBridgeBrowse for types...

 

This activity  rethrows any exceptions encountered. To handle the exception wrap it a TryCatch activity.

Options for SmartBridge 3

OptionWhat is itHow to use it
CollectionThe collection you want to insert the entity in.Enter the variable name of a collection you have create earlier with GetMongoDBCollection<T>.
EntityThe entity / document that you want to insert.Enter the variable name of your entity.
DisplayNameName of the Activity. 
ResultThe inserted entity.Enter a variable to store the entity in.