Skip to main content

Posts

Update list metadata Created By,Modified By, Created,Modified Field using PowerShell

In this article, we are going to learn "How to update list metadata using PowerShell". In some cases  we want a particular person to be the created by and modified by and we also want to update the time stamp of modified at and created. We can achieve this using PowerShell. Power shell to update Created By,Modified By, Created,Modified field values --Load SharePoint CSOM Assemblies-- Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"     -- Replace the tenantName and listName with your site name and list name -- $SiteUrl = "https://tenantName.sharepoint.com/sites/training/" $ListName= "listName" $ID=1 ---- Replace the Username and Password with your one-- $Username = "userId"   $Password = "pwd" |  ConvertTo-
Recent posts

Permission XML for SharePoint Add-in

In this article, we will be discussing the permission XMLs, which are used to provide permission to SharePoint add-in. You can set the App only permission, by setting "true" or "false" in  AllowAppOnlyPolicy=“true” in these permission XMLs.   If add-in granted permission to tenant scope, It includes all children in scope. Before granting access to the app, need to register an app. Follow this link for step by step guide to  How to register an app/add-in in SharePoint   Providing access to add-in at tenant level: To provide access at tenant level user must have the tenant admin level permission. To grant this permission tenant admin can use this URL   https://tenantName-admin.sharepoint.com/_layouts/appinv.aspx Search the App Id (Client ID) and it will fetch all the information which you provide at time of registration of app.   Assign full control at tenant level : <AppPermissionRequests AllowAppOnlyPolicy="true">   <AppPermissionRequest  Scop

"You can't add this app here" error in SharePoint

Once you add your app to app catalog and then you go to the site collection and you select the add an app option, and you search the app and you see the error message “You can't add this app here”.  You can't add this app here is the common issue users get while installing the SharePoint apps or SPFx packages.   This is a generalize message shown in various situations. You can check the reason on clicking "Find out why". Some of the causes and there solutions are listed below:  Cause 1 : Good news - you already have this on your site.   First Scenario : Meaning of this message is that app is already added on the site, go to the Site content and check that app is already exist or not, If exist and still you want to add it, uninstall the app and also remove it from the recycle bin and then you will be able to add this app. Second Scenario :  If you checked the site content and app is not installed, go to the recycle bin (also to admin recycle bin ) and if app is th

"Append Changes to Existing Text " in SharePoint document library

You want to add a multi line text field in document library, which allows to append changes to existing text. When you create a multi line of text field in library and there is no option available to do this. In this post you will also get answer for the question "Append Changes to Existing Text" option is missing in SharePoint document library. There is no option available for "Append Changes to Existing Text " in SharePoint document library but this option is available in the List. But, you can get the append able column in SharePoint document library by following the steps mentioned below: Create a site column: 1 Go the Site Settings and click on the " Site columns " under "Web Designer Galleries" . 2 Click on the Create . 3 Give the name to the field and select "Multiple lines of text" and " Append Changes to Existing Text " to  Yes.  Add site column to document library: 1 Go to the Library Settings and Click on the &qu

Everything you want to know about sharepoint groups

SharePoint group is collection of users. SharePoint group is useful when you want to assign a common permission to multiple users at once instead of assigning permission to one user  at a time. How to create a group in SharePoint?  To create a group in SharePoint, follow the steps mentioned below: 1 Navigate to your site and click on gear icon. 2 Click on the Site information and one section will appear. 3 From site information section, click on the “View all site settings” 4. You will be redirect to the Site settings page. Now move to the click on “ People and groups ” under the “Users and Permissions” section. 5 You will be redirect to the People and Groups page. Click on the “Groups” option available on top of the left panel and you will be redirect to the groups page. 6  Now click on the “New” option.   7. Now you are at Create group page. Type the name in textbox next to the “Name” field and choose the appropriate permission as per your requirement. Here I

Issue while embedding content using iframe in SharePoint

