Retrieve SharePoint List Items Using Microsoft Graph API for SPFx

Reading Time: 7 minutes Download the code here Overview When building SharePoint Framework solutions, you can easily connect to the Microsoft Graph by using the MSGraphClient. MSGraphClient is a new HTTP client introduced in SharePoint Framework v1.6.0 that simplifies connecting to the Microsoft Graph inside SharePoint Framework solutions. The MSGraphClient is available only in …

Get Current User and update in InfoPath Form Column

Reading Time: < 1 minute Get Current User data using jQuery/JavaScript Add a Content editor webpart in InfoPath form New page, add the below code <script type=”text/javascript” language=”javascript”> var user; var email; var firstname; var surname; function getUserInfo() var clientContext = new SP.ClientContext(); user = clientContext.get_web().get_currentUser(); clientContext.load(user); clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed)); } function onQuerySucceeded() { …