Hi @IliaLazarevskii ,
I am trying to fetch group information from the groupID by using the below code.
pnp.sp.web.siteGroups.getById("41ec53cf-65fc-40a2-915e-6de17c943279").then(function(group){
console.log("group",group);
});
But it gives the below error.
Thanks in advance
Hello @navpreet.kaur,
You are missing brackets after getById:
pnp.sp.web.siteGroups.getById("41ec53cf-65fc-40a2-915e-6de17c943279")().then(function(group){
console.log("group",group);
});
Please see PnPjs documentation for more information and examples:
https://pnp.github.io/pnpjs/sp/site-groups/#getting-and-updating-the-groups-of-a-sharepoint-web