Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Attachments/Peninput to Sharepoint list

(0) ShareShare
ReportReport
Posted on by 395

I have an offline/online app that writes to a collection, saves to the device, then when online uploads to sharepoint. Works fine however now need to add attachments and signature. example of the save to device looks like,
Collect(MyCollection, {Title: Employee_ED.Selected.Value,PO: PO_ED.Text});SaveData(MyCollection,"MyCollectKeep") then i use,
ForAll(MyCollection, Patch(SharepointListDB, Defaults(SharepointListDB),{Site: Site,PO: PO}))
Is there a way to include images into this list? I have tried using flows but it wont save to the list, will only save to Document library. I need to be able to have the image and the other fields (title, PO) in the same entry. Any advice or direction would be much appreciated.

 

Kind regards,

Matt

Categories:
  • Matt383 Profile Picture
    Matt383 395 on at
    Re: Attachments/Peninput to Sharepoint list

    Thanks Qi, i was able to get the images and peninput saved to the sharepont list using your method. i currently have it saving to a collection, save to device, then when online, a button to upload to sharepoint. Images displayed as url.

    What would you recommend the best method to get these images to be displayed into a pdf along with other content such as Name, company, etc

     

    Many thanks,

    Matt

  • Verified answer
    Re: Attachments/Peninput to Sharepoint list

    Hi@Matt383,

    Based on the issue that you mentioned, do you want to save the image and pen input to your SP list?

    Could you please share a bit more about the scenario, do you want to display the picture or the URL in the corresponding column?

    If you want to display a picture in the SharePoint list column, I am afraid that there is no way to achieve this currently in PowerApps. If you want to display the URL or the image within the SP list, you could try to convert the image into a binary format.

    I have a test on my side, please take a try as below.

    Add an add picture control(AddMediaWithImage1)

    Add a Button and set the OnSelect property as below:

     

    Patch(
     SharepointListDB,
     Defaults(SharepointListDB), 
     {Title:Text(Now()),
     Ima: Substitute(JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData),"""","")
     }
    )

     

    Note: Title is a Text column. Ima is a Multiple-line-of-text column to store the image.

    After this, you could insert a Gallery to display the image. Within the Ima column, you just could display the image as an URL in a Multiple-line-of-text column.

    For the signature, you could add a PenInput control and save it into a collection as the following thread:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Save-Signature-to-SharePoint-List/td-p/76661

    Also, you can check the following article to save the signature:

    https://iiu.dk/2019/10/12/powerapps-pen-input/

    Best Regards,

    Qi

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard