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 / Expense Report- save a...
Power Apps
Answered

Expense Report- save attachment to SharePoint

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

I have a issue with my expense report, I am trying to use the camera to save picture of receipt to SharePoint list as attachment but it does not work for me, please help.

I have added the camera and a button.

Button Onselect is 

Set(varName,GUID());Collect(colImages,{DisplayName: varName & ".jpg",Id: varName & ".jpg",Value:Camera1.Photo});

Then the attachment datacard, Default and Update  is set to colImages. 

But when i click save and submit the attachment is not updating into sharepoint list.

Save: SubmitForm(NewLineItemForm);SubmitForm(NewLineItemExpenseStatusForm);Set(SelectedReport,LookUp(Expenses,ID=SelectedReport.ID));Navigate(ViewReport,None)

Submit: SubmitForm(ViewReportEditForm); ApproveExpense.Run(SelectedReport.ID);Navigate('My Expenses',ScreenTransition.None)

 

Should i do anything here so that the attachment is saved to SharePoint list. 

Categories:
I have the same question (0)
  • Verified answer
    v-chenzhi Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    I have a test on my side, please write the expression on the Onselect property of the camera.

    It works fine.

    vchenzhi_0-1639128920486.png

    vchenzhi_1-1639129229589.png

     

     

    Best Regards,

    Zhi Chen

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-chenzhi,

     

    Thank you for the solution, it is working fine

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard