Skip to main content

Notifications

Community site session details

Community site session details

Session Id : BF4pqJ0Fa7LZSr/Iq71Wl9
Power Apps - Building Power Apps
Unanswered

How to add attachment to Business Central documents

Like (1) ShareShare
ReportReport
Posted on 8 Apr 2023 15:14:17 by 12

Hello Guys,

I would like to upload atatchements of a Sharepoint List items to Business Central document.

I created this flow which runs down but the attachment does not arrives at BC:

 

CsaszarZsomle_0-1680964027225.png

1st I loop through the attachments of the Sharepoint item

In each loop I get the content of the attachment

CsaszarZsomle_4-1680964314029.png

than I create an attachment item in Business central which Parent is Sales Order I created earlier

to the File Name I use use the name of the attachment file

for size I just add 1000 bytes

Parent type is works like this (thanks for the error msg which listed the options)

 

in the last step I update this attchment with the content of the Sharepoint attachment

Parent Id and Id are taken from the created attachment

Content is the Body of the Sharpoint Item Attachment Content

 

CsaszarZsomle_3-1680964242568.png

 

Can you help me to get it work?

 

Categories:
  • MT-14031612-0 Profile Picture
    2 on 14 Mar 2025 at 16:28:21
    How to add attachment to Business Central documents
    Hello there, have you already got a solution here? 

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,089 Most Valuable Professional

Leaderboard
Loading started