Forum Discussion
Ari Gunawan
May 31, 2018Brass Contributor
SPFx on a Team Site Homepage Cannot Get Taxonomy Data
Hi,
I have an SPFx webpart and an SPFx extensions that getting data from Taxonomy Term Store.
Both of them are working well on all pages (Site Content page, Library page, Site page, etc.) except on a Team Site Homepage.
I've tried several approaches to get the Taxonomy data in the SPFx code:
- Add the references to the SharePoint JSOM in the config.json (https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/basics/add-an-external-library)
- Load SharePoint JSOM in the code (following example from Microsoft's repo: https://github.com/SharePoint/sp-dev-fx-webparts/blob/dev/samples/knockout-taxonomy/src/webparts/termSetRequester/data-helpers/DataHelperSP.ts, even the webpart example doesn't work on a Team Site Homepage)
Both of them couldn't get taxonomy data on a Team Site homepage.
It's failed on context.executeQueryAsync(...).
Is there anyone that has done this before? Or has any workaround idea for this situation?
Thanks
No RepliesBe the first to reply