# SalesForecastItemsEx: Exact Online Sales Forecast Items ## Documentation: Additional where-clause columns supported:chr(13) || chr(10) || chr(13) || chr(10)- division - Catalog: `ExactOnlineXML` - Schema: `XML` - Label: Sales Forecast Items The data in this table is partitioned per value of the `Division` column. - Retrieve: True - Insert: True - Update: True - Delete: False - Filters on API Server: division ## Parameters of Table Function The following parameters can be used to control the behaviour of the table function `SalesForecastItemsEx`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values. Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three. Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third. | Name | Data Type | Required | Default Value | Documentation | |---|:---:|:---:|:---:|---| | `division` | `int32` | ☐ | | Company code. | | `Params_ForecastPeriod_From` | `int32` | ☐ | | Forecast period (from) | | `Params_ForecastPeriod_To` | `int32` | ☐ | | Forecast period (through) | | `Params_Item` | `varchar2` | ☐ | | Item code. | | `Params_ItemGroup` | `varchar2` | ☐ | | Item group code. | | `Params_SalesForecast` | `varchar2` | ☑ | | Sales forecast GUID (enclose in '{' and '}'). Determine possible values by inspecting the URL generated during export through Exact Online web frontend. | ## Columns of Table Function The columns of the table function `SalesForecastItemsEx` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `DIVISION_CODE` | `varchar2` | Administration ID | ☑ | Internal unique number of the Exact Online administration. | | `DIVISION_HID` | `int64` | Administration | ☑ | Number of the Exact Online administration. Not guaranteed to be unique. | | `DIVISION_NAME` | `varchar2`(240) | Administration Name | ☑ | Name of the Exact Online administration. Not guaranteed to be unique. | | `INTERFACE_URL` | `varchar2`(4000) | Interface URL | ☑ | URL used to interface this row with Exact Online. | | `ITEM_BARCODE` | `number` | Item Barcode | | | | `ITEM_CODE_ATTR` | `varchar2` | Item Code | | | | `ITEM_COPYREMARKS` | `boolean` | Item Copy Remarks | | Copy sales remarks to sales lines | | `ITEM_DATEEND` | `date` | Item Date End | | End date: YYYY-MM-DD | | `ITEM_DATESTART` | `date` | Item Date Start | | Start date: YYYY-MM-DD | | `ITEM_DESCRIPTION_TERMID_ATTR` | `number` | Item Description Term ID | | | | `ITEM_DESCRIPTION` | `varchar2`(255) | Item Description | | | | `ITEM_EXTRADESCRIPTION_TERMID_ATTR` | `varchar2` | | | | | `ITEM_EXTRADESCRIPTION` | `varchar2` | Item Extra Description | | | | `ITEM_ID_ATTR` | `varchar2` | Item ID | | | | `ITEM_IMAGE_BINARYDATA` | `blob` | Item Image Binary Data | | | | `ITEM_IMAGE_ID_ATTR` | `varchar2` | Item Image ID | | | | `ITEM_IMAGE_NAME` | `varchar2` | Item Image Name | | | | `ITEM_ISBATCHITEM` | `boolean` | Item Batch Item | | | | `ITEM_ISFRACTIONALLOWEDITEM` | `boolean` | Item Fraction Allowed Item | | | | `ITEM_ISMAKEITEM` | `boolean` | Item Make Item | | | | `ITEM_ISONDEMANDITEM` | `boolean` | Item On Demand | | | | `ITEM_ISPURCHASEITEM` | `boolean` | Item Purchase Item | | | | `ITEM_ISSALESITEM` | `boolean` | Item Sales Item | | | | `ITEM_ISSERIALITEM` | `boolean` | Item Serial Item | | | | `ITEM_ISSTOCKITEM` | `boolean` | Item Stockable | | | | `ITEM_ISSUBCONTRACTEDITEM` | `boolean` | Item Subcontracted Item | | | | `ITEM_ISTAXABLE` | `boolean` | Item Is Taxable | | | | `ITEM_ISTIME` | `boolean` | Item Time | | | | `ITEM_ISWEBSHOPITEM` | `boolean` | Item Webshop Item | | | | `ITEM_ITEMEXTRAFIELDS_EXTRAFIELD1` | `varchar2` | | | | | `ITEM_ITEMEXTRAFIELDS_EXTRAFIELD10` | `varchar2` | | | | | `ITEM_ITEMEXTRAFIELDS_EXTRAFIELD2` | `varchar2` | | | | | `ITEM_ITEMEXTRAFIELDS_EXTRAFIELD3` | `varchar2` | | | | | `ITEM_ITEMEXTRAFIELDS_EXTRAFIELD4` | `varchar2` | | | | | `ITEM_ITEMEXTRAFIELDS_EXTRAFIELD5` | `varchar2` | | | | | `ITEM_ITEMEXTRAFIELDS_EXTRAFIELD6` | `varchar2` | | | | | `ITEM_ITEMEXTRAFIELDS_EXTRAFIELD7` | `varchar2` | | | | | `ITEM_ITEMEXTRAFIELDS_EXTRAFIELD8` | `varchar2` | | | | | `ITEM_ITEMEXTRAFIELDS_EXTRAFIELD9` | `varchar2` | | | | | `ITEM_NOTE` | `varchar2` | Item Note | | Notes can contain many different characters, make sure to use a CDATA section. | | `ITEM_NUMBER_ATTR` | `number` | Item Number | | | | `ITEM_SEARCHCODE_ATTR` | `varchar2` | Item Search Code | | | | `ITEM_TRANSLATIONS_TERMID_ATTR` | `varchar2` | Item Translations Term ID | | | | `ROWNUM` | `int64` | Row Number | ☑ | Number of the row within the results, starting at 1. | | `SALESFORECASTITEMS_SALESFORECAST_CODE_ATTR` | `varchar2` | Sales Forecast Code | | | | `SALESFORECASTITEMS_SALESFORECAST_DESCRIPTION_TERMID_ATTR` | `number` | Sales Forecast Description Term ID | | | | `SALESFORECASTITEMS_SALESFORECAST_DESCRIPTION` | `varchar2`(255) | Sales Forecast Description | | | | `SALESFORECASTITEMS_SALESFORECAST_ISACTIVE_ATTR` | `varchar2` | Sales Forecast Active | | 1=Active, 0=Inactive | | `SALESFORECASTITEMS_SALESFORECAST_NOTES` | `varchar2` | Sales Forecast Notes | | | | `SALESFORECASTITEMS_SALESFORECAST_PERIODTYPE_ATTR` | `varchar2` | Sales Forecast Period Type | | 2=Week, 3=Month | | `SALESFORECASTITEMS_SALESFORECAST_WAREHOUSE_CODE_ATTR` | `varchar2` | Sales Forecast Warehouse Code | | | | `SALESFORECASTITEMS_SALESFORECAST_YEARPERIODFROM_PERIOD_ATTR` | `number` | Sales Forecast From Period | | If periodType=2, min=1 max=52/53(if year has 53 weeks). If periodType=3, min=1 max=12 | | `SALESFORECASTITEMS_SALESFORECAST_YEARPERIODFROM_YEAR_ATTR` | `number` | Sales Forecast From Year | | The minimum year is the first financial year used for the financial periods. out of range=year lesser than the minimum year | | `SALESFORECASTITEMS_SALESFORECAST_YEARPERIODTO_PERIOD_ATTR` | `number` | Sales Forecast To Period | | If periodType=2, min=1 max=52/53(if year has 53 weeks). If periodType=3, min=1 max=12 | | `SALESFORECASTITEMS_SALESFORECAST_YEARPERIODTO_YEAR_ATTR` | `number` | Sales Forecast To Year | | The maximum year is 10 years from the current year. out of range=year greater than the maximum year |