pfx-odata2:create
Creates a single entity in the external system.
Properties
Option | Type | Default | Description |
---|---|---|---|
| String | Â | Defines a connection to the target system. Another way to define the connection is to specify the |
| String | Â | Defines the URL of the target system. Use if the connection is not specified. |
| String |  | Defines the username for authentication. Use if the connection is not specified. |
| String |  | Defines the password for authentication. Use if the connection is not specified. |
| String | Â | Defines the entity type. |
| String | Â | Defines the entity identifier. Mandatory for the update/delete methods. Optional for the read method. |
| String | * | Specifies a subset of the entity properties that should be returned back. If not specified, all properties are selected. It is a comma-separated list. E.g. |
| String | Â | A predicate expression that selects only entities which match the expression. E.g.Â
|
| String |  | Determines what values are used to order a collection of selected entities. E.g. |
| Integer | Â | Defines the number of records to skip (from the beginning). If defined, the selected collection skips the first N entities and returns just the remaining subset. |
| Integer | Â | Defines the number of records to include (from the beginning). If defined, just the first N entities from the selected collection are selected. |
| String | none | Supported values are:
|
Examples
Create an entity with multiple IDs: A_CreditMemoRequestItems(CreditMemoRequest='60000001',CreditMemoRequestItem='10')
<route id="sap4hana-create-credit-memo-item" autoStartup="false">
<from uri="timer:in?repeatCount=1&delay=5000"/>
<setBody>
<groovy>
[
"CreditMemoRequest":"60000001",
"CreditMemoRequestItem":"10",
"CreditMemoRequestItemCategory":"G2N",
"CreditMemoRequestItemText":"Computer",
"TotalNetAmount":new BigDecimal("500.00"),
"TransactionCurrency":"USD",
"RequestedQuantity":"10"
]
</groovy>
</setBody>
<to uri="pfx-odata2://create?entity=A_CreditMemoRequestItem&connection=cognitus"/>
<log message="Created ${body}"/>
</route>
IntegrationManager version 5.8.0