• Know more about me

Mai Omar Desouki

~ Senior Cloud Solution Architect @ Microsoft

Mai Omar Desouki

Monthly Archives: September 2013

I am speaking in Adelaide SharePoint User Group, Australia

30 Monday Sep 2013

Posted by Mai Omar Desouki in SharePoint 2013

≈ Leave a comment


Event Details:

When: Tuesday, 15th of October, 2013

Where: Microsoft, Level 12, 147 Pirie Street, Adelaide, SA, 5000

Agenda: the agenda for October activities are:

•3:30PM – Arrive, Relax and Network

•4:00PM – Welcome, Introductions, Australian Computer Society – Daniel Brown

•4:15PM – SharePoint 2013 Workflow Manager – Mai Omar Desouki [MCP, MCTS MCPD, MCITP, MCT]

If you have been using Workflows in SharePoint Designer 2010, then you need to attend this session, because Workflows in SharePoint Designer 2013 has lots of enhancements that you will need to be aware of. If you were building Workflows, then you need to see the changes, there are big changes and new actions & conditions in SharePoint Designer 2013 that we will not only talk about but we will see it in a demo.

Participants will gain an understanding of the new Workflow Manager in SharePoint Designer 2013. They will be able to create no code solutions in a matter of minutes. SharePoint Power Users will be able to create workflows with no help from developers. Attendees should have basic knowledge of what is Workflows. In this session we will not say what is Workflow but we will see what’s new in Workflows in SharePoint Designer 2013.

Join the group on facebook: https://www.facebook.com/ASPUG

Website: http://www.sharepointusers.org.au/Adelaide/default.aspx

LinkedIn: http://www.linkedin.com/groups/Adelaide-SharePoint-User-Group-80657

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Email
  • Print
  • Reddit

Like this:

Like Loading...

I am speaking in Abu Dhabi SharePoint Saturday

29 Sunday Sep 2013

Posted by Mai Omar Desouki in Events I am Speaking In, PowerShell, SharePoint 2013

≈ 3 Comments


The event is on 5 Oct 2013 from 8 AM to 5 PM in Abu Dhabi. Once venue is published by the organizer, will update this post so save the link & make sure you check it again this week.

My session will be about “Automate variations for SharePoint 2013”

The whole session will be about what to write in PowerShell Script & C# to automate variation.

I will show a demo & provide tools to make it easier too.

Session description: SharePoint Variations gives a Multilingual SharePoint sites which allows copying sites and content from the source variation label to one or more target variation labels. The real value from this session is to fasten your deployment, make it reliable, stable, faster & easier to do with some lines of PowerShell Scripts. In this session we will learn the best practice when it comes to deployment with Variations. First we will write code in C# & convert it to PowerShell for Variations. Will show a demo for the whole process for SharePoint 2013 Variations from scratch till the end by keeping an eye on the Variation Jobs from PowerShell Scripts. You will know the Tips & Tricks for the variation including settings, configuring variation, creating labels & creating hierarchies; all from PowerShell, finally it is important to know the best practices for working with variations and with deploying it.

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Email
  • Print
  • Reddit

Like this:

Like Loading...

European SharePoint Conference – ADMIT 2 for 1

26 Thursday Sep 2013

Posted by Mai Omar Desouki in SharePoint 2013

≈ Leave a comment


The next European SharePoint Conference http://www.sharepointeurope.com will be hosted in Barcelona Spain from 5th to 8th of May 2014.


As ESPC is already shaping up to the most anticipated SharePoint event in Europe next year, don’t miss out on the opportunity to get your conference pass half price. Apply for your 2 for 1 voucher now and start making plans to attend the largest SharePoint event in Europe and join our vibrant SharePoint Community for four days of learning, idea sharing, networking and fun! Book Now and Pay later!

Be a part of ESPC14, Barcelona, 5- 8 May

Apply Now>> http://bit.ly/1dmnKXo

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Email
  • Print
  • Reddit

Like this:

Like Loading...

Client object model doesn’t support creating SharePoint 2013 Alerts!!

17 Tuesday Sep 2013

Posted by Mai Omar Desouki in SharePoint 2013

≈ Leave a comment


One of things that I looked at passionately thought it might change to the better is the API for SharePoint 2013 Alerts but unfortunately nothing new from 2010!

I had a thread on msdn last year http://social.technet.microsoft.com/Forums/sharepoint/en-US/43d801d4-0e89-4ec5-9d6c-b36f8106fc0d/how-to-create-and-delete-alerts-using-client-object-model-or-even-web-services

