Skip to main content

Posts

Resize Picture Slideshow Web part in SharePoint 2013 without resizing the original images

The JavaScript code described below allows to display original images (without re-sizing) in Slideshow Web Part. In order to display original image the technique is to override the ShowPic function. For embedding JavaScript on page, use Content Editor web part (CEWP) on the same page where you have also inserted your SlideShow web part. <script type="text/javascript"> function SlideshowObjectInitializer() {   ShowPic = (function(ShowPicOrig) {       return function() {            var ssObj = arguments[0];  //SlideShow object            var curPicIdx=ssObj.index; //current picture index            ShowPicOrig.apply(this, arguments); //call original ShowPic            //apply some changes to display original picture in SlideShow control            ssObj.image.src = ssObj.linkArray[curPicIdx]; ...

To update Created, Created By, Modified, Modified in SharePoint document library/list using Client Object Model -CSOM

The changes to the "Author" and "Editor" metadata are done under an user account with "site owner" privileges. That is the app pool's custom user account. <script type="text/javascript" src="https://code.jquery.com/jquery-1.10.2.min.js"></script> <script type="text/javascript"> // When the body is loaded, the onload event handler executes each function whose name is contained in this array. _spBodyOnLoadFunctionNames.push("callCSOM"); function callCSOM() {     $("#Button1").click(function()     {         // Make sure the SharePoint script file 'sp.js' is loaded before your code runs.         ExecuteOrDelayUntilScriptLoaded(updateUser, "sp.js");     });  } function updateUser() { var clientContext = new SP.ClientContext.get_current();   var web = clientContext.get_web();   var currentUser = web.ensureUser('User Name here');   clien...

Video Carousel In SharePoint

Play Multiple Videos Continuously in a SharePoint Page Please follow below steps to do, Step 1 : Create a "Assets" Media Library in SharePoint. Step 2 : Download " video-js.css" , " video.js" & " jquery-3.3.1.min.js" from Google Drive ( https://drive.google.com/open?id=1iMXZ_vVK6pWec4id7xwjSl35S29uPcud) Step 3 : Create a HTML file and update your HTML code(VideoCarousel.HTML) Step 4 : Add HTML file into SharePoint Page via Content Editor Webpart. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > <!DOCTYPE html > < html > < head > < link href = "https://PravahamInfo.sharepoint.com/sites/Home/Style Library/VideoCarousel/video-js.css" rel = "stylesheet" > <!-- If you'd like to support IE8 (for Video.js versions prior to v7) --> < script src = "https://PravahamInfo.sharep...

Copy Outlook data to SharePoint online List using Powershell

I want to copy an outlook email data into a SharePoint online list. To achieve this, we can use CSOM /Power shell. Here I am showing to copy outlook data to SharePoint List using Power shell. Step 1 : Create a SharePoint List and columns(Question-Multi line text , CretaedBy - People Picker). Step 2 : Download and install the below tools. 1.SharePoint Online Management shell - https://www.microsoft.com/en-in/download/details.aspx?id=42038 2. Exchange Web service- EWS API is found at: http://www.microsoft.com/en-us/download/details.aspx?id=28952 Step 3 : Open your Windows Powershell ISE and run the follwing script. #---Outlook mail box name, Username, password and domain ---# $MailboxName = "AllHandsQuestions@ftech.com" $LoginId="venkat.m"; $Password='P@ssw0rd'; $Domain='FTech'; #---Log file location ---# $downloadDirectory = "C:\OutlookLogs_Test\" $currentDate = Get-Date -UFormat "%Y%m%d" $Logfile =...

Get User Profile data in SharePoint Designer 2013 Workflow

SharePoint Designer 2010 supported out of box activity to access user profile fields. However, User Profile service option is not present in SharePoint 2013 Designer workflows. In SharePoint 2013 workflow type ,we do not have any Lookup Manager for User activity. For this, SharePoint 2013 workflow you will need to use the Call HTTP Web Service activity, with the following end point URL. http://siteurl/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='Manager')?@v='i:0%23.f|membership|venkat@technologies.com ' Follow the below steps to get manager: Step 1 : Activate site level feature - Workflows can use app permissions. 1.  Go to Site Settings and click Manage site features under Site Actions. 2. Activate feature Workflows can use app permissions. Step 2 : App Permission – To ensure that workflow can access user profiles. 1.  Go to Site Settings and click Site app per...