Thursday, August 14, 2014

Task list assigned to user email notofication enabling

Hi all, 
today I found a great information in the Internet that saved me from headache, hope it will help you too

Task list assigned to user email notofication enabling:

In SharePoint 2013 you will find that the option to enable email notification for Tasks list is no longer there. It used to be under List Settings > Advanced Settings > Send e-mail when ownership is assigned? (Yes/No). It is still there for Issues list in SharePoint 2013 however.
The good news is you can still enable it for Tasks list in SharePoint 2013, and it still works. The only thing is you’ll need to use PowerShell :). Use the script below to turn on email notification for a specific list:

$web = Get-SPWeb "http:///sharepoint/web"
$list = $web.Lists.TryGetList("Tasks")
$list.EnableAssignToEmail = $true
$list.Update()

Once email notification is enabled for the Tasks list, you will get the good old “The content of this item will be sent as an e-mail message to the person or group assigned to the item.” message when creating or editing an item in the list.
Note: Before you run this code, make sure that you have configured outgoing mail for the web application though. The option to enable email notification for Issues list does not appear in the UI until this is configured. So it’s best to configure this before running the PowerShell code for Tasks list

Friday, August 8, 2014

SharePoint 2013 JavaScript runtime error: 'NotifyScriptLoadedAndExecuteWaitingJobs' is undefined

JavaScript runtime error: 'NotifyScriptLoadedAndExecuteWaitingJobs' is undefined

I recently ran into the following error when working with a SharePoint 2013 Client Web Part (App Part) while accessing the term store using
JavaScript runtime error: 'NotifyScriptLoadedAndExecuteWaitingJobs' is undefined.

<script type="text/javascript" src="../Scripts/jquery-1.8.2.min.js"></script>
 <script type="text/javascript" src="/_layouts/15/MicrosoftAjax.js"></script>
 <script type="text/javascript" src="/_layouts/15/init.js"></script>
 <script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script>
 <script type="text/javascript" src="/_layouts/15/sp.js"></script>
  <script type="text/javascript" src="/_layouts/15/SP.UserProfiles.js"></script>

Solution:

Need to add init.js