The problem is creating SharePoint Alert in client object model.

In Client Object Model, there is very little that you can achieve when it comes to alerts.

There is a ChangeAlert class, but it works on existing SPAlerts. But other than this, I could not really find any other information.

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.changealert.aspx

And someone replied with another idea is to call Alerts Web Service in JavaScript, ya but it doesn’t do anything more than what Client Object Model does!!

http://msdn.microsoft.com/en-us/library/websvcalerts.alerts_methods

So why I wanted to create & delete Alerts from Client Side:

  1. Because SharePoint Apps doesn’t support server side code.
  2. Because I needed something fast that doesn’t require deployment & IISRESET.

And I also had a good idea which is calling the “New Alert” SharePoint OOB dialog that also will give user options for when to alert the user and on what.

  • To open it, from the ribbon in the library click “Alert Me” then click “Set alert on this list”, then dialog will be opened.

Now I really wanted to call this “New Alert” dialog from a hyperlink with bell icon.

So I did a web part shows the current logged in user what lists or libraries the user had subscribed for it.

It will show gold bell icon beside the list name; which means you subscribed for this list.

If there is silver color bell beside the list name; this means you didn’t subscribe to this list. To subscribe, you can click the list name, it will popup the “New Alert” SharePoint OOB model dialog. Also in this dialog you will have many options of when to receive alerts and on what changes exactly.

In the Tool Part of the Web Part, user can select the lists on current site that the user have permission to only to see it displayed in the web part to subscribe to it.

To get the URL for this “New Alert” dialog, when you open it from any list or library as mentioned above, just right click;

This is what we get http://sp2013dev/_layouts/15/SubNew.aspx?List=%7B79C60817%2D2CDC%2D4636%2D9302%2D80A35AEB85EA%7D&Source=http%3A%2F%2Fsp2013dev%2FLists%2FCalendar%2Fcalendar%2Easpx&IsDlg=1

Basically this is the URL http://sp2013dev/_layouts/15/SubNew.aspx then there is query strings but we need only one query string to give it to this URL, which is the list ID, we don’t care about the “Source”

In the Tool Part class I added a CheckBoxList to select multiple lists, the display is the List Title and the value is its GUID; like this,

foreach (SPList list in lists)

{

if (!list.Hidden)

chkList.Items.Add(new
ListItem(list.Title, list.ID.ToString()));

}

Then I added the CheckBoxList to a dictionary in the Tool Part [I did this for a reason that was required, let me remember and update the post] just remember I am using this dictionary to display the list names.

On the link call the “New Alert” OOB SharePoint dialog from JS, here is the function,

function CallAlert(ListID) {


var options = SP.UI.$create_DialogOptions();


var uri = “/_layouts/SubNew.aspx?List=” + ListID;

options.url = encodeURI(uri);

options.height = 700;

options.width = 650;

options.dialogReturnValueCallback = Function.createDelegate(


null, CloseCallback);


void (SP.UI.ModalDialog.showModalDialog(options));

}

I am calling this function from server side code,

foreach (var dic in DicList)

{

if (web.Lists[new
Guid(dic.Key)].DoesUserHavePermissions(SPContext.Current.Web.CurrentUser, SPBasePermissions.ViewListItems))

{

if (!alertNames.ContainsValue(dic.Value))

{

writer.Write(AlertResource.GetLocalizedString(DIVFOREACH, CultureInfo.CurrentUICulture.LCID));

writer.Write(“<a class=’divforeach’ href=javascript:CallAlert(‘” + dic.Key + “‘)><img class=’imgAlert’ src=’/Assets/AlertsAssets/spalertdimmed.png’ style=’border:none’/>” + dic.Value + “</a><br/>”);

writer.Write(“</div>”);

}

}

}

In the above code, I am calling the method “DoesUserHavePermissions()” cause in case user doesn’t have permission to this list, it won’t be displayed. Then I am looping using foreach around the CheckBoxList to see what is selected from CheckBoxList that was added to the dictionary in the Tool Part.

Also in the above code, I am adding the image “Bell” icon beside the hyperlink.

The Project is on CodePlex https://spalertme.codeplex.com/

………………………………………………. That’s it.

Don’t hesitate to contact me for any questions: mai_omar_86@live.com

EnjoooOOOooy SharePointing!

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Email
  • Print
  • Reddit

Like this:

Like Loading...

SharePoint Saturday Abu Dhabi 2013

01 Sunday Sep 2013

