2

You can use PnP JS to update the Web Properties. You need to set the Description property of web. Sample Example: import { Web } from "@pnp/sp"; let web = new Web("https://my-tenant.sharepoint.com/sites/mysite"); web.update({ Title: "New Title", Description: "My new description", }).then(w => { console....


1

Use like this: .filter(`identities/any(c:c/id eq ${userid}`) Make sure first part is correct. Reference: Consume the Microsoft Graph in the SharePoint Framework - Using MSGraphClient You can also use it like: let filterString = "identities/any(c:c/id eq " + userid; this.props.context.msGraphClientFactory.getClient().then((client: MSGraphClient): ...


1

You cannot directly access the selected value from combo box control in other function. First, you need to store the selected value in state variable using onChange of combo box selection. Example: <VirtualizedComboBox styles={comboBoxStyles} allowFreeform autoComplete="on" options={this.state.ddlbookcountry} onChange={(e, ...


1

@Hisusu32, You are leaving one critical step out of your deployment process; you are also missing additional debug steps you really need to perform in addition to what you describe. There are two tasks you need to perform prior to gulp build and deployment into the app catalog site/library. Ensure that you increment the version in your project’s package....


1

This Answer is primarily directed to users who come upon this post sometime in the future since @Brad Fortner appears to have already solved his problem. When attempting to retrieve user info from SP using free form JS in this webpart use the ‘Enable classic _spPageContextInfo’ option in the web part’s configuration in the page’s edit mode. Instructions: ...


1

I found an answer to my question that works for what I am trying to accomplish. I dont know if this is the "best" way to handle it but it was the simplest. declare global{ interface Window{ _$GraphUserInfo : any;} } Then in my constructor export default class GraphUserInfo extends React.Component<IGraphUserInfoProps, IGraphUserInfoState> { ...


1

Replace let with var to have compliant JavaScript and it should work just fine.


Only top voted, non community-wiki answers of a minimum length are eligible