Batch create custom actions
Batch create custom actions and return action IDs for use when creating views
Request
Body Params application/jsonRequired
{
"actions": [
{
"name": "Fill in",
"remark": "string",
"type": "updateCurrentRecord",
"updateFields": [
"biz_book_title",
"biz_book_title"
],
"runWorkflowAfterSubmit": false,
"enableWhen": {
"type": "group",
"logic": "AND",
"children": [
{
"type": "condition",
"field": "biz_book_status",
"operator": "eq",
"value": [
"In stock"
]
}
]
}
},
{
"name": "Create",
"remark": "string",
"type": "createRelatedRecord",
"relationField": "69e07d51fb48d49615a25e77",
"runWorkflowAfterSubmit": true
},
{
"name": "Trigger",
"remark": "string",
"type": "triggerWorkflow"
}
]
}
Request Code Samples
curl --location 'https://www.nocoly.com/v3/app/worksheets//custom-actions/batch' \
--header 'HAP-Appkey: {{appkey}}' \
--header 'HAP-Sign: {{sign}}' \
--header 'Content-Type: application/json' \
--data '{
"actions": [
{
"name": "Fill in",
"remark": "string",
"type": "updateCurrentRecord",
"updateFields": [
"biz_book_title",
"biz_book_title"
],
"runWorkflowAfterSubmit": false,
"enableWhen": {
"type": "group",
"logic": "AND",
"children": [
{
"type": "condition",
"field": "biz_book_status",
"operator": "eq",
"value": [
"In stock"
]
}
]
}
},
{
"name": "Create",
"remark": "string",
"type": "createRelatedRecord",
"relationField": "69e07d51fb48d49615a25e77",
"runWorkflowAfterSubmit": true
},
{
"name": "Trigger",
"remark": "string",
"type": "triggerWorkflow"
}
]
}'
Responses
App item group created successfully
{
"success": true,
"error_code": 1,
"data": {
"sectionIds": [
"676910ae3e6f2583f5d3edd5"
]
}
}
Modified at 2026-06-25 10:21:06