Answered by:
Can I use a workflow to share a record in CRM 2011?

Question
-
*NB We are using CRM 2011 online*
I have a custom field on the Order entity called 'Salesperson', which is a user lookup. What I want to do is share the Order (NOT assign) with the user in the 'Salesperson' field.
Obviously assigning the record with a workflow is easy, but there doenst seem to be any way to share the record.... can it be done? As we use CRM 2011 online we cannot use custom workflow assemblies.
Thanks
Tuesday, March 29, 2011 2:44 PM
Answers
-
You can get around the lack of custom workflow activities by creating a custom entity and then having a sandboxed plugin react to a message.
In your specific example, you might create a new custom entity called Share Order Request with two 1:N relationships (one to systemuser and one to order) and then register a plug-in to fire on Create of that entity. Within the plugin, use the OrganizationService to perform the Share as normal.
You can then create an instance of your Share Order Request from within the workflow.
-Corey
- Proposed as answer by Corey O'Brien Tuesday, March 29, 2011 2:56 PM
- Marked as answer by BusinessWorks Wednesday, March 30, 2011 8:19 AM
Tuesday, March 29, 2011 2:55 PM -
See this article which explains how you can achieve custom workflow actions in CRM Online: http://blogs.msdn.com/b/crm/archive/2010/11/05/custom-workflow-actions-in-microsoft-dynamics-crm-2011-online.aspx
- Proposed as answer by Gonzalo Ruiz RModerator Wednesday, March 30, 2011 12:25 AM
- Marked as answer by BusinessWorks Wednesday, March 30, 2011 8:19 AM
Wednesday, March 30, 2011 12:25 AMModerator
All replies
-
You can get around the lack of custom workflow activities by creating a custom entity and then having a sandboxed plugin react to a message.
In your specific example, you might create a new custom entity called Share Order Request with two 1:N relationships (one to systemuser and one to order) and then register a plug-in to fire on Create of that entity. Within the plugin, use the OrganizationService to perform the Share as normal.
You can then create an instance of your Share Order Request from within the workflow.
-Corey
- Proposed as answer by Corey O'Brien Tuesday, March 29, 2011 2:56 PM
- Marked as answer by BusinessWorks Wednesday, March 30, 2011 8:19 AM
Tuesday, March 29, 2011 2:55 PM -
You can try this workflow extension. It was developed for CRM 4.0 but 2011 should support most of the 4.0 Plugins so it's possible that it will work.
http://crm40sharestep.codeplex.com/
KG
My Dynamics CRM Blog: http://bovoweb.blogspot.comTuesday, March 29, 2011 4:20 PM -
You can try this workflow extension. It was developed for CRM 4.0 but 2011 should support most of the 4.0 Plugins so it's possible that it will work.
http://crm40sharestep.codeplex.com/
KG
My Dynamics CRM Blog: http://bovoweb.blogspot.comTuesday, March 29, 2011 6:16 PM -
See this article which explains how you can achieve custom workflow actions in CRM Online: http://blogs.msdn.com/b/crm/archive/2010/11/05/custom-workflow-actions-in-microsoft-dynamics-crm-2011-online.aspx
- Proposed as answer by Gonzalo Ruiz RModerator Wednesday, March 30, 2011 12:25 AM
- Marked as answer by BusinessWorks Wednesday, March 30, 2011 8:19 AM
Wednesday, March 30, 2011 12:25 AMModerator -
You can try this workflow extension. It was developed for CRM 4.0 but 2011 should support most of the 4.0 Plugins so it's possible that it will work.
http://crm40sharestep.codeplex.com/
KG
My Dynamics CRM Blog: http://bovoweb.blogspot.com
--DoddFriday, May 6, 2011 2:43 PM