Saturday, April 11, 2015

New SharePoint CSOM update for Office 365

Wow. This is such a great build. Loving the new additions added in the new SharePoint CSOM for Office 365. Since a year, was submitting the feedback and waiting for some features has to be included in the CSOM API and here they are. You can do even more with the new API methods and classed added. The package will be available via Nuget.

Version: 16.1.3912.1204.

The major feature I really impressed are:
  • Manage regional settings of a site
  • Manage language settings of a site
  • Manage auditing settings of a site
  • Support for upcoming enhanced migration APIs
  • Secondary contact in site collection level
  • Sharing settings
  • Tenant
The auditing settings API is a major help for me along with the Sharing settings. There are over 50 methods added across and the major ones which might help you are:
  • Accessing document set properties, documents
  • Added classes related to Search PushTenant
  • Additional properties for Publishing classes
  • Accessing AppCatalog
  • Audit information
  • File, Folder methods and properties
  • Many Web and Site properties and methods. 
If you are feeling like you are unable to implement just because of product limitation then it's for you. Go and have a look at the new update and start building the examples. 

Get more details about complete CSOM methods and properties here.

Wednesday, April 8, 2015

Show user profile pictures in SharePoint Hosted Apps

This is the issue which killed more than a week of my time. Many users are facing it too and I see the same question in almost all the forums. Proud to tell that the solution which I have found is the most usable one for SharePoint Hosted App world.

In SharePoint Hosted Apps the cross-domain calls are limited. The issue I am facing in SharePoint Online Hosted Apps was:

I have created a SharePoint hosted app which has the code to show the user profile picture. I have tried below options for it:

  1. Queried the REST API user profile and then 
    1. used the "PictureUrl" from user profile metadata. But, no luck with this. Then,
    2. used the "UserProfileProperties -> PictureURL attribute in the results. Still, there is no luck. 
  2. Used the Outlook Office 365 profile picture link: https://outlook.office365.com/owa/service.svc/s/GetPersonaPhoto?email=useremail&UA=0&size=HR64x64. 
    1. But, the url is an external site link the picture failed to load.
  3.  Used the UserPhoto.aspx page in the _layouts folder: /_layouts/15/userphoto.aspx?size=L&accountname=encodeduseraccountname.
    1. I have tried with both hosted web url and app web url. But, no luck. 
    2. But, if I create a App Part and in the app part the same image path shows perfectly. So, the issue is only in the App landing page. 
Published the issue in all social networking sites, forums for help, but no luck. Many people come up with different ideas, but nothing worked. 

Solution:
After spending the good amount of time in analyzing the UserPhoto.aspx, and how it works, I was able to find a way to download the image. 

UserPhoto.aspx accepts many parameters. We always use the AccountName querystring to download the image of the user. But, it also accepts other paramters like "url". 

So, the solution I used here is: 
{appweburl}/_layouts/15/userphoto.aspx?size=L&url={encodeduserprofilepictureurl}

Note: You must query the User profile REST API for the user to get the user profile picture url and then encode that picture url and then replace the string {encodeduserprofilepictureurl} with that.

This one given me the output I wanted. Now, the pictures are showing everywhere, inside the app and also in app part... 

Tuesday, March 10, 2015

Download Visual Studio 2015 Technical Preview

Visual Studio 2015 has plenty of UI improvements and UI debugging features. It has a great Javascript editor and Visual Studio emulator for Android. Many more other features which I also need to dig into.

Go and get it here: Download Visual Studio 2015 CTP 6

Update:
See the Visual Studio Features Timeline here:
https://www.visualstudio.com/en-us/news/feature-timeline-vs

Wednesday, February 25, 2015

C# is allowed in Office 365 API's Sandbox

So far in Office 365 API Sandbox we have written only javascript to call the API's and deploy the changes. It is very limited in terms of achieving the goals and against some complex requirements. So, after some additional good work from Office 365 team, there is a release of C# code support in API sandbox. This is a brilliant idea and good help for developers to quickly write code and check on the fly. I will update you more findings on it soon.

Read more details here Office 365 API Sandbox now allowing C# Code

Friday, February 20, 2015

Office 365 roadmap

Dear technology enthusiast, how many of you are actually updated with the new technologies / implementations around? Are you one of the person who first get to know and learn things and keep up to date yourself in this technology world? I follow the blogs and roadmap to know everything what's happening around to me.

If you also like me, then you must bookmark the link http://roadmap.office.com/en-us

Get your OneNote for free

OneNote is my best and preferred application to take notes since years. I personally recommend to everyone of my readers. It's now available for free with plenty of options and it has the apps in every device Desktop, Mobile, Tablets. So, get one and sync all your notes everywhere.

Get your free download copy at Download.

SharePoint Product updates are now part of Windows updates

Uhh.. I am not liking it. Why SharePoint product should be a part of Windows Updates? Windows is Operating System, SharePoint is a product from Microsoft. I am not sure how they merge the updates into one. I think this way because, consider below scenarios:

  1. I have enabled the auto updates on my server and enabled the scheduled updates installed at some specific time. Now, along with Windows updates, all my SharePoint Patches also installed. But, if I am on FARM then I have to make sure the patches are installed in all servers in the FARM.. It's a big dependency. 
  2. Now, if all servers installed the SharePoint updates/patches then we have to make sure the PSConfig should be run in all SharePoint Servers. 
The only advantage I see is, the updates install automatically and my SharePoint server is upto date. But, this will not impress me anywhere. If needed I can download and install on servers I needed as a Product upgrade. 

I am not a fan for this new decision they have made. Make sure to turn off Windows updates automatically option on Windows Servers where SharePoint installed and run the updates when only you really need to. 

And starting this February 2015 CU they are part of Windows Updates. So, you might already got the updates. Please check once your Windows Updates. 

OneDrive delivers unlimited cloud storage for Office 365 subscribers

If you are a Office 365 subscriber then you must feel great about it. I feel great and very happy news for me. They already started rolling out and soon I am gaining unlimited storage to keep all my personal, organization related stuff there. So, wherever I go I don't feel like I lost something.

Thanks Microsoft for the wonderful thinking at low cost. We know you understand us well. Here you go OneDrive for everyone. Read more at: OneDrive and unlimited storage

Thursday, February 19, 2015

Free eBooks from Microsoft on Azure, Windows Server, Sql Server and Windows

Microsoft is giving many ebooks for free. If you are on below technical stack then please use the links below and download them for free.
  • Windows Azure
  • Sql Server 2014
  • Windows
  • Azure
  • App Development
  • Microsoft System Center
Enjoy reading and gain the extra knowledge for better career. :)