Update people field in List SharePoint 2010

Sunday, October 7, 2012





using(SPSite mainsite=new SPSite("SPContext.Current.Site.Url"))
{
    using(SPWeb mainweb = site.OpenWeb())
    {
                                    //Custom List Name
        SPList list = mainweb.Lists["MyList"];

        // Add new listItem
        SPListItem item = list .AddItem();

                                                 // UserID with domain
        SPUser user = web.AllUsers["SharePoint\\Usama"];

        item["Person"] = user;
        item.Update();
    }
}


:)

Create SharePoint 2013 Workflow Loop By Using SharePoint 2013 designer Preview

One the Major Enhancements in SharePoint 2013 Workflows is availability  of "Loop"s is in SharePoint Actions. now loop are fully integrated in workflow actions. there is two type of loops. "Loop n Times" and Loop with conditions. this new feature is available with SharePoint 2013 Workflows  You can create directly   loop based workflow by using SharePoint designer 2013 preview with different actions. here i am showing one basic example how you can create loop in workflows by using SharePoint 2013.

before start this

Set up and configure SharePoint 2013 Workflow Manager


  • Installing and configuring workflow for SharePoint Server 2013


  • Open SPD2013 Preview Click on List & libraries>Select any existing list or Create new List.  




    Click on List Workflow button in ribbon. It will open one Popup.


    Fill Workflow Name and description and Select SharePoint 2013 Workflow form dropdown. if in case 
    you only see the SharePoint 2010 Workflow kindly check. did you Install and configure workflow in SharePoint Server 2013. because SharePoint 2013 Workflow is based on Azure workflows.




    In side the Ribbon  you will see one yellow to Add loop to your workflow.


    here i am create Initiation form Parameters for Loop Count.

     set the by default Value

    Click on Yellow spot in ribbon and select loop n timers.  set parameters. 


    Set send email Action in side the loop. 





    Add Email Address that mail to be send.

    create message for email.



    Click  Loop Yellow button in Ribbon. and select loop n Condition



    Create another Initiation form Parameters.



    Set Parameter and with loop values and set condition equal to not equal and hard code 10 value for comparison 

      Save and Publish

    Assess your Site from Browser and navigate to that list create one Item and
    click on workflow


    double Click on your created worflow.

    fill Parameters in  Initiation form and Click on Start Button
    Go back and list Workflow setting page



    Go to SharePoint Workflow History. you  will see updates that done in loop.


    check you Main Box for emails. 



    By Usama Wahab Khan
    thank you 

Enhancements in SharePoint 2013 Workflows.

Saturday, October 6, 2012




I was Deep Diving in SharePoint 2013 Workflow. Find So many new things in SP2013 like new architect. this time workflow is not running in side the SharePoint. its working with azure workflow. new important Enhancements which area really great.

  1.   finally Loop is fully integrated actions. 
  2.   new Feature called "Workflow Stages"  for SPD Preview 2013 no need to create state Machine workflow .
  3.  new Actions like "Start a Task Process","Assign a task" .
  4.  "Call Web Service" Action use data from web-service in workflow.
  5.  new Variables types like "Dictionary Type Variables" for an array.  
  6.  absence of Design View in SharePoint 2013.  
  7. Visual Studio 2012 workflow project type support;
  8. Support for creating custom actions.
  9. Based On Windows Workflow 4.0.


    New Actions in SP2013 Workflow



    Action Description
    Assign a Task Assigns a single workflow task to a user or group.
    Start a Task Process Initiates execution of a task process.
    Go to This Stage Specifies the next stage in a workflow to which flow control should be handed.
    Call HTTP Web Service Functions as a method call to a Representational State Transfer (REST) endpoint.
    Start a List Workflow Starts a list-scoped workflow.
    Start a Site Workflow Starts a site-scoped workflow.
    Build DynamicValue Creates a new variable of type DynamicValue.
    Get Property from DynamicValue Retrieves a property value from a specified variable of type DynamicValue.
    Count Items in DynamicValue Returns the number of rows in a variable of type DynamicValue.
    Trim String Removes all leading and trailing white-space characters from the current string.
    Find Substring in String Returns 1-based index of the first occurrence of one or more characters, or the first occurrence of a string, within a string.
    Replace Substring in String Returns a new string in which all occurrences of a specified character or string are replaced with another specified character or string.
    Translate Document Functions as a wrapper around the HTTP activity that calls the synchronous translation API. You must configure a Machine Translation Service Application for the SharePoint site on which you run the workflow.
    Set Workflow Status Updates workflow status as specified in message string.
    Create a Project from Current Item [Microsoft Project] Creates a Project Server project based on the current item.
    Set the current project stage status to this value [Microsoft Project] Sets the two status fields within the current stage of the project.
    Set the status field in the idea list item to this value [Microsoft Project] Updates the status field of the original SharePoint list item.
    Wait for Project Event [Microsoft Project] Pauses the current instance of the workflow to await a specified Project event: Project checked in, Project committed, Project submitted.
    Set this field in the project to this value [Microsoft Project] Sets the value for th

but i am really enjoy allot. with these new tools. on every step its feel like when you get new toy in my childhood.

Microsoft Announces new Certifications for SharePoint 2013

Wednesday, October 3, 2012







