web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps Vibe Code A...
Power Apps
Suggested Answer

Power Apps Vibe Code App - SharePoint Attachments and Dataverse File Upload Support

(0) ShareShare
ReportReport
Posted on by 6
Hello Everyone,
 
We are using Power Apps Vibe (https://vibe.powerapps.com) and generating a Power Apps Code App using prompts.
 
Our backend is primarily SharePoint, and we need to support file attachments/uploads.
 
Findings so far:
 
• SharePoint list attachments are enabled.
• The generated SharePoint schema exposes:
{Attachments}
{HasAttachments}
• However, the generated TypeScript model does not expose an Attachments property.
• The generated SDK supports CRUD operations such as:
createRecordAsync()
updateRecordAsync()
retrieveRecordAsync()
• We could not find any supported mechanism to upload binary attachment content to SharePoint list attachments.
 
We also tested Dataverse:
 
• Created a Dataverse table with a File column.
• The File column is visible in metadata.
• However, the generated SDK does not expose Dataverse File Upload APIs.
• The generated CRUD layer appears to support only record operations, not file uploads.
 
Question:
 
Has anyone successfully implemented file upload/attachments in a Power Apps Vibe Code App?
 
If yes:
 
1. What architecture was used?
- SharePoint Attachments
- SharePoint Document Library
- Dataverse File Column
- Power Automate
- Custom Connector
- Other
 
2. Is there any supported attachment upload pattern in Vibe Code Apps?
 
3. Can you share a working example or reference implementation?
 
Any guidance would be greatly appreciated.
 
Thanks.
I have the same question (0)
  • Mohsin Ali Profile Picture
    225 on at
    Hello @TK-11081319-0 - Found this quick walkthrough on YouTube. Though I haven't tried that out on my end, but it is worth giving it a shot as that guy is discussing the issues that usually faced while adding file attachment feature in code apps.
     

    If my suggestions helped you or give you a clue to further investigate the issue and fix that, then please mark this as verified, as this way you're helping other community members to quickly navigate the resolution.
  • TK-11081319-0 Profile Picture
    6 on at
    Hi Mohsin,
     
    Thank you for sharing the video.
     
    I reviewed the video and also tested the same approach. The sample uses SharePoint attachment APIs such as CreateAttachment() and GetItemAttachments().
     
    In the current Vibe-generated app, these attachment APIs are not exposed and only generic CRUD operations are available. Because of this, I have not yet been able to implement attachment upload in the current environment.
     
    Thanks again for the suggestion.
  • metthew Profile Picture
    13 on at
    I’d be careful about treating SharePoint list attachments and Dataverse file columns as the same implementation pattern, because they expose the file data differently.
    For SharePoint list attachments, I’d first verify whether the Vibe Code-generated app is actually exposing the attachment operations you need through the generated connector/actions. If the generated app can read attachment metadata but cannot reliably upload the binary content, I wouldn’t keep trying to solve it purely through the generated UI code.
    For Dataverse, a File column is a different path again. The fact that the column is visible in the table doesn’t necessarily mean the generated SDK surface will expose every upload operation automatically. I’d check what operations the generated connector actually supports before designing the upload flow around it.
    A pattern I’d consider is separating the record creation/update from the file upload:
    1. Create or update the SharePoint/Dataverse record first.
    2. Capture the returned record/item ID.
    3. Send the file through the connector or supported upload action using that ID.
    4. Store the attachment/file metadata separately if the UI needs to display it.
    5. Handle the upload failure independently so a failed file upload doesn’t unnecessarily roll back the whole form submission.
    For SharePoint specifically, I’d also test the smallest possible case first: one record + one small file. Once that works, add multiple attachments, larger files, progress/error handling, and the rest of the form logic.
    I’d also avoid relying only on what the Vibe Code-generated code appears to expose. If the generated SDK doesn’t provide a supported binary upload operation, a Power Automate flow or custom connector may be a cleaner boundary than trying to manipulate the generated code directly.
    The most useful thing for me would be to identify exactly which part is failing: creating the record, exposing the attachment metadata, uploading the binary content, or retrieving the uploaded file. Once that is isolated, the architecture becomes much easier to choose.
     
  • Suggested answer
    Zahid Ali Profile Picture
    8 on at

    I’ve looked into this recently, and I think there are two separate things to consider here.

    For SharePoint list attachments, your findings are basically correct. The Power Apps Code Apps SharePoint integration currently generates CRUD operations for SharePoint list items, but the generated service does not expose APIs for uploading/downloading/deleting list attachments. There is also an open Microsoft PowerAppsCodeApps issue specifically requesting support for SharePoint list attachments.

    So I would not recommend trying to force SharePoint List Attachments through the generated SDK. If attachments are a core requirement, a SharePoint Document Library is a much better architecture. You can store the file in a library and maintain the relationship to your business record through a lookup/ID or metadata. The SharePoint connector itself has file operations, whereas the generated Code Apps SharePoint service is currently more limited.

    For Dataverse File columns, however, the situation has changed. Microsoft's current Code Apps documentation now lists image and file upload/download as a preview capability for Dataverse connections. The generated functions are available under src/generated/services when Dataverse is added through the npm-based CLI. Microsoft also provides a Dataverse demo app demonstrating CRUD plus file upload/download.

    Therefore, if the Dataverse File column is visible in metadata but the generated TypeScript service doesn't contain the file functions, I would first verify that you're using the latest Power Apps Code Apps / PAC CLI tooling and regenerate the data-source/service definitions. It may be a tooling/version difference rather than the platform not supporting the scenario.

    From an architecture perspective, I would rank the options like this:

    1. SharePoint Document Library — my preferred option if SharePoint is your backend

    Code App → SharePoint Library

    Store the file as an actual SharePoint document and keep the business record ID as metadata. This also gives you SharePoint's native document capabilities, versioning, permissions and search.

    2. Dataverse File Column — good option if the file logically belongs to the Dataverse record

    Code App → Dataverse File Column

    This is now supported as a preview scenario in Code Apps, although I'd verify the generated SDK/tooling version before implementing it in production.

    3. Power Automate — useful as an integration layer

    If the Code App can capture the file but the generated connector doesn't provide the required upload operation, a flow can act as the boundary:

    Code App → Power Automate → SharePoint Document Library

    This is particularly attractive if you need additional processing, metadata assignment, folder creation, notifications, etc.

    I would avoid SharePoint List Attachments for a new Code App unless Microsoft exposes attachment operations in the Code Apps SharePoint SDK. The fact that {Attachments} and {HasAttachments} appear in the schema doesn't necessarily mean the generated Code Apps service supports binary attachment operations.

    One useful distinction is that the standard Power Apps Attachment control does support upload/delete against SharePoint lists and Dataverse tables, but that's a different capability from the generated TypeScript APIs available to Code Apps.

    So, based on the current documentation, I wouldn't consider your SharePoint finding a configuration problem. It's primarily a limitation of the generated SharePoint Code Apps service today. For a new implementation, I'd choose a SharePoint Document Library + metadata relationship, or Dataverse File Column if you're comfortable with its current preview status.

    The official Code Apps documentation is also worth following because this area is evolving quickly.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard