0

I have followed the steps from the link and able to run the code on Local environment however the same code once deployed to app catalog, doesn't work. Started to get the error while retrieving The term group ID

"Error: Error making HttpClient request in queryable [400] ::> {"error":{"code":"invalidRequest","message":"Failed to parse the termGroupId."}}"

I have updated the pnp to latest version 2.7.0

https://www.c-sharpcorner.com/article/global-navigation-in-modern-sharepoin-using-spfx-pnp-and-fluent-ui/

1 Answer 1

0

so for developed it probably worked as you defined in the serve.json the initial properties of your extension. Now when you want to deploy it you need to also pass values for those enter image description here

you may either use PnP PowerShell Add-PnPCustomAction providing the properties using the option -ClientSideComponentProperties

or you may use CLI for Microsoft 365 spo applicationcustomizer add (which I recommend) and you may pass those properties using option clientSideComponentProperties

10
  • I passed the values of the serve.json in the clientsideInstance.xml file Properties="{"termGroupId":"ID"}"> but still no progress, Anywhere i am doing wrong here.
    – striker92
    Feb 14 at 8:31
  • but you also provided values for those properties right? (I know that it's a stupid question but just wanted to be sure 😉) using either PnP PowerShell or CLI for M365 you may add the app customizer providing different values for each site
    – Adam
    Feb 14 at 9:58
  • 1
    "properties": { "termGroupId": "3e42633c-2eda-4722-xxxxxx-xxxx", "termSetId":"e6aff483-b8b6-4833-xxxx-xxxxxxxxxxx", "Bottom": "Bottom area of the page" Yes I have passed the values to the properties.
    – striker92
    Feb 14 at 10:01
  • ok so this is a tenat-wide extension? If not you also would need to set it elements.xml also check in the package-solution.json the assets> elementManifests if the ClientSideInstance.xml is added to that array
    – Adam
    Feb 14 at 12:30
  • No, it is not tenant wide extension and needed to only certain sites. It is added :) "assets": { "elementManifests": [ "elements.xml", "ClientSideInstance.xml" ]
    – striker92
    Feb 14 at 12:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.