Expensify.org is accepting proposals for new campaigns. Submit yours here by April 30th to receive up to $100,000 in funding for campaigns dismantling injustice related to: Climate, Homes, Hunger, Reentry, or Youth.

Getting API to email export link

dabbottdabbott Expensify Customer Posts: 3
I am completely new to APIs, JSON etc etc.  I am fumbling my way through but it is how I learn so I guess progress is starting to be made.

I am able to get a cvs export file created but I cannot get the onFinish email portion to send me and email.  Can someone explain what I am doing wrong here?

{
"type":"file",
"credentials":{
"partnerUserID":"XXXXXX",
"partnerUserSecret":"XXXXXX"
},
"onReceive":{
"immediateResponse":["returnRandomFileName"]
},
"inputSettings":{
"type":"combinedReportData",
"filters":{
"reportIDList":"12345678"
}
},
"outputSettings":{
"fileExtension":"csv"
},
“onFinish”:[
{"actionName":"email",”recipients”:"[email protected]",”message”:"Export is ready"}
]
}

Thanks!

Best Answer

Sign In or Register to comment.