pfx-odata2:update
Updates a single entity in the external system. Requires an ID defined in an exchange header or as the URI option.
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
Update TotalNetAmount of entity 'A_CreditMemoRequest' with ID 60000001:
<route id="sap4hana-update" autoStartup="false">
<from uri="timer:in?repeatCount=1&delay=5000"/>
<setHeader headerName="PfxOpenData2.id"><constant>60000001</constant></setHeader>
<setBody>
<groovy>
[
"CreditMemoRequest":"60000002",
"TotalNetAmount":new BigDecimal("1500.00")
]
</groovy>
</setBody>
<to uri="pfx-odata2://update?entity=A_CreditMemoRequest&connection=cognitus"/>
<log message="Created ${body}"/>
</route>
IntegrationManager version 5.8.0