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 :
Small and medium business | Business Central, N...
Suggested Answer

Document attachment not going to bc from custom exp app claim

(4) ShareShare
ReportReport
Posted on by 325
Hi Team,
 
We are using business central ERP and having expenese management module where wae track all the expenses, overhead invoice like credit cards, employee exp, lunch,outing exp.
 
So later on we faced challenged how to keep credit card details evertime in business central and unable to update manually.
to automate this process we have developed on exp app with below prerequisite.
 
the idea behind this development once business user enter credit card amount, dimensions in app and then app integrate into business central and populate all the information in expenses claim header and lines and its working fine. we are facing issues that once we upload attachment (Credit card statement) in app but it could not transfer into business central while creating expenses claim and could not figure it out that how to send the attachement in bsuiness central through exp claim apps.
we have used standard web services for this. 
 
i am looking for help on attachment should be send from exp claim app to business central.how to perform this ? which app or logic we can use it?
 
below pre requisuite we have used to develop exp claim app
 
  • Frontend: React 19, TypeScript, Vite 7, Zustand, TanStack Query, MSAL React
  • Backend: FastAPI (Python), SQLAlchemy 2 (async), Alembic, Uvicorn
  • Database: PostgreSQL 16
  • Azure Services: Azure AD, Azure Blob Storage, Azure Container Registry, Azure App Service
  • Third-Party APIs: Microsoft Dynamics 365 Business Central API, OpenAI API (GPT-4o)
  • CI/CD: GitHub Actions, Docker (multi-stage), Docker Compose
Regards,
Vinayak sagvekar
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    99,324 Super User 2026 Season 1 on at
    Hi, hope the following can give you some hints.
    Business Central 2022 wave 2 (BC21) new features: Power Apps and Power Automate support for media/image & document attachments
     
    Thanks.
    ZHU
  • Vinayak Vishnu Sagvekar Profile Picture
    325 on at
    Hi Yun,
     
    Thanks for the inputs and sharing the documentation. i will have a look and try these steps and let you know with feedback.
     
    Regards,
    Vinayak Sagvekar
  • Suggested answer
    OussamaSabbouh Profile Picture
    13,323 Super User 2026 Season 1 on at
    Hello Vinayak,
    Attachments won’t move to Business Central automatically through standard web services. In BC, files are handled through the Attachment / Document Attachment APIs, which store files linked to a specific record using a parentId and parentType. Since your expense claim module is custom, the typical solution is: create the expense claim via API, then call the attachment API (or a custom AL endpoint) to upload the file and link it to that claim record. In practice, your app should send the file (usually Base64/stream) with the record ID of the expense claim, and Business Central will create a document attachment record associated with that entity.
    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,823 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,011 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 628 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans