Thursday, April 9, 2015

Powershell ISE copy paste issue

In powershell ISE there is a strange copy paste issue, ctrl+c and ctrl+v does not work as expected if a background powershell management shell window is open. Closing the window fixes this problem temporarily

Thursday, April 2, 2015

Configuring SharePoint menu items through powershell

SharePoint menu items can be easily configured through powershell scripts, however I found out that Global navigation nodes are empty. The blog below discusses the reason behind it and a solution to update navigation nodes.

http://blog.mastykarz.nl/programmatically-configuring-menu-items-sharepoint-2010/

Wednesday, April 1, 2015

Timezone offset comparisons in CAML with UTC parameter

While querying for events in a list which fall under a specified time period, the infopath form works correctly in client side editor, but fails when deployed to a list in SharePoint 2010 server. This was due to daylight saving time conversion of time values entered in our custom infopath form while generating CAML queries. To correctly check values in CAML query a paramter StorageTZ has to be added to the CAML query date time value as shown below

<Where>
  <Gt>
    <FieldRef Name='Created' />
    <Value Type='DateTime' IncludeTimeValue='TRUE' StorageTZ='TRUE'>
      2012-10-24T21:30:46Z
    </Value>
  </Gt>
</Where>

Secure micro services using jwt and ocelot

  Secure Microservices Using JWT With Ocelot in .NET Core (code-maze.com)