Pergunta

I create a webpart with SPFX and it is deployed in a team site. I need get the team site groupId property.

Foi útil?

Solução

I finally got the groupId with the following code:

sp.web.select("AllProperties").expand("AllProperties").get().then(w => {
    console.log(w.AllProperties.RelatedGroupId);
});
Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange
scroll top