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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Add ledger journal attachment using OData

(0) ShareShare
ReportReport
Posted on by 103

Hi, I am trying to add attachment to invoice journal using OData. As I understand, the table for this corresponds to LedgerJournalAttachmentsEntity. The problem is that I see it doesn't have PublicEntityName and PublicCollectionName, and DataServiceEnabled is set to false:

{
    "Name": "LedgerJournalAttachmentsEntity",
    "PublicEntityName": "",
    "PublicCollectionName": "",
    "LabelId": "@GeneralLedger:LedgerJournalAttachmentsEntityLabel",
    "DataServiceEnabled": false,
    "DataManagementEnabled": true,
    "EntityCategory": "Document",
    "IsReadOnly": false
}

How do I enable for this for OData so that I can use it to attach documents?
I have the same question (0)
  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi, IsPublic, Public Collection Name, Public Entity Name properties of data entity can not be changed in data entity extension. The only way is to duplicate the entity, rename entity and staging table, create view and maintain security privileges for new data entity and change those properties.

  • Suggested answer
    Anton Venter Profile Picture
    20,635 Super User 2026 Season 1 on at

    Have a look at the CustomerAttachmentsV2Entity entity, it is uses the DocuRefEntity to attach files/documents. It's sole purpose is to attach files/documents. I would create a new data entity using the same technique as the CustomerAttachmentsV2Entity entity for the journal. Then there is no copying of standard code and tables etc.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 512 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 386

#3
Adis Profile Picture

Adis 259 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans