locked
How send email on Task Activity Status change using system workflow RRS feed

  • Question

  • On Task Acitivty there is subgrid of Engineers Entity.
    when I add Task Actitviyt on Contact and Add engineers on subgrid
    I made a workflow that run when Task Status change it send Email to contact.
    but I want to send mail to Engineers also that selected in Subgrid on Task Activity.
    what should i do to send email

    Muhammad Sohail

    Friday, October 4, 2013 11:37 AM

All replies

  • Hi,

    Use the distribute workflow to run a child workflow on the engineers of an activity. For this purpose, after you run your main workflow on the task, use the mentioned workflow activity to run multiple child workflows. You have to create the child workflows on the engineers entity before the main workflow to be able to reference it.



    My Weblog | My Website

    Friday, October 4, 2013 1:34 PM
    Moderator
  • I download distribute workflow your suggested solution and Extract it and From Plugin Registration tool register the "Crm2011DistributeWF.dll" file but getting error

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Action failed for assembly 'Crm2011DistributeWF, Version=1.2.0.1, Culture=neutral, PublicKeyToken=4a902766b5361155': Assembly must be registered in isolation.
    Detail: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <ErrorCode>-2147220906</ErrorCode>
      <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
      <Message>Action failed for assembly 'Crm2011DistributeWF, Version=1.2.0.1, Culture=neutral, PublicKeyToken=4a902766b5361155': Assembly must be registered in isolation.</Message>
      <Timestamp>2013-10-21T09:08:41.9341155Z</Timestamp>
      <InnerFault>
        <ErrorCode>-2147220906</ErrorCode>
        <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
        <Message>Action failed for assembly 'Crm2011DistributeWF, Version=1.2.0.1, Culture=neutral, PublicKeyToken=4a902766b5361155': Assembly must be registered in isolation.</Message>
        <Timestamp>2013-10-21T09:08:41.9341155Z</Timestamp>
        <InnerFault i:nil="true" />
        <TraceText i:nil="true" />
      </InnerFault>
      <TraceText i:nil="true" />
    </OrganizationServiceFault>

    Server stack trace:
       at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

    Exception rethrown at [0]:
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.Xrm.Sdk.IOrganizationService.Create(Entity entity)
       at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.CreateCore(Entity entity)
       at Microsoft.Crm.Tools.PluginRegistration.RegistrationHelper.RegisterAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly)
       at Microsoft.Crm.Tools.PluginRegistration.PluginRegistrationForm.btnRegister_Click(Object sender, EventArgs e)

    when -2147220906 search this error it give me

    80040256 CrmSecurity Error A failure occurred in CrmSecurity.


    plz suggest other solution for this prob...


    Muhammad Sohail



    • Edited by sohail450 Monday, October 21, 2013 9:31 AM
    Monday, October 21, 2013 8:29 AM