Exam 331 Core Solutions of Microsoft SharePoint Server 2013

Skills
Design a SharePoint Topology  (Read )

·         Design information architecture. 
·         Design a logical architecture.
·         Design a physical architecture.
·         Plan a SharePoint Online (Microsoft Office 365) deployment.
o     
Plan Security(Read) (Read)(Source Store) (Read)
·         Plan and configure authentication.
·         Plan and configure authorization.
·         Plan and configure platform security.
·         Plan and configure farm-level security.
·          
·         Plan installation.
·         Plan and configure farm-wide settings.
·         Create and configure enterprise search.
·         Create and configure a Managed Metadata Service (MMS) application.
·         Create and configure a User Profile Service (UPA) application.

·         Provision and configure web applications.
·         Create and maintain site collections.
·         Manage site and site collection security.
·         Manage search.
·         Manage taxonomy.

·         Monitor a SharePoint environment.



Exam 70-332: Advanced Solutions of Microsoft SharePoint Server 2013


Skills


Plan Business Continuity Management (21 percent)
·         Plan for SQL high availability and disaster recovery.
·         Plan SharePoint high availability.
·         Plan backup and restore.
·         Plan a social workload.
·         Plan and configure a search workload.
·         Plan and configure a Web Content Management (WCM) workload.
·         Plan an Enterprise Content Management (ECM) workload.

·         Evaluate content and customizations.
·         Plan an upgrade process.
·         Upgrade site collection.

·         Create and configure App Management.
·         Create and configure productivity services.
·         Configure service application federation.
·         Create and configure a Business Connectivity Service (BCS) and Secure Store application.
·         Manage SharePoint solutions and applications.
·         Plan and configure a BI infrastructure.
·         Create and configure work management.



Clinic 40027A:

First Look Clinic: What's New for Developers in Microsoft SharePoint 2013




 Clinic 40028A:

 First Look Clinic: What’s New for IT Professionals in Microsoft SharePoint Server 2013


http://www.microsoft.com/learning/en/us/Course.aspx?ID=40028A&Locale=en-us

More Info
http://www.microsoft.com/learning/en/us/certification/cert-sharepoint-server.aspx#

Create App By using Napa Office 365 Development Tool. Complete Step by Step

Tuesday, October 2, 2012


basic operations using the JavaScript client object model in SharePoint 2013 Preview. Create,Delete Items.

Napa
The “Napa” Office 365 Development Tools make it easy to start building apps for Office and SharePoint without leaving your browser or installing software. Just add the “Napa” Office 365 Development Tools app to your SharePoint Online Developer Site, launch it, and you will be ready to create your first app for Office or SharePoint.

When you are ready to leverage the powerful capabilities in Microsoft Visual Studio 2012, the “Napa” Office 365 Development Tools makes it easy to download your project, get the required software and continue developing your app for Office or SharePoint.





Sign up for an Office 365 Developer Site 
Sign up for a trial during the preview period.

Step by Step how to Sign Up @ Office 365 Developer Site

 Once Create Account on  Office 365 Developer Site  you will see Office 365 Admin Center page.

Installing and Configring Napa App with Dev Site

1. Goto SharePoint>Administration Center>Apps>Purchaes App


2. Search and Select Napa Office 365 App form SharePoint App store and  Click on ADD IT button

3. Click on Return to Site button. Might be it will take few mints.

Create Developer Site to enable NAPA APP FOR DEVELOPMENT FEATURE 


4.Go back to SharePoint Administration Center then Click on Site Collection on left Menu .then Add new Site in as Private site.
SharePoint Administration >Site Collections>New>Private Site Collection


4. Select Developer Site Template form new site collection list. than fill basic info and Press OK button.


























6.Once you Complete Creation of Site Collection you will see Develoepr site with new url in your site collection list then go to your developer site



7.then Click on top setting Icon>Add App and Select Napa App




8.Click on Trust it button

9. Napa Start up Screen will appear with three options Select App for SharePoint and mention your App name 


Once you Click on Create button you will See Napa Console on browser.


Guide for Napa 






10.then on your left hand site panel you will see treeview. select Pages>Default.aspx and Modify the Content PlaceHolder called PlaceHolderMain with Following Code example (code file are give blow).


11.Add this Code under PlaceHolderMain ContentPlaceHolder



12.in Left Menu Click on Script section and select App.js  and Add Code under the SharePointReady Function

13.add this code for bind click events of  three button that we add in default.aspx page.


14.Add these Functions end of the App.js File



15.then on > Play Icon from bottom bar. and deploy and launch the App

16.if App will not open automatically kindly check your browser might block the popup window.


17 Test App Add list Delete list ,Get list Count in web Operation





Add Code and Controls for Adding  and Deleting List Items.

18.Go back to Default.aspx and Find Selectionlistbox and add Onchange event with getitem method 


19 Add this Code under Selectionlistbox for Creating Items and Deleting them
20  Go to Script >App.js Again and add the following Code under the SharePointReady Fuction


End of the App.js file Add this Following code Step by Step





then Publish you app Again with Play icon on bottom it will upload and update your app again

Launch App Again
Test All Operation that you Create by Code


Open Compete Project in Your Visual Studio by Click on Visual Studio Icon on Bottom bar



Download Source Code



By Usama Wahab Khan