Bartec Collective - Non Collection Events
- What is it? This formula will return a list of non collection events at a property from Bartec Collective.
Note that this formula will not return non collection street events such as access to the street is blocked.
Setup
The formula requires the following settings to be configured under Settings > Integrations > Bartec Collective > Settings.
Garden Feature Name Match
The value entered into the setting must partially match the description of the organic features as configured in Bartec Collective.
For example if in Bartec Collective your features are named as:
- GARDEN 160L
- GARDEN 240L
- GARDEN 550L
You would enter GARDEN into the setting as the value as that will match all organic features
Residual Waste Name Match
The value entered into the setting must partially match the description of the residual features as configured in Bartec Collective.
For example if in Bartec Collective your features are named as:
- RESIDUAL 160L
- RESIDUAL 240L
- RESIDUAL 550L
You would enter RESIDUAL into the setting as the value as that will match all organic features
Recycling Name Match
The value entered into the setting must partially match the description of the recylcing features as configured in Bartec Collective.
For example if in Bartec Collective your features are named as:
- RECYCLING 160L
- RECYCLING 240L
- RECYCLING 550L
You would enter RECYCLING into the setting as the value as that will match all organic features
Inputs
This formula has 2 inputs that can be passed through to it, the UPRN of the property to check for non collection events against and optionally a styling class.
The UPRN mapped value must come from an address lookup question, using the propery_identifier variable option.
The styling class is optional and can be left blank, if any styling is required on the output Spacecraft can advise on what value you should enter into this mapping input. The value will correspond to a CSS class.
Return values
| Value | Description |
|---|---|
| [HTML] | HTML unordered list markup of non collection event descriptions that can then be inserted into page instructions |
| street-not-complete | If the street has not yet been marked as complete by the crew the formula will return this value |
| false | If the street collections have been marked as complete in Bartec Collective and the property has no premises events recorded against it in Bartec Collective, or if there is an error connecting with the Bartec Collective API |
Note: return values are case sensitive
Caching
When using this formula the calls to the Bartec Collective API are cached for the time specified in Settings > Integrations > Bartec Collective > Settings under the Cache Timeout setting.
Setting the Cache Timeout to 0 Minutes/Hours will disable caching on this formula.