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

Community site session details

Session Id : QPq259FGAuuHYH2d0n+ODB
Power Apps - Building Power Apps
Answered

Offline App Image Save

Like (0) ShareShare
ReportReport
Posted on 31 May 2025 03:29:15 by 5,081 Super User 2025 Season 2
Okay, I've been asked, over and over again, to provide as much detail as possible when I submit questions.

Here we go....

I have built an Online/Offline Power App.

The app allows the user to collect data and add images from their device, whether they have service or not.

The user is required to 'Add' images from their mobile device.
 
I am having an issue with the image descriptions.

When I use the Power Apps 'Player' to test, all of the appropriate image descriptions appear in the SP Library
with the images.

When I use my mobile phone to collect the data and upload the image form my phone only one image is added
to the library where multiple images with distinct names should be added - just like the 'Online' process.

In my app there is a 'Save to SharePoint' button (if there is internet service) and a 'Save Job to Collection' button
when there is no service.

I am referencing the same fields in both buttons.

I can't figure out why, when I'm 'Online', all descriptions specific to each image come through, but when I use a
mobile phone to collect data and add images in 'Offline' mode only one image is posted to the SP library.

App Main screen with save buttons -
Save Job to SharePoint formula -


Save Job to Collection formula -


I readily admit there is probably a better way to write this formula, so browbeating me is not necessary.
I'm here to learn.

It is unclear to me why only one picture is posting to the library when the user is 'Offline', where all images
and unique image descriptions are posting with 'Online' version.

What am I missing?

Excerpt - Add Image Button formula (for Drop job) -
If(
    AJP_Invoice_Type_Fld.Text = "Drop" And Not(AJP_Image_Title_Dropdown.Selected.Image_Name = "Other"),
    Collect(
        Drop_Job_Image_Collection,
        {
            DisplayName: AJP_Image_Title_Dropdown.Selected.Image_Name,
            Id: AJP_Image_Title_Dropdown.Selected.Image_Name & ".jpg",
            Value: AJP_UploadedImage.Image,
            Location: AJP_Location_Fld.Text,
            Image_Description: If(IsBlank(AJP_Image_Title_Description_Fld.Text), AJP_Image_Title_Dropdown.Selected.Image_Name, AJP_Image_Title_Dropdown.Selected.Image_Name  & " - " &                AJP_Image_Title_Description_Fld.Text),
            Company_Name: AJP_Customer_Name_Fld.Text,
            Invoice_Type: AJP_Invoice_Type_Fld.Text,
            Work_Date: JSF_Work_Date_DataCardValue.SelectedDate,
            Work_Order_Number: AJP_Work_Order_Number_Fld.Text
        }
    ),
 
    AJP_Invoice_Type_Fld.Text = "Drop" And (AJP_Image_Title_Dropdown.Selected.Image_Name = "Other"),
    Collect(
        Drop_Job_Image_Collection,
        {
            DisplayName: AJP_Image_Title_Dropdown.Selected.Image_Name,
            Id: If(IsBlank(AJP_Image_Title_Description_Fld.Text), AJP_Image_Title_Dropdown.Selected.Image_Name, AJP_Image_Title_Dropdown.Selected.Image_Name  & " - " &
            AJP_Image_Title_Description_Fld.Text) & ".jpg",
            Value: AJP_UploadedImage.Image,
            Location: AJP_Location_Fld.Text,
            Image_Description: If(IsBlank(AJP_Image_Title_Description_Fld.Text), AJP_Image_Title_Dropdown.Selected.Image_Name, AJP_Image_Title_Dropdown.Selected.Image_Name  & " - " &
           
AJP_Image_Title_Description_Fld.Text),
            Company_Name: AJP_Customer_Name_Fld.Text,
            Invoice_Type: AJP_Invoice_Type_Fld.Text,
            Work_Date: JSF_Work_Date_DataCardValue.SelectedDate,
            Work_Order_Number: AJP_Work_Order_Number_Fld.Text
        }
    ),
 
    AJP_Invoice_Type_Fld.Text = "Drop" And IsBlank(AJP_Image_Title_Dropdown.Selected.Image_Name),
    Collect(
        Drop_Job_Image_Collection,
      {  
            DisplayName: AJP_Image_Title_Dropdown.Selected.Image_Name,
            Id: AJP_Image_Title_Dropdown.Selected.Image_Name &" - "& AJP_Image_Title_Description_Fld.Text & ".jpg",
            Value: AJP_UploadedImage.Image,
            Location: AJP_Location_Fld.Text,
            Image_Description: If(IsBlank(AJP_Image_Title_Description_Fld.Text), AJP_Image_Title_Dropdown.Selected.Image_Name & ".jpg", AJP_Image_Title_Dropdown.Selected.Image_Name  & " - " & AJP_Image_Title_Description_Fld.Text),
            Company_Name: AJP_Customer_Name_Fld.Text,
            Invoice_Type: AJP_Invoice_Type_Fld.Text,
            Work_Date: JSF_Work_Date_DataCardValue.SelectedDate,
            Work_Order_Number: AJP_Work_Order_Number_Fld.Text
        }
    ),

Screenshot of Screen with Gallery.

SharePoint Drop Images Library (only one image was posted, should be at least ten, with unique names) -
  • Verified answer
    Phineas Profile Picture
    5,081 Super User 2025 Season 2 on 31 May 2025 at 16:42:36
    Offline App Image Save
    Edit of original reply -

    I found the issue.

    I was referencing the wrong AJP_Image_Gallery field for the 'Image Description'.

    In the below formula I replaced 'AJPIG_Image_Description_Fld.Text' with the proper
    field reference and all the distinct names populated the collection as required.

    Save to Collection button -


     
  • Verified answer
    ronaldwalcott Profile Picture
    3,820 Super User 2025 Season 2 on 31 May 2025 at 05:12:07
    Offline App Image Save
    Are you seeing the multiple images in the colPendingDropImages collection? Where is the code that saves the collection to the SharePoint list?

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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete