cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Solved: Sharepoint URL converted when accessing from PowerApps custom form

Hello,

 

I created a sharepoint list with Sharepoint URL inside of it.

The content of this Sharepoint list is then displayed in PowerApps custom form.

 

Once users are in PowerApps and they click on this Sharepoint URL,

the URL is modified from "https://my-domain.sharepoint.com/sites/..." (where my-domain represents the name of my company) to "https://content.powerapps.com/sites/..." automatically,

resulting to an Error 404.

 

I have this issue only with Sharepoint Site URL.

I put a URL of another site and it's working fine.(e.g. www.google.co.jp)

 

Why Sharepoint Site URL is converted?

How to avoid that?

 

Best Regards,

Kuranoo

5 REPLIES 5
v-jefferni
Community Support
Community Support

Hi @Anonymous ,

 

Yes if URL in SharePoint it would be convert to like "sites/...".

 

So you could use Switch function to manually complete the URLs from SharePoint:

Substitute(Parent.URL,"/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.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Anonymous
Not applicable

Hi @v-jefferni 

 

Thank you for your help.

 

I'm sorry, but I don't know how to use the Switch function.

How to use the function?(Where is the setting in Sharepoint or PowerApps?)

 

Best Regards,

Kuranoo

 

Hi @Anonymous ,

 

My bad and apologize for the typo, it is the Substitute function and I have the formula in the last post:

Substitute(Parent.URL,"/sites/","/https://domain.sharepoint.com/sites/")

 

You will need to apply this formula on where you display the URL e.g. on the OnSelect property of a Label with a Launch Function:

Launch(Substitute(Parent.URL,"/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.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Anonymous
Not applicable

Hi @v-jefferni 

 

Thank you for your help.

I apply the formula on the OnSelect propertybut it's not working.

 

However, I apply this formula on the HTMLText property, it now works.

Substitute(Parent.Default, "href=""/sites/", "href=""https://my-domain/sites/")

 

This issue is solved.

Thank you so much for taking the time to help.

 

Best Regards,

Kuranoo

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,786)