D365 Finance integration acceleration by smart caching

Dooap makes HTTP calls to D365 when processing invoices in Dooap. This article describes methods for best performance.

To minimize the amount of calls, and to ensure the responsiveness of Dooap, Dooap caches these calls for a set amount of time. When there are several identical calls from Dooap to D365 within this time period, the first call results are re-used in Dooap without calling D365 again. E.g. If a cash discount calculation has been validated with D365 in the past 5 minutes, we do not need to revalidate it from D365 until the cache renewing period has passed.

Microsoft has introduced user based usage limits to D365. Call caching can help Dooap UI to stay within these D365 limits. Read more.

Cache period for renewing:

  • Cash discount 5 min 
  • Company address 1 h 
  • Default project dimensions 15 min 
  • Dimensions validity and validations 1 h 
  • Open period check 5 min 
  • Main Account validity 1h 
  • Payment term - calculate due date 1h
  • Purchase Order confirmation 1min 
  • Remaining quantity 1min 
  • Purchase order prepayment 1 min 
  • Tax calculation 15 min 
  • Vendor Remittance address 1h 

Admin user can also clear the cached data of D365 in the Tenant General Settings. This is generally not needed. NOTE! Clearing can cause temporary system slowness for a few minutes.