Forum Discussion
Redirecting to SPFX from dynamics crm 365
- May 10, 2023
Vishnurameya Try this:
- Create a SPFx web part which can read query string parameters from URL (say myParam)
- Add web part on SharePoint site page (say with URL: https://contoso.sharepoint.com/sites/SPConnect/sitepages/mypage.aspx)
- Then use URL like below from dynamics to redirect to SP page:
- https://contoso.sharepoint.com/sites/SPConnect/sitepages/mypage.aspx?myParam=My Value
- Read myParam value using SPFx web part and use it as per your requirements
Refer these links for more information:
- Access the query string from SPFx web part using React
- How can I get query string values in JavaScript?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
Vishnurameya Try this:
- Create a SPFx web part which can read query string parameters from URL (say myParam)
- Add web part on SharePoint site page (say with URL: https://contoso.sharepoint.com/sites/SPConnect/sitepages/mypage.aspx)
- Then use URL like below from dynamics to redirect to SP page:
- https://contoso.sharepoint.com/sites/SPConnect/sitepages/mypage.aspx?myParam=My Value
- Read myParam value using SPFx web part and use it as per your requirements
Refer these links for more information:
- Access the query string from SPFx web part using React
- How can I get query string values in JavaScript?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
Have a question is there anyway to pass the values to the SPFx form other than Query string
- ganeshsanapMay 10, 2023MVP
Vishnurameya If you want to pass the values from other web sites or from dynamics 365, you will have to use query string parameters - this is a easy solution.
If you want to pass static values from same SharePoint page where SPFx web part is added, you can use SPFx property pane, check: Make your SharePoint client-side web part configurable
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
- VishnurameyaMay 10, 2023Copper Contributor
ganeshsanap Thank you for your quick reply. It will be a security to pass query string parameters right