cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bilalsh01
Frequent Visitor

Uploading files to CDS Entity "File" Datatype (filetype)

Hi PowerAppers,

I need to attach 3 files (PDFs) to each record in a CDS entity. I have enabled attachments on the entity. I am also making use of the "File" datatype (filetype) in the CDS entity. I have 3 "File" fields in the entity.

 

Through a form and I am able to upload and attach files to the 3 fields manually with no problems. The trouble is I have thousands of records in the entity and I need an automated way to upload and attach all these files to their corresponding records.

 

I have been experimenting with Power Automation, with no luck. The "Update a Record" action does not expose the "File" datatype fields. I read somewhere that the file attachments are stored in the "Note" entity, but the "File" datatype attachments are not.

 

Can you please help me figure out a practical way to automate this process?

 

Many Thanks

Bilalsh01

13 REPLIES 13

About your problem, I had some similar. That the flow in the power automate run twice and then generate two records in the fileattachments entity. Check if have two file records for the same record. I discovered this when I contact MS support about the download problem too.

Hi Michael,

 

Got it.  I take it Microsoft hasn't come back with a working solution yet huh?

 

Thanks

They applied a fixed on the environment an the problem doesn't come back.

Hi Michael,

 

Have you created a Flow to store a file in a Dataverse File field?  I have been trying to get a Flow to do this and even used the JSON you mentioned, but I continue to get errors related to Flow not recognizing the MIME type.

 

Thanks

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (3,181)