Posts

Showing posts from October, 2011

Microsoft SharePoint Online Code Analysis Framework (MSOCAF)

Image
SharePoint Online SharePoint Online is a combination of SharePoint + cloud. Microsoft manages the SharePoint Online for your organization and helps you the leverage the power of SharePoint for your organization globally. MSOCAF The MSOCAF tool is used for streamlining the custom solution review Process for SharePoint Online (SPO). MSOCAF solution is used by customers, ISVs and vendors to validate and submit custom solutions. Before submitting the custom solutions to Microsoft, customers has to validate the custom solutions using MSOCAF tool, this tool detect the code issue and also provides resolution for fixing the issues. MSOCAF tool has four wizards: ·          Analyze Using Analyze wizard custom solution is analyzed against the set of rules. The custom solution is passed for Folder structure and its content. The code base analyze is a kind of mix of SPDisposeCheck and FxCop utitliy . It checks the custom solution and al...

How to fill person or group field of form lib using InfoPath?

Image
Steps: 1. Create Person or group field name TestUser and one more field name HidTestUserName 2. Add the people picker control in InfoPath field 3. Promote the AccountId field value to HidTestUserName field. Refer the below Screenshot. 4. Create workflow for FormDocLib and create step with action of Set Field in Current Item . In this action set the value of TestUser Field. 5. Make sure Start Workflow automatically when an item is created and change options are enabled. Refer the below SS.

How to upload the document using SharePoint client Object Model and set the Properties

The below code example shows how to upload document from file system to SharePoint using Client Object Model. Also show how to set the properties for Text, Person or group, Checkbox, Managed Metadata columns. Below code refer the excel file to get the file path and column values. using System; using Microsoft.SharePoint.Client; using System.IO; using System.Data.OleDb; using System.Data; class DisplayWebTitle { static void Main() { string siteUrl = "http://siteurl"; string libraryName = "LibraryName"; string subFolderPath = ""; string metaDataSheetLocation = @"c:\FilePath\FileName.xlsx"; UploadFileInLibrary(siteUrl, libraryName, subFolderPath, metaDataSheetLocation); } public static void UploadFileInLibrary(string siteUrl, string libraryName, string subfolderPath, string MetaDataSheetLocation) { using (ClientContext clientContext = new ClientContext(siteUrl)) { ...

How to Setup Retention Workflow using Content hub

Image
Step 1: Go to Sharepoint Designer save and publish that workflow from the sharepoint designer and save the workflow as a template. Step 2: Deploy the workflow wsp globally. Step 3: Activate the Workflow Feature in all old team and my site (Site collection and their sub sites) through Power shell and in all New Sites it will be automatically activated through feature stapling (staple the workflow feature with your site template/defination). Step 4: Go to the Content Hub site and activate the workflow feature in Site Features Step 5: After publishing come back to Content hub site and attach this workflow to the content type. Step 6:Update all content types that inherit from this type with these workflow settings. Here is a snapshot to update all content types that inherit from this type with these workflow settings. Step 7: Add/Edit retention policy to this content type which will trigger the new deployed workflow under Inform...