This project has moved and is read-only. For the latest updates, please go here.

Problem sharing record with team

Oct 20, 2015 at 5:42 PM
I have setup this solution in our sandbox environment and was able to configure a workflow without issue, however I get the following error from the workflow after I attempt to run it:

Plugin Trace:

[msdyncrmWorkflowTools: msdyncrmWorkflowTools.ShareRecordWithTeam]
[msdyncrmWorkflowTools ( msdyncrmWorkflowTools.ShareRecordWithTeam]

Load CRM Service from context --- OK

Error Message:

Unhandled Exception: Microsoft.Crm.CrmException: Unexpected exception from plug-in (Execute): msdyncrmWorkflowTools.ShareRecordWithTeam: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Microsoft.Crm.Sandbox.SandboxCodeUnit.Execute(IExecutionContext context)
at Microsoft.Crm.Workflow.Services.ProxyCustomActivity.Execute(CodeActivityContext executionContext)

Could you tell me what I'm missing? This is using an instance of CRM Online. (not hosted locally)
Oct 23, 2015 at 11:18 PM
Hi punchyghost, check the parameter named "Sharing Record URL", because I think it's not in the correct format.
ypu must use the field "Record URL (Dynamic)"

hope this helps
Marked as answer by demian_rasko on 4/2/2016 at 1:34 AM
Nov 2, 2015 at 5:43 PM
That's a rather embarrassing mistake on my part. That resolved the issue, thank you very much.