Skip to main content

Notifications

Community site session details

Community site session details

Session Id : F5mfF1mg75DcmZsSLcZgU2
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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

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

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 250 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 128

#3
stampcoin Profile Picture

stampcoin 115

Overall leaderboard
Loading started