Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Add ledger journal attachment using OData

(0) ShareShare
ReportReport
Posted on by 101

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?
  • Suggested answer
    Anton Venter Profile Picture
    Anton Venter 19,493 Super User 2025 Season 1 on at
    RE: Add ledger journal attachment using OData

    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.

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,552 Super User 2024 Season 1 on at
    RE: Add ledger journal attachment using OData

    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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,836 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans