Posts

Showing posts from 2017

Office 365 and PnP-PowerShell 2013 : ContentType

Image
In this content type section is most important section. You can use these methods to create, delete and update the existing content type. So the cmdlets are piety straight. The following are the command lets that we are going to use in this section. You can check the github documentation and example as well. 
With the help of these cmdlets I will create the Utility same as we did for in before blog post.  Add‑PnPContentTypeGet‑PnPContentTypeRemove‑PnPContentTypeRemove‑PnPContentTypeFromListGet‑PnPContentTypePublishingHubUrlAdd‑PnPContentTypeToListSet‑PnPDefaultContentTypeToListRemove‑PnPFieldFromContentTypeAdd‑PnPFieldToContentTypeLets start the end of my goal is the build some kind of meaning utility that you can quickly use in your project and get some benefit. 





Same create the multiple content type and attach columns to content type. For configure the content type, I am using the same CSV approach to read every properties from the file and built the content type.

Remove Content Type or…

Office 365 & PNP PowerShell 2013 : Branding Part1

Image
Last post we have learned about the other branding topics as mentioned below. 

1. Create the bulk custom Actions using CSV files. 
2. Set the Home page URL using CSV file. 
3. Add and remove the script blocks and script links. 

Now this post we will learn how we can create the bulk links using "Add‑PnPNavigationNode" method. So in this example I am going to create the utility that help you to create the multiple links in the single go. For this we will be using the csv files for configure every thing. As you know using this method you can add the links to following locations. 



1. TopNavigatoin



 2. QuickLunch

 3. SearchNav


So here is the solution without taking your much of time. 


Remove the Navigation using "Remove‑PnPNavigationNode" We have learned how to add the navigation, now the question come if we need to delete the same above created structured. 
So friends, I am facing very taught time to make this possible. So I am not able to delete the links when there are parent …

Office 365 & PNP PowerShell 2013 : Branding

Image
The PNP branding section you can create custom action like link in the ribbon and other locations as well. For that you need to understand the Ribbon XML.
You can check the following links to know about the ribbon xml. 
Adding a Button to the Server Ribbon`Add a custom ribbon to your sharepoint siteNow let’s do some practical work. To create the ribbon with PNP powershell, I am going to use the Add‑PnPCustomAction.

To get the all custom actions you need to use the Get‑PnPCustomAction command.

And to remove the custom action we get use the above method to get the all the custom action and delete all the custom action just loop over the collection use the Remove‑PnPCustomAction


In this example, I am going to use the CSV file to read the information and create the Ribbon based on the configuration.


Here is the CSV files for both operation are identical only one different in Action column ‘Del’ and ‘Add’ for distinguish the operation.

The code for cover the above mentioned custom …

Office 365 With PNP PowerShell 2013: Base Cmdlets

Image
This is my third blog post on the topic PnP-PowerShell 2013. In this post I am going to give clear understanding, how to make the connection and close the connection using PnP Base Cmdlets section. 

In the background the “Microsoft.SharePoint.Client.dll” is responsible for get the all results from the SharePoint. 
The value also increase of learning if you already have experience on client object Model.Basic tip from my side please read some information about the client side object model.
As you may be know the client site object model you can’t get all the data from the server in single request. You need to identify which property you need and just use the load method to load that type of property also you can use the Get-PnpProperties Cmdlet. 
Implementation The command that I am going to cover as mentioned below. 
These are the most common rest of others not much important in terms of PNP 2013 on premise. The numbers of command are 6.
Sr. No Command Name Description as PNP team 1. Conne…

About Office 365 PnP PowerShell 2013 & What is new

Image
This commands helps and make your work simpler by using this commands. These libraries built on the top of CSOM. These libraries work both on Online and On-premise.

You need to install the windows Management Framework v4.0. Download from here. For more details you can check this link

This tool open and the community people working on the code also you can participate on this and help them to build a robust tool. 

If you want to contribution you can check the guidelines https://github.com/SharePoint/PnP-PowerShell/blob/master/CONTRIBUTING.md




Till the time here is the total statics about this. 
1. Commit: 1466
2. Branches: 2
3. Release: 33
4. Contributors: 39
5. Watch: 139
6. Star: 282
7. Fork: 330
8. Issues: 176
9. Pull Request: 13 
My ContributionI am planning to write the series of blog post in which I am going to put my code snippets to help and jot down my experience till now.



Pnp-PowerShell 2013: Setup your machine part

Office 365 PnP-PowerShell 2013: Setup your machine part

Image
To run the PowerShell on your client machine you need to first step your client machine.
Here are the some of the tools, I would recommend you to install on your machine before going ahead any other development.




Install PNP Framwork on your client machine.Free DLL(s) built and developed by Microsoft. Join this community and be the part to get the latest updates, here is the link.

You can download the 2016 version, if you working on latest version. As of now I have installed 2013 version.
Download the binaries from following URL. You can use the most of the functionality/functions but not all. Because this client model mainly target to the office 365.Once the files are installed you can go to its location and check the files. You can copy this binaries and paste inside your build folder, because these are the dependencies that required for run the script. You can copy the SharePointPNPPowerShell2013 Folder and put into your final release file to give it your client. Download the files and…

It's time to sharp Your JavaScript Skills

Image
If you check the “Stack Overflow Survey 2017”, you will find JavaScript still on the top. The number of jobs and future prospective it is worth to learning some of the new framework.  Why JavaScript Popular? Now days, almost every type of application you can built using JavaScript. Thanks to NodeJS and NPM community. The JavaScript boom comes when first NodeJS server comes into the existence. NodeJS has its own package manager i.e. open source libraries same as nugget Visual Studio package manager.  JavaScript Object Oriented: With the help of TypeScriptis a free and open-source programming language developed and maintained by Microsoft. It is a strict superset of JavaScript, and adds optional static typing and class-based object-oriented programming to the language. Cross Platform Desktop App: If we have front end skills and you want to develop the desktop application, with the help of Electron Atom framework you still built a desktop cross platform app. As Electron tag line “Build c…