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.

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.

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,596)