Creating records by using a LoopBackRequest node
Use the LoopBackRequest node to create a new record in a backend data source by using a LoopBack® connector.
About this task
You can use a LoopBackRequest node in a message flow to create a new data record through a LoopBack connector in a backend data source such as MongoDB, Cloudant®, or PostgreSQL.
You create a new record by specifying Create in the Operation property of the LoopBackRequest node, and specifying the resource type (such as Account) in the LoopBack object property. The object can be overridden by the LocalEnvironment.Destination.Loopback.Request.object local environment variable. For more information about using environment variables, see Using local environment variables with LoopBackRequest nodes.
The record that you are creating must exist in the input message tree as a JSON object. When the record is created, the input message tree is copied to the location specified by the Output data location property. The output data might also be augmented with additional data that was created in the backend data source.