I have written this PowerShell script which is related to user regional setting. This below-mentioned code block will help us to change user regional setting to “always follow web” regional setting. [code lang=”c”] Write-Host -ForegroundColor cyan ‘Please provide the site url’ $SiteURL = Read-Host “Site Url” try { Add-PSSnapin “Microsoft.SharePoint.PowerShell” $SPsiteURL = Get-SPSite $SiteURL $SPserviceContext = Get-SPServiceContext $SPsiteURL $SPweb = […]
Change User Regional Setting to “Always follow Web” using PowerShell
Crud Operations on a List
This code block is related to create, delete, update and add list items to a custom list. [code lang=”c”] using System; using Microsoft.SharePoint.Client; using System.Security; namespace List_Crud_Operations { class Program { static void Main(string[] args) { ClientContext ctx = new ClientContext(“http://portal/sites/site1”); Web web = ctx.Web; var password = “Password”; SecureString secureString = new SecureString(); foreach (char c in password.ToCharArray()) secureString.AppendChar(c); […]
How to Inject your Custom JavaScript in Modern Pages on Page Load
This SPFx functionality helps to inject your custom JavaScript file in your modern site pages on page load. [code lang=”c”] export default class MySPFXApplicationCustomizer extends BaseApplicationCustomizer<IMySPFXApplicationCustomizerProperties> { private _customJsUrl: string = “https://sharepointdomain.net/scripts/MyCustonScript.js”; @override public onInit(): Promise<void> { let scriptTag: HTMLScriptElement = document.createElement(“script”); scriptTag.src = this._customJsUrl; scriptTag.type = “text/javascript”; document.getElementsByTagName(“head”)[0].appendChild(scriptTag); return Promise.resolve<void>(); } } [/code] This solution is brought to you […]
Get members from Office 365 Azure Ad using Graph API
1.Create a WPF application 2. Add the below mentioned code in the App.xaml.cs page. [code lang=”c”] private static string ClientId = “0b8b0665-bc13-4fdc-bd72-e0227b9fc011″; private static PublicClientApplication _clientApp ; public static PublicClientApplication PublicClientApp { get { return _clientApp; } } static App() { _clientApp = new PublicClientApplication(ClientId); }[/code] 3.In mainwindow.xaml Add a button for calling the graph and a multiline textbox to […]
SharePoint 2019: Added and Depreciated Features
The strikingly easy user interface and versatile capability of SharePoint make it the most widely adopted platform by many organizations. With previous SharePoint versions fluidly working in harmony with many other technologies and helping people in the organizations to accomplish the most challenging jobs with perfection, everyone is eying for impeccability of newer version- The SharePoint 2019. With the announcement […]
SharePoint Modern Sites to Load SP Components on Page Load
This code block is related to SPFx development. This below-mentioned code block will help us to register these specific JavaScript libraries in modern pages. This solution is brought to you by our SharePoint professionals… Softree Consulting has a team of excellent SharePoint consultants that aims to help companies achieve exceptional performance through SharePoint. Our steadfast team of SharePoint consultants is […]
Across academic and scientific institutions, companies around the world.
Must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give ut you a complete account of the system, and expound the actual teachings of the great explorers of the truth, the seds master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do pleasure rationally encounter consequences
Control allows you create a control where users can upload images
Must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give ut you a complete account of the system, and expound the actual teachings of the great explorers of the truth, the seds master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do pleasure rationally encounter consequences
Create Blank Site Template
For one of my requirement, I was trying to create a Blank Site Collection on SharePoint 2013. To do so, I navigate to Central Administration -> Create Site Collections. But I could not see the template called a Blank Site Collection listed on the Create Site Collection Page. Then later identified that the Blank Site Collection template, by default will […]
Create Custom List View using JSCOM
This below-mentioned code block will create the custom list view in a specific list. You can also set your custom view fields while creating the list view. [code lang=”c”] var oContext = SP.ClientContext.get_current(); var oWeb = oContext.get_web(); var oList = oWeb.get_lists().getByTitle(“MyList”); //Enter title of your list hostContext.load(oList); hostContext.executeQueryAsync(CreateListView(oContext, oList), function (sender, args) { //On Error console.log(args.get_message()); }); function CreateListView(oContext, oList) […]