logo-powershell

Update SharePoint groups in all webs in a SiteCollection using PowerShell

Say you have a ton of subwebs in a sitecollection. Each web have unique permissions and unique groups. You would like to update alle membergroups to have Contribute permissions, instead of Edit permissions. If you need to update all ownergroups or visitorgroups, just change the script accordingly. You do it like this: Source: http://sharepoint.stackexchange.com/questions/70071/need-to-remove-permission-level-from-a-sharepoint-group-using-powershell

office-365-logo

Office 365 public website – going down

I’ve blogged about the discontinuing of public websites a while back and I promised that I would write an update, when there was something to update on. And guess what! Somethings updating. When the changes was announced, there was a small outcry from a few partners, but really nothing major. Then again, it’s not like Microsoft […]

office-365-logo

Office 365 shuts down public website feature

Using Office 365 for a public website have always been a simple but not so sweet ride. Microsoft never got that one right and most likely, that is why they are discontinuing that part of Office 365. According to this support document existing websites will have two years to migrate and new tenants won’t have […]

SPServer2013Logo

Formatting dates in Itemstyle.xsl

Insert this line at the top xmlns:ddwrt=”http://schemas.microsoft.com/WebParts/v2/DataView/runtime” That will give you a header looking like this: Then use the “ddwrt:FormatDate” to show the date i various ways: <xsl:value-of select=”ddwrt:FormatDate(@dato, 1030, 3)”/> <xsl:value-of select=”ddwrt:FormatDateTime(string(@Publiceret), 1030, ‘dd. MMM. yyyy’)”/> <xsl:value-of select=”ddwrt:FormatDate(string(@Dato), 1033, 7) “/> List of all LCID’s : http://support.microsoft.com/default.aspx?id=221435 Custom date and time formats: http://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx Formatflags

SPServer2013Logo

SPEndpointAddressNotFoundExecption when publishing SharePoint 2013 workflows

Are you getting this error: (Microsoft.SharePoint.SPEndpointAddressNotFoundException: There are no addresses available for this application.) when publishing SharePoint 2013 workflows? try these steps to fix it: If you use HTTP: Register-SPWorkflowService –SPSite “http://mysitecollection” –WorkflowHostUri “http://server.domain.com:12291” –AllowOAuthHttp -force If you use HTTPS: Register-SPWorkflowService -SPSite “https://myserver/mysitecollection” -WorkflowHostUri “https://server.domain.com:12290” Check that the SharePoint Service “App management Service” is started […]

SPServer2013Logo

Viewing Workflow for item, fails after installing Service Pack 1 for SharePoint 2013

If your workflows are working just fine, but you are unable to get UI-access to the workflows in SharePoint, because if this error: Sorry, something went wrong Method ‘StartWorkflowOnListItem’ in type ‘Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider’ from assembly ‘Microsoft.SharePoint.WorkflowServices, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ does not have an implementation. and your ULS logs gives your these errors: Application error when access […]

SPServer2013Logo

Create link to new folder and item actions in modal window in SharePoint 2013

Create link to “New Item” <a href=”javascript:OpenPopUpPageWithTitle(‘</site/library>/_layouts/15/Upload.aspx?List={<List-GUID>}&RootFolder=&IsDlg=1′,RefreshOnDialogClose,null,null,'<Title>’);”>Add item</a> Create link to “New Folder” <a href=”javascript:OpenPopUpPageWithTitle(‘</site/library>/Forms/Upload.aspx?RootFolder=&Type=1&IsDlg=1′,RefreshOnDialogClose,null,null,'<Title>’);” >New Folder</a>

SPServer2013Logo

Pop-up modal window SP2013

Simple javascript command to open the dialog modal form function OpenPopUpPage(url, callback, width, height) function OpenPopUpPageWithTitle(url, callback, width, height, title) function OpenPopUpPageWithDialogOptions(dialogOptions) DialogOptions supports: Options Property Description title A string that contains the title of the dialog. url A string that contains the URL of the page that appears in the dialog. If both url and html are specified, url takes precedence. […]

SharePoint_Designer

Clear SharePoint Designer Cache

It can happen that SharePoint Designers local files gets out-of-sync. For some reason hitting the update button won’t help. Easy fix: Delete the local cache by deleting the contents of these two folders: %APPDATA%\Microsoft\Web Server Extensions\Cache %USERPROFILE%\AppData\Local\Microsoft\WebsiteCache