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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / App offile collection ...
Power Apps
Unanswered

App offile collection pothos and save in sharepoint list

(0) ShareShare
ReportReport
Posted on by 2
hello everyone;
I have an app that works fine offline. Using a form, it saves the information with savedata and then gives the user the option to upload it to a sharepoint list when is online, it works fine, but I want to integrate photos, I can save locally with savedata but I can't upload them as attachments to the sharepoint list, I have the pothos save in a collection .
Thank you for your help.

 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi  @MichaLoru , 

    Do you want to upload photos from a collection to a SharePoint list? I've made a test for your reference:

     

    1\Add a Add picture control(For testing purposes, I use picture control instead of Camera control)

    2\Add a button.

    OnSelect:

    Collect(
     MyPics, /*create a collection to save the pic*/
     {
     DisplayName: Concatenate(
     "image",
     Text(
     Now(),
     "[$-en-US]yyyy-mm-dd-hh-mm-ss"
     ),
     ".jpg"
     ),
     Value: UploadedImage1.Image,
     AbsoluteUri: "",
     Id: "00000000-0000-0000-0000-000000000000"
     }
    )

    4\Add a Form(Form1)

    DefaultMode: FormMode.Edit

    DataSource :'List A'

    Item: LookUp('List A',ID=1) /* Specify records to update */

    set the attachments control’s Items property to: MyPics(Important!Refer to the picture attachment for detailed settings)

     vbofengmsft_0-1682389633117.png

    Visible: false /* Make the entire form invisible (beautiful consideration)*/

    4\Add a button

    OnSelect:

    SubmitForm(Form1);

     

    Best Regards,

    Bof

     

  • MichaLoru Profile Picture
    2 on at

    Thanks for you answer @v-bofeng-msft;

    I tryied but I can't. I have a Form in a Screen and the information is save local with:

    1.PNG

    The sreen BMenu you can see the records that you have to save when you be online and also can open again the form to edit and the information load well include the photos:

    2.PNG

    The save icon only show it when the app is online and have the next code to save in a sharepoint list:

    3.PNG

    But I can't add the photos in sharepoint, I have this error:

    4.png

    I tried adiing the datacardvalue attachments of your advise but load only the last record saved in the collection.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard