Skip to content

Instantly share code, notes, and snippets.

@jhoek
Created June 7, 2021 13:46
Show Gist options
  • Save jhoek/750c3daa65c2f1fa896081222cae3952 to your computer and use it in GitHub Desktop.
Save jhoek/750c3daa65c2f1fa896081222cae3952 to your computer and use it in GitHub Desktop.
Business Central Page Actions
{
"item":{
"navigation": {
"Entries": {
"caption": "Entries",
"ellipsis": true
},
"Availability": {
"caption": "Availability",
"children": {
"AvailabilityByLocation": {"caption": "By Location"},
"AvailabilityByVariant": {"caption": "By Variant"}
}
}
}
}
}
{
"definitions": {
"area": {
"type": "object",
"properties": {
"removeExistingActions": { "type": "boolean"}
},
"additionalProperties": {
"oneOf": [
{
"$ref": "#/definitions/group"
},
{
"$ref": "#/definitions/action"
}
]
}
},
"group": {
"type": "object",
"properties": {
"caption": {
"type": "string"
},
"enabled": {
"type": "string"
},
"image": {
"type": "string"
},
"visible": {
"type": "string"
},
"tooltip": {
"type": "string"
},
"children": {
"type": "object",
"additionalProperties": {
"anyOf": [
{
"$ref": "#/definitions/group"
},
{
"$ref": "#/definitions/action"
}
]
}
},
"removeExistingActions": { "type": "boolean"},
"excludeFromPages": {
"type": "array"
}
},
"additionalProperties": false,
"required": [
"caption"
]
},
"action": {
"type": "object",
"properties": {
"caption": {
"type": "string"
},
"ellipsis": {
"type": "boolean"
},
"excludeFromPages": {
"type": "array"
}
},
"additionalProperties": false,
"required": [
"caption"
]
}
},
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"creation": {
"$ref": "#/definitions/area"
},
"navigation": {
"$ref": "#/definitions/area"
},
"processing": {
"$ref": "#/definitions/area"
},
"reporting": {
"$ref": "#/definitions/area"
},
"skipPages": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment