PropertyFieldSitePicker Pnp control not returning any value in my one of the tenant but in another tenant, it's working fine.
Scenario: I have created one SPFx solution with PropertyFieldSitePicker control
After deploying SPFx solution in tenant A then PropertyFieldSitePicker control returning the sites and after deploying same SPFX Solution in another tenant then PropertyFieldSitePicker showing no results
PropertyFieldSitePicker Pnp control not returning any value in my one of the tenant but in another tenant, it's working fine.
Scenario: I have created one SPFx solution with PropertyFieldSitePicker control
After deploying SPFx solution in tenant A then PropertyFieldSitePicker control returning the sites and after deploying same SPFX Solution in another tenant then PropertyFieldSitePicker showing no results
In Both the tenant I have sites
Code : PropertyFieldSitePicker("selectsitefornewlist", { label: "", initialSites: this.properties.selectsitefornewlist, context: this.context, deferredValidationTime: 500, onPropertyChange: this.onNewSitepickerchange, properties: this.properties, key: "sitesFieldId", })
Search API coming in both the tenant network tab
In Tenant A below Search Api Coming :
https://tenantA.sharepoint.com/teams/test/_api/search/query?querytext=%27contentclass:STS_Site%20contentclass:STS_Web%20Title:*int*%20Path:https://tenantA.sharepoint.com*%27&selectproperties=%27SiteId,Title,Path%27&rowlimit=5
In Tenant B below search API coming
https://tenantB.sharepoint.com/teams/test/_api/search/query?querytext=%27contentclass:STS_Site%20contentclass:STS_Web%20Title:*int*%20Path:https://tenantB.sharepoint.com*%27&selectproperties=%27SiteId,Title,Path%27&rowlimit=5
Noting returning from tenant B
if I modified the Title:*int* to Title:int* in search API from browser it's returning the value
Please check out the documentation to see if your question is already addressed there. This will help us ensure our documentation is up to date.
Category
Version
Please specify what version of the library you are using: [
"@pnp/spfx-property-controls": "^2.2.0", SPFx : 1.11.0
Expected / Desired Behavior / Question
Sites need to comes in Site Picker on both the tenant
Thanks!