Forum Discussion
BhoomeshJoshi
Nov 07, 2023Brass Contributor
Microsoft Teams tab using SharePoint Framework always interact with SharePoint Online root site
Hello Everyone, I need to create an SPFx web part that supports SharePoint Online as well as Teams So, I have created the SPFx web part to generate the app package, and added that app package t...
BhoomeshJoshi
Nov 07, 2023Brass Contributor
Meghana-MSFT - Thanks for the quick response. With the above approach, I need to hard-code the SharePoint Site URL. Is there any other way to achieve the same without adding any fixed URL? Because there are multiple users who are using my SPFx web part. If I hard code the URL then it will be for a specific site only. So, I need som dynamic way to set the URL based on the user site. Thanks
Meghana-MSFT
Nov 07, 2023Bronze Contributor
Unfortunately, this is not possible.