Posts

Showing posts from 2014

Issues with OnWorkflowItemChanged

Image
I've recently had a few issues with using OnWorkflowItemChanged. 1) I found that adding OnWorkflowItemChanged seems to cause lock ups and delays in my workflow. I decided to use an alternative to OnWorkflowItemChanged or get rid of it from my workflow and utilize SharePoint event receivers. Workflow locks because of OnWorkflowItemChanged: http://blogs.msdn.com/b/yvan_duhamel/archive/2009/11/25/workflow-locks-because-of-onworkflowitemchanged-event-handler.aspx?CommentPosted=true#commentmessage Alternative to OnWorkflowItemChanged: https://www.thorprojects.com/blog/archive/2010/02/22/onworkflowitemchanged-and-workflow-event-delivery-problems.aspx I wasn't able to get the linked alternative to OnWorkflowItemChanged to work in a custom activity, so I wound up creating an event receiver for my list. Here's the code excerpts: Step 1: Create an Event Receiver A basic list event receiver before adding any code looks like below: using System; using System

MOSS 2010: Run JavaScript OnSharePointReady

I was working a MOSS 2010 and a Business Connectivity Services (BCS) external list.  One of the columns was meant to be a link rather than just displayed as a string. So, I wanted to write a script to modify the Urls and change them to links via JQuery that I could add to the page via a Content Editor Web Part. The tricky part is that SharePoint dynamically loads the BCS external list, so you have to wait until SharePoint is done loading the list and generates the list on the page before making modifications to the DOM. After some searching, I found a link which referenced using the REST model. http://zimmergren.net/technical/sharepoint-2013-business-connectivity-services-talking-to-your-external-lists-using-rest http://msdn.microsoft.com/en-us/library/fp142380(v=office.15).aspx To add a function to run when the DOM is fully loaded: _spBodyOnLoadFunctionNames.push("YourOnLoadFunctionName");   Then in the function, you run the following to tell the code to

Running an Active Directory Query Tool From Windows 7

Image
You can launch a Active Directory Query Window that let's you look up users in your domain by running the following command from the command prompt: %systemroot%\system32\rundll32.exe dsquery,OpenQueryWindow     You may be able to use this to update your AD e-mail information.  AD allows you to update your personal information, though you may not be able to change other user's information unless you have additional privileges.