How to write auto approval rules for an expense report created using REST APIs ?
Summary: We are creating expense Reports using REST APIs and the seeded auto approval rule isn't working as expected. The rule works when employees submit the expense report themselves but doesn't work when the expense Report is created using REST APIs by a service account. The status shows pending manager approval and the issue details are as follows:
Issue description - The request operation failed with the business rules defined for ExpenseReportOwnerRuleSet.
Issue Resolution - Validate the BPM rule for ExpenseReportOwnerRuleSet and ensure it returns a valid approval hierarchy.
We want the expense reports created using REST APIs to be auto-approved.