Skip to main content

Posts

SharePoint 2013 Training–Part 1

Hosted a SharePoint training for Pyxle colleagues; session went well with practical sessions and technical discussions.

SharePoint Sample Field (Columns) Schemas

SharePoint Fields (Columns) XML is essential for every SharePoint Object Model development. Multiple User Field < Field ID ="{f6377553-35fc-4166-9cc3-88fa32a5d7dd}" Name ="WFCApprovers" DisplayName ="WFC Approvers" Type ="UserMulti" Required ="FALSE" UserSelectionMode ="0" Group ="Custom" > </ Field > UserSelectionMode Options: 0 - PeopleOnly , 1 - PeopleAndGroup Single User Field < Field ID ="{f6377553-35fc-4166-9cc3-88fa32a5d7dd}" Name ="UserField" DisplayName ="User Field" Type ="User" Required ="FALSE" UserSelectionMode ="1" Group ="Custom" > </ Field > Boolean Field < Field ID ="{6ed8dbbf-4726-4a63-b358-e4797149a8ba}" Name ="Booleanfld" DisplayName ="Boolean Feild" Type ="Boolean" ...

How to Add Multiple Users in Data Element in SharePoint List Scheme

This is method is also use for add multiple lookup values as well. < ListInstance Title ="List1" OnQuickLaunch ="FALSE" TemplateType ="100" Url ="Lists/List1" Description ="List1 List Instance" > < Data > < Rows > < Row > < Field Name ="Title" > abc </ Field > < Field Name ="MultipleUser" > 9;#Melick Baranasooriya;#12;#One User </ Field > < Field Name ="MultipleValues" > 1;#One;#2;#Two </ Field > </ Row > </ Rows > </ Data > </ ListInstance > In here separator will be ;# thus we need to specify id ;# value

Working with workflow service in JavaScript (JSOM) in SharePoint 2013 / Office 365 (SharePoint Online) – Part 1 (iterate workflow deployments and subscriptions)

SharePoint 2013 provides set of JavaScript libraries that can used to manage workflows. First you need to refer sp.workflowservices.js which is available in _layouts/15/sp.workflowservices.js . < script src ="/_layouts/15/sp.workflowservices.js" ></ script > Following are few examples of using the library 1. Get all Workflows deployed to current web 2. Get all workflow subscriptions attached to a list 3. Get all workflow subscriptions in current web 4. Get all workflow subscriptions for workflow definition apart from these things you can get subscriptions by enumerateSubscriptionsByEventSource enumerateSubscriptionsByListAndParentContentType enumerateSubscriptionsByListWithContentType Get all Workflows deployed to current web var context = SP.ClientContext.get_current(); var web = context.get_web(); var sMgr = new SP.WorkflowServices.WorkflowServicesManager(context, web); var wDefs = sMgr.getWorkflowDeploymentService().enumerateDefinitions(); context.load(w...

How to change the SharePoint 2013 scripts to debug versions

SharePoint environment works with release mode java scripts which can not be (hardly) debug easily. if you want to load debug scripts resides on layout folder rather than release scripts you need to change the master page’s script manger tag . Open the master page and alter the ScriptManager tag and scriptmode to debug. then you can see SharePoint loads debug scripts.

SharePoint 2013 and Office 365 (SharePoint Online) App Provisioning and Installation Options

App deployment is different from app development.  App deployment is depends on how administrator is going to install the app. App deployment can be done in Web Scope Tenant Scope For both deployments we need App Catalogue in functioning. Apps are currently coming from two main sources as From Organization and From SharePoint Store Web Scope installation This is what we generally do. Here we are navigating to desired web (assume  the web is http://www.sharepoint.com/sites/myweb ) and click the setting button and launch Add an app Then you can either browse and install app from office store or organization store. in this approach app is installing as a sub web under current web . and data will be scoped to the particular web we installed. The web site which actually holds app data and functionality is called App Web (sub web) and The web site we installed the app is called as Host Web (current web). For an example assume installing MyApp under myweb. ...