Custom ERP import data template
You can use this business rule template to create a new business rule for each custom ERP connection to import its data.
This business rule template has the following input and output variables.
Input variables
|
Input Variable |
Data Type |
Description |
|---|---|---|
|
Data Type |
String |
The specific types of data to return. This can include one or more of the following values:
For example, GL Segments, CC Segments, WBS Segments. |
|
ERP Connection ID |
Short |
The custom ERP connection ID. (Default: 0) |
|
ERP Connection Name |
String |
The custom ERP connection name. |
|
Offset |
Short |
Skips the specified number of rows in the CSV file. (Default: 0) A default value of 0 means that no rows are skipped. |
|
Page Size |
Short |
Indicates how many rows to read starting from the offset. For CSV data, the page size is configured through the ERP Connector. For XML data, the page size is fixed at 1. (Default: 0) |
Output variables
|
Output Variable |
Data Type |
Description |
|---|---|---|
|
Is Successful |
Bool |
Indicates whether the data was returned successfully. (Default: false) |
|
Data |
String |
Depending on how the ERP connector is configured, CSV rows or XML file content are returned as a string. XML content must confirm to the relevant XML schema definition (XSD). |
|
Error Code |
String |
In case of a failure, configure a user-friendly, non-technical error code to explain the failure. |
|
Message |
String |
In case of a failure, configure a detailed error message to explain the failure. |
|
Additional Information |
String |
In case of a failure, include the error stack trace or other additional information that offers further details to explain the failure. |
|
Request Status |
String |
Return a status from one of the following:
|