Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Offline App Image Save

(0) ShareShare
ReportReport
Posted on by 4,866 Super User 2025 Season 1
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
    4,866 Super User 2025 Season 1 on at
    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,810 on at
    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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 479 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 197

#3
stampcoin Profile Picture

stampcoin 166

Overall leaderboard