If you want to restrict a record from being used in certain activities, for example, until the record has been approved, you can incorporate two workflow responses in a workflow that controls the usage of the record. One workflow response will restrict usage of the record as defined by the workflow event and conditions. Another workflow response will allow usage of the record as defined by the workflow event and conditions. Two responses exist in the generic version of Business Central for this purpose: Restrict usage of a record. and Allow usage of a record..
The generic version of Business Central offers support for restricting a record from being posted, from being exported as a payment, and from being printed as a check. To support other restrictions, a Microsoft partner must customize the application code.
The workflow functionality to restrict and allow records from being used is not related to the functionality to block item, customer, and vendor records from being posted.
The following procedure describes how to restrict purchase orders from being posted until they have been approved. The new workflow will be based on the existing Purchase Invoice Approval Workflow workflow template.
Choose the Source Workflow Code field, and then, on the Workflow Templates page, choose the Purchase Invoice Approval Workflow workflow template.
Notice that the first two workflow steps are about restricting and then allowing usage of purchase invoices. Proceed to change the event condition on the first step of the new workflow to specify that it applies to purchase orders.
© 2019 Microsoft. All rights reserved.