Getting API to email export link

dabbott
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?
Thanks!
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
-
Matt Moore Expensify Customer, Expensify Success Coach - Admin, Expensify Team Posts: 132 Expensify TeamHi @dabbott, and welcome to the Community!
We don't use [email protected], rather we use [email protected].
Please could you give that a try?}, "outputSettings":{ "fileExtension":"xlsx", "fileBasename":"myExport" }, "onFinish":[ {"actionName":"markAsExported","label":"Expensify Export"}, {"actionName":"email","recipients":"[email protected],[email protected]", "message":"Report is ready."} ] }' \ --data-urlencode 'template@expensify_template.ftl'
Here's more information:
https://integrations.expensify.com/Integration-Server/doc/#report-exporter
Thanks!
Answers
-
Thank you!