Skip to main content
Version: 1.27 (Current)

Remove Records

Audience: Citizen Developer

Skill Prerequisites: Understanding of Tokens, Search Boost Knowledge

The "Remove Records" action in Plant an App enables users to trigger immediate indexing of a behavior using the Search Boost module. This is particularly useful for scenarios that require real-time updates to indexed data.

Typical Use Cases

  • To remove certain indexed records based on specific filters or criteria.
  • To ensure the search index reflects the most current data by clearing outdated or unnecessary entries.
  • To maintain optimal search performance by managing indexed content efficiently.
Action NameDescription
Perform SearchExecutes a search based on specified criteria within a behavior.
Index BehaviorTriggers indexing for behaviors to update the search index.

Input Parameter Reference

ParameterDescriptionSupports TokensDefaultRequired
Behavior IDThis is the Search Boost behavior ID for which records need to be removed. You can find this in Search Boost admin.YesN/AYes
FiltersOptionally, filter records to be deleted based on properties of the Search index.YesN/ANo
Continue On ErrorIf true, subsequent actions will execute even if this action encounters an error.NoFalseNo
On ErrorActions that will execute if an error is caught.NoN/ANo

Output Parameters Reference

This action does not have direct output parameters but modifies the state of the index by removing specified records.

Security

Care must be taken to ensure that only authorized users can execute this action, as it impacts the search index directly. It's essential to implement appropriate checks and validation to avoid accidental or malicious data removal.

Examples

1. Basic Records Removal

This demonstrates the removal of records from a behavior without applying any filters.

{
"Title": "Remove Records",
"ActionType": "RemoveRecords",
"Parameters": {
"BehaviorId": "123456",
"ContinueOnError": false
}
}

2. Filtered Records Removal

This example removes records based on specified filters, targeting specific criteria within the index.

{
"Title": "Remove Records with Filters",
"ActionType": "RemoveRecords",
"Parameters": {
"BehaviorId": "789012",
"Filters": [
{
"Name": "Status",
"Value": "Inactive\nArchived"
}
],
"ContinueOnError": true
}
}

3. Handling Errors Gracefully

Illustrating the use of "On Error" to execute fallback actions if the removal process encounters an error.

{
"Title": "Remove Records with Error Handling",
"ActionType": "RemoveRecords",
"Parameters": {
"BehaviorId": "345678",
"ContinueOnError": false,
"OnError": {
"Actions": [
{
"Title": "Log Error",
"ActionType": "LogMessage",
"Parameters": {
"Message": "[ExceptionMessage]"
}
}
]
}
}
}

Conclusion

The "Remove Records" action is a powerful tool for managing and optimizing the Search Boost index in real-time scenarios. By understanding its parameters and security implications, users can effectively control the indexing process and maintain accurate search results.

Revised 09/29/2025