Showing posts with label SharePoint 2013. Show all posts
Showing posts with label SharePoint 2013. Show all posts

Wednesday, December 09, 2015

How to get the current List GUID within your SharePoint Designer Workflow



You can get the Current List GUID by following the 4 simple steps below within your SharePoint Designer Workflow:

1) Use the "Extract substring from End of String" Action to copy 108 characters from the end of the Workflow Context: Workflow Status URL (Output to Variable:WorkflowStatusURLWithListGUID)


2) Use the "Extract substring from Start of String" Action to copy 44 characters from start of the WorkflowStatusURLWithListGUID (Output to Variable:ListGUID)

3) You can now use the Workflow Variable ListGUID within your custom actions or to construct dynamic strings where Current List GUID is required

For e.g. A Common use of the List GUID is when using workflows associated with SharePoint Calendar list and there is a requirement to export the SharePoint Event to *.ics file (so that the SharePoint Event can be added by user to his/her personal Outlook Calendar). To do this add a hyperlink to a URL similar to this within email Action:

<insert workflow context: current site url>/_vti_bin/owssvr.dll?CS=109&Cmd=Display&List=<insert List GUID here>&CacheControl=1&ID=<insert current item id here>&Using=event.ics

Friday, September 26, 2014

/_layouts/15/osssearchresults.aspx not returning any search results when Searching "This Site"

I have commonly observed this issue being researched on a few times where a user selects "This Site" from Search scope/nvaigation dropdown and tries to search for a specific content in the current site, the "No results found" message is displayed. The proble is not with crawling or Search configuration but is with "Alternate Access Mappings" (AAM).

To fix the above issue and see results when searching "This Site" ensure that you have set the URL  for default zone same as URL that you are using to access the site using your browser. For example if you are using https://intranet.mycompany.com as URL to access your Intranet using a browser then ensure that the above URL is set in Alternate access mapping as your Default Zone (refer to <your SharePoint central admin URL>/_admin/EditOutboundUrls.aspx)