All Release Notes
Approval Flows can now be extended with Custom Fields
11 January 2024
Composable Commerce
HTTP API
Enhancement
B2BOrdersGraphQL
You can now extend the ApprovalFlow resource with Custom Fields. With this, you can add meta-information to your Approval Flow in case it is required for your business logic.
Changes:
- [API] Added optional
customfield to the ApprovalFlow type. - [API] Added Set Custom Type and Set CustomField update actions to Approval Flows.
- [API] Added
approval-flowto CustomFieldReferenceValue enum. - [API] Added
approval-flowto ResourceTypeId enum. - [GraphQL API] Added the following types to the GraphQL schema:
SetApprovalFlowCustomField,SetApprovalFlowCustomType. - [GraphQL API] Changed the
ApprovalFlowUpdateActiontype:- Input field
setCustomFieldwas added toApprovalFlowUpdateActiontype - Input field
setCustomTypewas added toApprovalFlowUpdateActiontype
- Input field
- [GraphQL API] Changed the
ApprovalFlowtype:- Added the
customfield to theApprovalFlowtype.
- Added the
The following changes were introduced in terms of GraphQL SDL:
extend type ApprovalFlow {custom: CustomFieldsType}extend input ApprovalFlowUpdateAction {setCustomField: SetApprovalFlowCustomFieldsetCustomType: SetApprovalFlowCustomType}input SetApprovalFlowCustomField {name: String!value: String}input SetApprovalFlowCustomType {fields: [CustomFieldInput!]type: ResourceIdentifierInputtypeKey: StringtypeId: String}