Posted by Mai Omar Desouki in SharePoint 2013

≈ Leave a comment

Tags

Abu Dhabi, FaceBook, Microsoft SharePoint, Middle East, SharePoint, SharePoint 2013, SharePoint Saturday, United Arab Emirates


Event Details

Saturday, October 5, 2013 from 8:00 AM to 5:30 PM (GST)

Abu Dhabi’s Premier SharePoint Technology and Enterprise Content Management Community Event, Featuring local and internationally acclaimed speakers, this event is not to be missed.

Come and join SharePoint MVP’s, Architects, Administrators, Developers, Business Users and other Professionals who work with SharePoint.

SharePoint Saturday is FREE and open to the public for registration.

Join us on FaceBook at SharePoint Saturday Abu Dhabi 2013 and follow us at @spsabudhabi

For details, visit SharePoint Saturday Abu Dhabi 2013.

Event location and other details will be posted soon.

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Email
  • Print
  • Reddit

Like this:

Like Loading...

Blog Visitors

  • 82,365 Visitors

Categories

  • About me (1)
  • Microsoft Teams (3)
    • SharePoint Online (1)
  • Microsoft Viva (1)
  • Migration (2)
  • OneDrive for Business (1)
  • Parents (1)
  • Power Platform (1)
  • SharePoint 15 (5)
  • SharePoint 2010 (56)
    • Content Types (1)
    • Developer Dashboard (1)
    • Document Set (1)
    • Events I am Speaking In (2)
    • External Lists (1)
    • FAQ (2)
    • FBA (1)
    • Form Based Authentication (1)
    • Integration of CRM 2011 with SharePoint 2010 (1)
    • JQuery (1)
    • Master Page (1)
    • My Site (1)
    • PowerShell (3)
    • SharePoint Administration (5)
    • SharePoint Branding (1)
    • SharePoint Customization (5)
    • SharePoint Designer (4)
    • SharePoint Designer Workflow (1)
    • SharePoint Events (2)
    • SharePoint Online (1)
    • SharePoint Permissions (1)
    • SharePoint Workflow (1)
    • User Profile (2)
    • User Profile Sync (1)
    • Videos (1)
    • WebParts (1)
    • Workflow (1)
  • SharePoint 2013 (91)
    • Cloud App (1)
    • Event Handler (1)
    • iPad (1)
    • IPhone (1)
    • Napa (1)
  • SharePoint Updates (1)
  • Visual Studio 2012 (3)
  • Viva Engage (1)
  • Yammer (1)

Tag Cloud

About me Document Set Events I am Speaking In FAQ FBA Form Based Authentication JQuery Master Page Microsoft Teams Migration My Site PowerShell SharePoint 15 SharePoint 2010 SharePoint 2013 SharePoint Administration SharePoint Branding SharePoint Customization SharePoint Designer SharePoint Designer Workflow SharePoint Events SharePoint Online SharePoint Permissions SharePoint Workflow User Profile User Profile Sync Videos Visual Studio 2012 WebParts Workflow

Calendar

September 2013
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Aug   Oct »

Archive

  • September 2022 (2)
  • August 2022 (2)
  • July 2022 (2)
  • March 2022 (1)
  • August 2021 (2)
  • September 2020 (2)
  • May 2020 (2)
  • April 2020 (6)
  • March 2020 (1)
  • September 2019 (2)
  • July 2015 (1)
  • May 2015 (3)
  • April 2015 (1)
  • March 2015 (1)
  • February 2015 (2)
  • January 2015 (1)
  • October 2014 (1)
  • September 2014 (3)
  • June 2014 (7)
  • May 2014 (5)
  • April 2014 (4)
  • March 2014 (3)
  • February 2014 (1)
  • January 2014 (2)
  • December 2013 (6)
  • November 2013 (5)
  • October 2013 (6)
  • September 2013 (5)
  • August 2013 (5)
  • July 2013 (5)
  • June 2013 (2)
  • May 2013 (2)
  • February 2013 (2)
  • January 2013 (1)
  • October 2012 (2)
  • September 2012 (7)
  • August 2012 (15)
  • July 2012 (5)
  • June 2012 (2)
  • May 2012 (4)
  • April 2012 (2)
  • March 2012 (1)
  • August 2011 (3)
  • July 2011 (15)

Blog at WordPress.com.

  • Follow Following
    • Mai Omar Desouki
    • Join 63 other followers
    • Already have a WordPress.com account? Log in now.
    • Mai Omar Desouki
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
%d bloggers like this: