web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

lastModifiedDateTime modified upon requesting pdfDocument

(2) ShareShare
ReportReport
Posted on by 30
Hello,
 
We are observing the following API behavior when requesting the pdfDocument for the sales invoices in Business Central:
the lastModifiedDateTime datestamp is changing, evethough, the GET method is used.
 
If the ReadOnly Data-Access-Intent header is added, the "BadRequest_IncompatibleDataAccessIntent" error is returned for the salesInvoices endpoint reading: "Cannot modify a record. Current connection intent is Read-Only."
 
Is this an expected behavior? Could the modification of the lastModifiedDateTime be prevented?
Thanks a lot
I have the same question (0)
  • Suggested answer
    OussamaSabbouh Profile Picture
    5,379 on at
    Hello,
     
    Calling the pdfDocument GET endpoint still triggers internal logic that modifies the invoice record → so lastModifiedDateTime changes.
     
    When you force Data-Access-Intent: ReadOnly, BC blocks that internal write → you get BadRequest_IncompatibleDataAccessIntent.
    So the ReadOnly mode can’t be used here.
     
    And no — you cannot prevent the timestamp update on the standard API.
     
    Regards,
    Oussama Sabbouh

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,316

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,449 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,431 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans