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 :
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,345 Super User 2025 Season 2 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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 512 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 291 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans