Now, when creating a vendor bank account via odata (Vendor bank accounts), then for certain vendors, i want the workflow to be 'auto submitted and auto approved' OR to 'skip workflow' in the first place.
Is the only way, to create a new flag in VendBankAccount table, maybe call it "skip workflow", and then in the canSubmitToWorkflow method, i will return false in case this flag was set to true
and when calling odata, i will set this flag to false to skip approval? or is there a way to do it from the UI somehow?
With your current setting, there is no workflow required when creating or updating vendor bank accounts. What is the exact condition for what vendors the workflow should be enabled or skipped?
If you enable the workflow via data entities, then you can implement a condition in the workflow that can then have an automatic approval or manual assignment. The condition can be a new field as you mentioned, but maybe also something different if you can tell us what the logic is to require or skip an approval.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.