Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Create Xero API in Xero:
1. Create an account with Xero ( www.xero.com )

...

  1. Set schedule in Task to run, recommended end of day time : 0 55 23 * * ?

  2. Enable Task

  3. Do not manually run task in the middle of day, unless : parameter “Run Dissection Date” filled, because it will cause missing dissection data.
    i.e.
    -Today is 26 January 2023 and task schedule to run 23:59pm.
    -Manually run this task at 10am
    -(If task manually run without “Run Dissection Date” filled) task will get value : “LastRunDissectionDate” and normally this value is yesterday (last run dissection date) : 25 January 2023
    -manually run task will send dissection from LastRunDissectionDate plus 1 day, which is today : 26 January 2026 at 10am
    -once task completed, LastRunDissectionDate will be updated to 26 January 2023
    -A. Schedule task run at 11.59pm : task will get value : “LastRunDissectionDate” which is 26 January 2023, send dissection from LastRunDissectionDate plus 1 day, which is 27 January 2026 (none), means dissections data from 26 Jan 10.01am to 23.59pm are missing
    -B. If value : “LastRunDissectionDate” changed manually to 25 January 2023, Schedule task run at 11.59pm : task will get value : “LastRunDissectionDate” which is 25 January 2023, send dissection from LastRunDissectionDate plus 1 day, which is 26 January 2026 (none), means dissections data of 26 Jan would be duplicated in Xero (one up to 10am and other one has more complete data to 23.59pm)