Hi everyone, I have a couple of questions regardin...
# integrations
r
Hi everyone, I have a couple of questions regarding expense report statuses and fields: 1. Status Change through Script: ◦ Is it possible to change the expense report status from PENDING ACCOUNTING APPROVAL or PENDING SUPERVISOR APPROVAL to REJECTED BY ACCOUNTING or REJECTED (OVERRIDDEN) BY ACCOUNTING through a script? If so, could you please share any examples or documentation on how to achieve this? 2. Setting Rejected Field to False: ◦ Can we set the 'rejected' field in an expense report to false using the following script snippet? expenseReport.setValue({ fieldId: 'rejected', value: true }); ◦ If not, what is the correct way to update the 'rejected' field? Thank you in advance for your assistance!