In this blog we are going to discuss the issue coming while using the embed code in SharePoint page.   "Embedding content from this website isn't allowed, but your admin can change this setting. They will need to add 'www.techrobbers.com' to the list of sites that are allowed." This issue came when you try to add embed code from the site which is not added into the "Allow iframes from this domain". To embed the content from the site you need to add the site in the  HTML Field Security . To resolve this issue, follow steps mentioned below: 1. Click on the gear icon and then click on  Site Settings . 2. On the  Site Settings  page, you will find the option  " HTML Field Security "  under the  " Site Collection Administration ". 3.  Click on the "HTML Field Security" and choose the option " Allow contributors to insert iframes only from the following domains "    Type the domain from which you want add co

How to join microsoft teams meeting

In this article, you will going to get all the answers of your questions which are related to joining the Microsoft teams meeting.  Some common questions are: How to join the teams meeting from web?? How to join the teams meeting using browser?? Join microsoft teams meeting as guest?? Join microsoft teams meeting without account?? Anyone can join a meeting using Microsoft teams without a Teams account. follow steps mentioned below to join meeting without MS Teams account. Click on the meeting link form the meeting invitation.  Once you click on the meeting link it will open a web page. alert will be generated, click on                 " Cancel ". After cancelling the alert, Select the " Continue on this browser ".                 You will redirected to teams meeting, do the setting of mic/camera and click on " Join now ". Now you will bring to the lobby and some one from the teams will add you in the meeting. Note: To use MS teams from web recommended

Useful commands for SPFx development

In this blog, we are going to learn all the commands which are very useful in developing SharePoint Framework client side solutions. These commands are useful in both web parts and extensions development using SPFx Framework. You can install node modules and use them in SharePoint Framework and either you can use things from CDN also. Clean and build the SharePoint Framework (SPFx) client side solution. gulp clean gulp build Create app package of SharePoint Framework (SPFx) client side solution. gulp bundle --ship gulp package-solution --ship Install Jquery in  SharePoint Framework (SPFx) client side solution. npm install jquery --save npm install @types/jquery --save-dev Install bootstrap in  SharePoint Framework (SPFx) client side solution. npm install bootstrap --save npm install @types/bootstrap  --save-dev Install bootstrap with a specific version in  SharePoint Framework (SPFx) client side solution. npm install [email protected] --save npm install @types/[email protected] --save-dev Use the

Utilize the out of the box web parts and add social media feeds on modern pages SharePoint online

In this article, we are going to learn, how to add social media feeds. There are several web parts available out of the box to add social media on the modern page. Those web parts are quite useful in building the intranet. Add social media feeds to the SharePoint page. To add twitter feeds to on the page, follow the steps mentioned below: 1. Edit the page and click on the add icon for adding the web part. 2. Search for the twitter web part and add it. 3.  Now go to the web part properties and add the twitter handle you want to add.  You can also change the theme color and the numbers tweets to show on-page. 4. Once you done all the settings. Republish the page. You can embed Facebook public feeds on your site by following these steps:  First, we need to get embed code from  Facebook page plugin .  Now paste the Facebook page URL and set the height - width.          3.  Now click on the get code. Select IFrame and copy the code.             4.  Once you get the code, Login on your Share

Create document library using SPFx solution

 In this article, we are going to learn how to create(provision) document library programmatically. We can create a list or document libraries programmatically with the SPFx solution.  In my previous article, I wrote about the  Provisioning of list with SPFx web part solution . SPFx provides flexibility to provision SharePoint assets with the solution. In this article, we are going to provision a document library. Create a client-side web part solution  Follow the steps for creating a client-side web part solution, run the commands using command prompt. Create a directory md test-webpart Move to the directory cd test-webpart   Run yo @microsoft/sharepoint command to create a client-side web part. Once you run the command mentioned above, you need to put some information related to the web part solution   What is your solution name? Give the name to your solution.  Which baseline packages do you want to target for your component(s)?  On which environment you want to use this in our case