Category Archives: SharePoint 2013

SharePoint Designer Call HTTP Web service with RequestDigest

Using Sharpoint Designer we can create an activity of type “call Http Web Service” to manage sharepoint using Rest API.  Workflow 2013 support the JSON format. then we must to tell to the Rest call that we accept JSON format. … Continue reading

Posted in SharePoint 2013, sharepoint online | Leave a comment

Bing Maps- geolocation column

Overview bing Map This feature was integrated  in SharePoint 2013 (automatically in SharePoint Online).  based on Bing map service  https://www.bingmapsportal.com/ISDK/AjaxV7#CreateMap1. Mostly, there is a field type « Geolocation »  (Hidden)  that integrate any call of the Map service, and show the data … Continue reading

Posted in SharePoint 2013, sharepoint online | Leave a comment

SharePoint 2013 Language Toggle

In SharePoint 2013 the language switcher drop down is removed … So we have tried to implement our own switcher with same concept in SharePoint 2010. Reference the Changing the Display Language – But trying to add the JavaScript was … Continue reading

Posted in Published projets, SharePoint 2013 | Leave a comment

Associate workflow programmatically

SPWorkflowTemplate baseTemplateWF = web.WorkflowTemplates[“261d83b2-01f5-4dec-9a68-fbd85f5aaf24”]; //In Workflow-> Element.xml -> <Workflow  -> Id SPWorkflowAssociation assocList =SPWorkflowAssociation.CreateListAssociation(baseTemplateWF, “instance name”, taskList, historyList); //taskList: list ok task //historyList: workflow list history assocList.AutoStartCreate = true; // Auto start when new item added list.WorkflowAssociations.Add(assocList);

Posted in SharePoint 2010, SharePoint 2013 | Leave a comment

Prevent deleting workflow task

When we create a workflow, we use workflow task (0x010801) to communicate with the users (make decision, collect data, set variables…).  The instance of the workflow waits this task until passing to complete.  The problem is when a SharePoint user … Continue reading

Posted in SharePoint 2010, SharePoint 2013 | Leave a comment

Create custom action to list instance

SPPList list;//custom list SPUserCustomAction action = list.UserCustomActions.Add(); action.Title = titleAction; action.Sequence = 20; action.Location = “CommandUI.Ribbon”; action.CommandUIExtension=@” <CommandUIExtension> <CommandUIDefinitions> <CommandUIDefinition Location=”Ribbon.Documents.New.Controls._children”> <Button Id=”CustomAction.TestButton” Sequence=”0″ Image32by32=”/_layouts/images/mewa_rightb.gif” Command=”TestCommmand” LabelText=”Button de test” TemplateAlias=”o1″ /> </CommandUIDefinition> </CommandUIDefinitions> <CommandUIHandlers> <CommandUIHandler Command=”TestCommmand” EnabledScript=”javascript:return true;” CommandAction=”javascript:alert(‘Button test’)”/> </CommandUIHandlers> </CommandUIExtension>”; action.Update(); list.Update();

Posted in SharePoint 2010, SharePoint 2013 | Leave a comment

Create Custom List form

if you have a specific processing in form list (display, edit, new), and you want to create your custom form programmatically. you can follow these steps: Create application page -add application page (customform.aspx) in layouts/Project/ -if you are in the edit mode … Continue reading

Posted in SharePoint 2010, SharePoint 2013 | Leave a comment