Result builder
Default behavior
from typing import Union
from forestadmin.datasource_toolkit.decorators.action.result_builder import ResultBuilder
from forestadmin.datasource_toolkit.decorators.action.context.single import ActionContextSingle
from forestadmin.datasource_toolkit.interfaces.actions import ActionResult
import requests
async def execute(
context: ActionContextSingle, result_builder: ResultBuilder
) -> Union[None, ActionResult]:
# Not using the resultBuilder here will display the generic success notification.
# (as long as no exception is thrown)
agent.customize_collection("Company").add_action("Mark as live", {
"scope": "Single",
"execute": execute,
})Custom notifications
HTML result

File generation
Redirections
Webhooks
Response headers
Last updated


