Examples
Display all invoices
const token = "<token>"
const report = {
id: 1,
depth: 3,
start: "2017-01-01",
end: "2017-12-31",
filter: 100
}
Promise.resolve()
.then(() => {
console.log("Logging in")
Exivity.navigate.home()
Exivity.session.refreshToken(token)
})
.then(Exivity.wait.networkIdle)
.then(Exivity.wait.syncComplete)
.then(() => {
console.log("Selecting parameters for summary")
Exivity.report.byId(report.id)
Exivity.report.depth(report.depth)
Exivity.report.daterangeStart(report.start)
Exivity.report.daterangeEnd(report.end)
Exivity.report.filterAccount(report.filter)
Exivity.navigate.to("reports/summary")
})
.then(Exivity.wait.networkIdle)
.then(() => {
console.log("Show all summaries")
Exivity.report.showAllSummaries()
})
.then(() => Exivity.wait.ms(1000))
.then(() => "Ready")
Last updated