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 / Using Launch to hit a ...
Power Apps
Answered

Using Launch to hit a SharePoint library URL getting 404 error when using in PowerApps studio

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I'm developing an app that uses a collection to ask the user a series of questions via a filtered gallery, using a collection as the data source. As the user is cycling through the questions I am able to collect their responses and comments just fine, and eventually send those off to a SharePoint list using the Collect function. I have also added a camera control component that allows the user to take a photo that is specific to each question that they answer, using Shane Young's process of integrating a Flow to send the pic to SharePoint, then receive back the URL to that pic within the SharePoint library. All of that works well, I can take a pic, collect the URL, send that off to my SharePoint list and everything. The URL takes me directly to the image and works as expected.

 

My problem arises on a following screen that displays the collection of answered questions to be reviewed before sending the final answers off to SharePoint. When Flow (PowerAutomate) sends back the URL to the pic that was taken, it sends back a perfectly functional URL that can be copied and pasted into the address bar and navigate directly to the image. However, if I use Launch(ThisItem.ImageURL) it gives back a 404 error. Looking at the URL that's hit when I invoke the launch function, it injects some PowerApps studio specific information into the domain that leads to the 404 error, as shown below:

 

Annotation 2020-11-16 085044.jpg

 

Anybody have any recommendations on how to fix this?

Categories:
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Please refer to a thread that I answered a few days ago and I think you are hitting the same problem:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Hyperlink-feature-in-Rich-Text-Editor-no-working-correctly/td-p/739904

     

    On your side, I suppose the formula could be modified to:

    Launch(Substitute(ThisItem.ImageURL,"/sites/","/https://domain.sharepoint.com/sites/"))

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard