How to undo mark as exported onfinish action?

I am importing expenses from expensify to Salesforce. After I use report exporter API, the report is marked as exported as per the below code.
var expenseTransaction = `{
"type":"file",
"onReceive":{
"immediateResponse":["returnRandomFileName"]
},
"credentials":{
"partnerUserID":"${expensifySettings[(`${orgNamespacePrefix}Partner_ID__c`)]}",
"partnerUserSecret":"${expensifySettings[(`${orgNamespacePrefix}Partner_Secret__c`)]}"
},
"inputSettings":{
"type":"combinedReportData",
"reportState":"APPROVED",
"limit":"10",
"filters":{"startDate":"${expensifySettings[(`${orgNamespacePrefix}Last_Sync_Date__c`)]}","markedAsExported":"Expensify Export Test"}
},
"outputSettings":{
"fileExtension":"json"
},
"onFinish":[
{"actionName":"markAsExported","label":"Expensify Export Test"}
]
}`;
But if I encounter error on Salesforce then I do need to revert/rollback this process.
How can I do that?
Answers
-
April Bekkala Expensify Customer, Expensify Team, Expensify Student Ambassador Posts: 117 Expensify Team
Hi @sumit
Expensify's API is a self-serve tool, and a great place to discuss API usage is on this community forum - there you'll find other Expensify users who also use the API.
Please feel free to check it out and ask any questions there!