I created a vendor via odata using VendVendorV2Entity entity (where i left "BankAccountId empty at first)
then i created a vendor bank account via odata using VendVendorBankAccountEntity
Now i went back to the vendor to update it with this new bank account so i called odata again for VendVendorV2Entity but this time i filled the bankAccountId to update it, but i get this error: Write failed for table row of type 'VendVendorV2Entity'. Infolog: Warning: The supplier bank account with account ID XXXXX can not be used because it is on Draft state.; Warning: validateWrite failed on data source 'VendTable (VendTable)
And this is because i need to submit the bank account to workflow first, then i can update it to the vendor. How can i skip workflow using odata? because an external system would like to to call odata to create the vendor and it's bank account, then update the vendor with it's bank account
You can use Vendor parameters entity (vendVendorParametersEntity) , updating the filed named VendBankAccountWorkflowDataEntityBehavior = Allow changes without 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.