Who Created Site Collection using PowerShell

Who Created Site Collection using PowerShell
In this article we can able to see who created the site collection with username and time using PowerShell.

In our environment we are having so many site collection, due to some reasons we need to know who created the site collection and when he created the site with data and time information.

The below PowerShell Script is very useful to get the basic information who created the site collection.

add-pssnapin microsoft.sharepoint.powershell
$site = Get-SPSite http://dotnetsharepoint.com/
$site.RootWeb.Author
$site.RootWeb.Created

SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM

Show display name in email notification using Nintex

In this article we can able to see how to show display name in email notification using Nintex, in this example we are having a new form with column name “Requestor” while creating a new item we added the user name in the “Requestor” column, so whenever we clicked on save we are sending the notification  mail to the Requestor.

In the mail we want to display user name, but by default we are getting as domain name\userid, but we want to display only Username, for this we are having couple options to achieve this functionality, we tried this approach and it working as accepted.


Create Nintex workflow and select the “Query User profile” as shown below.


Click on Configure, Create a any workflow variable “display name” single line text.

Select the values as per the below screen shot.

Now in the email notification, you can add the user “dispalyname” workflow variable where ever you want, it will shows the display name as per the user profile.

SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM

How to overlay Office 365 shared calendar with SharePoint Calendar

In this article we are able to see how to perform SharePoint calendar overlay, using new solution by Virtosoftware. Long time the ability to overlay Office 365 shared calendar from Exchange Online and SharePoint calendar was the most sought after feature in SharePoint Online. Now we can overlay Office 365 shared calendar not only with people that are using Outlook too.

You can easily create Office 365 shared calendar as it is described in article from this link, but you can`t overlay it with your calendar in SharePoint.
Now the brand new Virto Office 365 Calendar Add-in allows us to overlay any number of SharePoint calendars and Office 365 shared calendar in a single view.

With Office 365 Calendar Add-in you can perform this connection with a single click!


Just check the box in Add-in settings to share office 365 calendar in SharePoint! Now all your Exchange Online calendars will be automatically added to Virto Office365 Calendar. 




This unique feature, among others, makes Virto Office 365 Calendar Add-in a perfect calendaring solution for SharePoint Online. This Add-in allows you to add or edit items with a single mouse click and display color-coded events in different timescales. You can view schedules in Day, Week, Work Week, Month, Year, Task and Multisource View. With Office 365 Calendar Add-in you can show all your private events, meetings and shared calendars in one place. Also, this SharePoint online calendar has a 30-days free trial, you can download and try all its features right now!
Learn more about all features of Office 365 Calendar Add-in and download trial version.


SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM

Hide Controls in SharePoint based on Permissions

Hide Controls in SharePoint based on Permissions
In this article we are able to see how to hide controls based on permissions, we placed a button in display form and we want to show that button only for couple of users, for this we created a SharePoint group  added users in that group.

Add the below code in notepad save it and place it in Site Assets.
Enter your GroupName as per your requirement.
Add the content editor in the display form, Edit it and refer the file in this editor.
Now we can able to see the button based on the permissions.

<html>
<head>
<script>
_spBodyOnLoadFunctionNames.push("CurrentUserInGroup");                  
function CurrentUserInGroup()
{
           
            $('#btnhidebutton').hide();
            $.ajax({
            url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/sitegroups/getByName('Your SP GroupName')/Users?$filter=Id eq " + _spPageContextInfo.userId,
            method: "GET",
            headers: { "Accept": "application/json; odata=verbose" },
            success: function(data){
            if(data.d.results[0] != undefined){       
                        console.log(data.d.results[0]);
                        $('#btnhidebutton').show();                            
            }
            }
            });
}          
</script>
</head>
<input type="button" id="btnhidebutton" value="Add Button"/>

</html>

SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM

Change New Item text in SharePoint


In SharePoint for every list we are having a default name while adding “new item”, if user wants us to change the name of text related to list name we can change it using JavaScript.

Edit the page and add the Script Editor and copy the below code inside the Script Editor, Click on stop editing the page in the top ribbon, now we can see text will change automatically

<script type="text/javascript">

window.onload=function(){

var changetext = document.getElementById('idHomePageNewItem').getElementsByTagName('span');

changetext[1].innerHTML="Welcome DotnetSharePoint ";

}


</script>


SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM

Create a custom view for survey list in SharePoint

In SharePoint we are having lists and document libraries, for every list and document library having default single view, we can also create custom views based on conditions as per user prospective, but for Survey list we did not find any option to create a custom view.

Steps to follow to create a Custom view
Open the Survey List
Click on Survey Settings

We can able to see the URL similar to this.

Change the survedit to viewtype


Now we can see the Standard View.
Enter the view name that you want.
Select the fields that you want to show.
Click Ok.
Now Custom View is created successfully for Survey list.
 SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM

How to add custom close button in SharePoint using JavaScript

In this article we are able to see, how to add a custom close button in SharePoint using JavaScript.

We are a requirement to add a custom close button on the display from, once we clicked on the custom close button it should have to redirect to different URL, in our case we given URL www.dotnetsharepoint.com

Copy this code in notepad save as txt format, add content editor in the display form and refer the text file.

<style>   
.ms-ButtonHeightWidth  /*-hiding Existing close button -*/
{
 display:none;
}   
</style>
<script type="text/javascript">
function closebutton()
{
 window.location = "www.dotnetsharepoint.com"
}
</script>
<html>
<body>
<table>
<tr>
<td>
<input type="button" value="Close" width="150"
onclick="closebutton()" style = "margin-left: 390px;">
</td>
</tr>
</table>
</body>

</html>

SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM