Custom Workflow Activity not showing in Plugin Registration

Could anybody suggest what I am doing wrong here?
I have created a Custom Workflow Activity using this sample
Create a custom workflow activity. But this is not showing up as a plugin/activity type in Plugin Registration Tool. See image below:
My sample code for the activity below:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Activities;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Workflow;
namespace TestCustomWorkflowActivity2
public class SampleCustomActivity : CodeActivity
protected override void Execute(CodeActivityContext executionContext)
//Create the tracing service
ITracingService tracingService = executionContext.GetExtension<ITracingService>();
//Create the context
IWorkflowContext context = executionContext.GetExtension<IWorkflowContext>();
IOrganizationServiceFactory serviceFactory = executionContext.GetExtension<IOrganizationServiceFactory>();
IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);
Platform
Dynamics CRM 2013 On Premises v 6.1.2.112 (SP1 UR2 installed)
Dynamics CRM 2015 Online
.NET Framework version
4.0
Thanks and Regards,
blog: <a href="http://technologynotesforyou.wordpress.com">http://technologynotesforyou.wordpress.com</a> | skype: ali.net.pk

Hi,
I can see only one difference with my code:
I placed using detectives in namespace:
namespace Crm_RTB_NewAcc.Workflow
using System;
using System.Activities;
using System.ServiceModel;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Workflow;
using Microsoft.Xrm.Sdk.Query;
public sealed class GetOrgLicense : CodeActivity
// Define Inputs/Outputs
[Output("Count")]
public OutArgument<int> Count { get; set; }
protected override void Execute(CodeActivityContext executionContext)
//My code here
Count.Set(executionContext, 5);
Try to make same code. It working well. 
Hi xjomanx,
I just tried your suggestion, but still the class is not appearing in the plugin registration. Btw, could you please confirm what version of PluginRegistration you are using?
blog: <a href="http://technologynotesforyou.wordpress.com">http://technologynotesforyou.wordpress.com</a> | skype: ali.net.pk

Similar Messages

  • Unable to register custom workflow activity on MS CRM 2015 Online

    Hi All,
    I am trying to register custom workflow activity using plugin registration tool on MS CRM 2015 Online.
    Error says that 'No Plugin have been selected from list. Please select atleast one and try again'
    In short my assembly is not considered as custom workflow activity.
    I am giving my code let me know, If any thing is wrong.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Activities;
    using Microsoft.Xrm.Sdk;
    using Microsoft.Xrm.Sdk.Workflow;
    namespace Training.SamplePlugin
        public class SampleCustomworkflow : CodeActivity
            [Input("Birthday")]
            public InArgument<DateTime> BirthDate { get; set; }
            [Output("NextBirthday")]
            public OutArgument<DateTime> NextBirthDay { get; set; }
            protected override void Execute(CodeActivityContext executionContext)
                //Create the tracing service
                ITracingService tracingService = executionContext.GetExtension<ITracingService>();
                //Create the context
                IWorkflowContext context = executionContext.GetExtension<IWorkflowContext>();
                IOrganizationServiceFactory serviceFactory = executionContext.GetExtension<IOrganizationServiceFactory>();
                IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);
                if (context.PrimaryEntityName.ToLowerInvariant() == "contact")
                    DateTime birthDate = BirthDate.Get<DateTime>(executionContext);
                    DateTime nextBirthDate = new DateTime(DateTime.Now.AddYears(1).Year, birthDate.Month, birthDate.Day);
                    //NextBirthDay.Set(executionContext, nextBirthDate);
                    Entity newContact = new Entity();
                    newContact.LogicalName = "contact";
                    newContact.Id = context.PrimaryEntityId;
                    newContact["new_nextbirthday"] = nextBirthDate;
                    service.Update(newContact);
    If code is correct then has somebody faced this kind of issue earlier, what is resolution.
    Thanks
    Apurv

    Have your signed your assembly ??
    Microsoft Dynamics CRM Training|Our Blog |
    Follow US |
    Our Facebook Page |
    Microsoft Dynamics CRM 2011 Application Design
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

  • Highlight an invalid email address in a custom workflow activity in SharePoint Designer 2010

    Hi,
    I have created a custom workflow activity to send an email with the 'From' address being taken as input from the SharePoint Designer when this activity is used in a designer workflow. My requirement is to highlight an invalid email address(from address)
    on click of 'Check for Errors' button in SharePoint Designer like it is done for mandatory inputs by default where it highlights such inputs if left blank. Is it possible?
    Thanks in advance.

    Good work, catch so far Michael, does seem to be a "feature" of iCloud syncing, not sure what you could do to disable it.

  • I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

    I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

    I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

  • Cross Farm: User Profile Custom Properties do not show up in the consumer farm web applications

    I have a two SharePoint 2010 farms, one is the publishing farm and user profile service is running on this farm. I have defined a couple of new custom properties, and after a while these custom properties do not show up at the consumer farm end.
    So, on the publishing farm, I can udpate the user profiles with values in these custom properties. However, neither the custom properties nor the values got synchronized to the consumer farm. What puzzled me further is that some of the existing custom properties
    exist on the consumer farm, but not the new custom properties I recently added.
    1. I have made sure the application pool accounts on both the farms being added to the administrators with full control permission in UPS on the publishing farm.
    2. The User Profile Service proxy (connected to the publishing farm UPS application)  is associated with all the web applications on the consumer farm.
    3. When values in the user profiles on the publishing farm changed, these changes do not get replicated to the consuming farm user profiles. This symptom occurs on both custom and OOB user profile properties.
    However, I cannot find any other related information on the web, nor from the ULS logs.

    Hi,
    As I understand, it did not display the new custom properties you defined in the publishing farm at the consumer farm end.
    1. Check if the topology Discovery Service Application runs well in consuming farm. In the Central Administration, it is the Application Discovery and load Balancer Service Application, check if it starts.
    In the IIS, it is the topology, check if it starts.
    2. Check the permissions have been established if you have established consumer farm permissions on Provider Farm before you publish the service application.
        1. Go to Central Administration and going to “Manage Service Applications”.
        2. Click on “Application Discovery and Load Balancer Service Application” and click “Permissions” from the ribbon.
    Your farm GUID should be listed with full permissions.
    The article is about Shared Service Architecture in a multi farm environment
    http://blogs.msdn.com/b/russmax/archive/2010/05/06/sharepoint-2010-shared-service-architecture-part-2.aspx
    Best regards
    Sara Fan
    TechNet Community Support

  • Custom JMX MBeans not showing JRMC under Weblogic 10.3.1

    Hi,
    I have created some custom JMX MBeans and registered them with the Runtime MBean Server as described in the documentation in a ApplicationLifecycleListener. Even though the ObjectInstances I get back from the MBeanServer indicate that the MBean is registered, when I connect to the server using JRockit Mission Control I only see the standard Weblogic MBeans and my custom MBeans do not show.
    Side note, when I deploy my application in Weblogic 9.2.3 my custom MBeans do show in JRMC? Weird!!!! Both servers are in development mode and both are using JRockit as the JVM.
    Regards,
    Mark P Ashworth

    You should be able define a remote connection to the WLS MBean server in the JRMC Console in the same fashion as in JConsole. You will however loose a lot of functionality, since (I assume) the JVM MBeans in the platform MBean server will not be avilable from the WLS specific MBean server. Pretty much the only remaining tabs of interest will be MBean browser and the trigger tabs. I guess you could also redefine the other tabs to show WLS specific attributes of interest.
    If you wish to monitor the JVM MBeans in the platform MBean server together with the WLS MBeans, then you need to make WLS use the platform MBean server instead of its own, just like the previous entry suggested.

  • When go to mozilla check plugins, it does not show any plugins! i do have several plugins

    i am unable to view flash player files despite i have flash player installed and enabled. when i go to check plugins at mozilla, it does not show any plugins! i will appreciate your help

    There are two different versions of Flash, one for IE (ActiveX version) and another for other browsers (Plugin version).
    1.Download the Flash setup file from here: <br />
    [http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player.exe Adobe Flash - Plugin version]. <br />
    Save it to your Desktop.<br />
    2. Close Firefox using File > Exit <br />
    then check the Task Manager > Processes tab to make sure '''firefox.exe''' is closed, <br />
    {XP: Ctrl+Alt+Del, Vista: Shift+Ctrl+ESC = Processes tab}
    3. Then run the Flash setup file from your Desktop.
    * On Vista and Windows 7 you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). <br />
    See this: <br />
    [http://vistasupport.mvps.org/run_as_administrator.htm]

  • My Customized Workflows are not triggering

    Hi All,
    I customized workflows.But in SWEL my all customized workflows are not triggering from the last two days..Before it was working..In SWE2 also done properly and SWU3 also fine.
    Please give suggession whereis the Problem?
    Regards,
    Soni

    If you look at the details of your event linkage entry (transaction SWE2) you will find that the "Check function module" field is not empty. The function module, when executed for the event you created, raised an exception - which is the standard way for a check function module to prevent a workflow from starting.
    The check function module could be one set up for a workflow start condition, namely SWB_CHECK_FB_START_COND_EVAL. If so, check the workflow start conditions for your workflow (transaction SWB_COND).
    Otherwise, examine the check function module's code to determine what it checks and why it prevents your workflow from starting.
    <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/e4b027453d11d189430000e829fbbd/content.htm">SAP documentation: Using (event) linkages</a>

  • How to call an Azure Web API (2.2) - from Dynamics Custom WorkFlow Activity of Plugin c#

    Hello,
    I am specifically trying to call a web api, that has a FromBody.
    However, I am trying to do it without having to use libraries (or nuget packages) that I cannot install on CRM of CRM Online.
    It seems JSON newtonsoft is big... or I guess I could use my own custom formatter...
    But I would love to see if someone has an example for posting to web API, versus an ASMX
    Thanks

    Wow I had this awesome thing typed up... and it wouldn't do it then wanted me to verify and then that messed up and I lost it all... Wow..
    Anyway
    [SOLVED]
    Works from Plugin or Workflow activity
    Use the Query string to pass things (not the body) or else you have to compress it and you can't use the libraries to DO that in the Sandbox... You CAN do that if you or on premise and do NOT isolate.. Then heck I did everything I wanted but for online
    this was it.
    You do NOT have to use WebClient, use HttpClient (follow the code below)
    WebApi 2.2 is what I used
    My signature for Webapi
    You do have to clean up the response.. as the string you get back is JSON.. and you cannot use the JSON desieralizer...
    Easy fix... just do a replacement of the \ and " to a " " space.. then Trim the result.. bingo a clean string response...
    [HttpGet]
    Public string MyMethod(string value1, string value2, string value3)
    This will parse the query string so USE these are your parameters in your query string or the API will NOT work. ?value1=ddd&&value2=ddd&&value3=aaa
    of course make up your own string names
    IIS and Apache etc work differently so the AMOUNT of data you can send will differ per platform, per version of platform AND usually you can configure it.. IIS used to be like 2048 by default.. anything beyond that (as a total URL incoming) was truncated..
    Not sure now. I know it was configurable
    I got it working.. all my points are gone... but it's possible
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Activities;
    using Microsoft.Xrm.Sdk;
    using Microsoft.Xrm.Sdk.Workflow;
    using Microsoft.Xrm.Sdk.Query;
    using Microsoft.Xrm;
    using System.Net.Http;
    using System.IO;
    using System.IO.Compression;
    using System.Net.Http.Headers;
    using System.Runtime.Serialization.Json;
    using System.ServiceModel;
    using System.Net;
    try
        string result = string.Empty;
        using (var client = new HttpClient())
            client.BaseAddress = new Uri(webapihost);
            client.DefaultRequestHeaders.Accept.Clear();
            client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/x-www-form-urlencoded"));
            client.Timeout = new TimeSpan(0, 0, 30); ;
            client.MaxResponseContentBufferSize = 2000000;
            using (HttpResponseMessage response = client.GetAsync(webapihost + apimethod + querystring).Result)
                if (response.IsSuccessStatusCode)
                    result = Decompress(response);
                    tracingService.Trace("Call Data Value [{0}]", result.ToString());
    catch (Exception simple)
        throw new InvalidPluginExecutionException("Error with simple HTTPClient x-www-form-urlencoded" + simple.ToString());
    private string Decompress(HttpResponseMessage response)
        try
            switch (response.Content.Headers.ContentEncoding.ToString().ToLower())
                case "gzip":
                        return DecompressGzip(response.Content.ReadAsStreamAsync().Result);
                case "deflate":
                        return Inflate(response.Content.ReadAsStreamAsync().Result);
                default:
                        return response.Content.ReadAsStringAsync().Result;
        catch (Exception ex)
            throw new Exception("Error decompressing: " + ex.ToString());
    private string DecompressGzip(Stream datastream)
        try
            //Create a new stream
            //decompress the original
            //get back the string (JSON)
            if (datastream != null)
                Stream decompressedStream = null;
                decompressedStream = new GZipStream(datastream, CompressionMode.Decompress, true);
                var streamReader = new StreamReader(decompressedStream);
                string stringdata = streamReader.ReadToEnd();
                decompressedStream.Dispose();
                return stringdata;
            else
                return string.Empty;
        catch (Exception ex)
            throw new Exception("Gzip error: " + ex.ToString());
    private string Inflate(Stream datastream)
        try
            if (datastream != null)
                Stream decompressedStream = null;
                decompressedStream = new DeflateStream(datastream, CompressionMode.Decompress, true);
                var streamReader = new StreamReader(decompressedStream);
                string stringdata = streamReader.ReadToEnd();
                decompressedStream.Dispose();
                return stringdata;
            else
                return string.Empty;
        catch (Exception ex)
            throw new Exception("Inflate error: " + ex.ToString());

  • Workflow link not showing in enterprize manager system components

    Hi,
    I just started with Oracle Apps and have installed infra, midtier , midtierjsp and a remote repository.
    As part of the install I installed OWF.
    Problem is it does not show up in the midtier system components.
    I restarted all components and servers severl times with no luck.
    I opened a tar with Oracle and poor response.
    I got a metalink article : 265554.1 and I followed the instructions there , which was exactly what I did prior, but still no OWF showing.
    Below is the last lines from ny workflow install. Any help will be greatly appreciated and this is rather urgert.
    Thanks,
    Praim Sankar
    [email protected]
    Commit complete.
    Disconnected from Oracle Database 10g Release 10.1.0.2.0 - Production
    WorkflowCA: Configuration files were not updated.
    WorkflowCA: Workflow Configuration has completed successfully.
    WorkflowCA: Terminating...

    Hi,
    I can see only one difference with my code:
    I placed using detectives in namespace:
    namespace Crm_RTB_NewAcc.Workflow
    using System;
    using System.Activities;
    using System.ServiceModel;
    using Microsoft.Xrm.Sdk;
    using Microsoft.Xrm.Sdk.Workflow;
    using Microsoft.Xrm.Sdk.Query;
    public sealed class GetOrgLicense : CodeActivity
    // Define Inputs/Outputs
    [Output("Count")]
    public OutArgument<int> Count { get; set; }
    protected override void Execute(CodeActivityContext executionContext)
    //My code here
    Count.Set(executionContext, 5);
    Try to make same code. It working well. 
    Hi xjomanx,
    I just tried your suggestion, but still the class is not appearing in the plugin registration. Btw, could you please confirm what version of PluginRegistration you are using?
    blog: <a href="http://technologynotesforyou.wordpress.com">http://technologynotesforyou.wordpress.com</a> | skype: ali.net.pk

  • Customer information screen not showing when installing photoshop CS2 -- cannot enter serial number

    I own Adobe Premier CS2. When I run photoshop installation, customer information screen is not showing. So I cannot enter serial number. I have serial number.

    CS2: Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3 -
    http://helpx.adobe.com/x-productkb/policy-pricing/creative-suite-2-activation-end-life.htm l

  • How do I add my Custom Workflow Activity to FIM 2010 R2 SP1 installed on Windows 2012 server?

    Hellos.
    I have tried and failed to add my custom.dll into the Windows Server 2012  GAC.
    We have a version of FIM 2010 R2 Sp1 running on Windows Server 2008 R2 and that was no problem. There seemed to be a gacutil.exe present on the system which added my assembly.
    I cannot find gacutil.exe on the Windows 2012 Server.
    I have downloaded and installed Windows SDK for Windows 8. However, when I try the gacutil.exe /i <myCustom.dll> nothing seems to happen.
    Are there any guidelines how to add custom workflow activities to FIM when installed on a Windows Server 2012 system?
    TIA
    *HH

    Well yes. It is fine when FIM is hosted on Windows Server 2008 R2.My difficulty is that I am using FIM 2010 R2 Sp1 and Windows Server 2012. No GACutility executable.
    However, the problem has been resolved. Powershell can be used to modify the assemblies.
    I opened a RunAs Administrator PS session. My assembly is in folder c:\Temp
    Using Windows Explorer I browsed the folder c:\windows\assembly and noted the System.EnterpriseServices entries: version (2.0.0.0) and public key token (b03f5f7f11d50a3a)
    (My version is 2.0.0.0 because when installing FIM and SharePoint 2013 the instructions I used suggested setting .Net version to be 2.0)
    These powershell commands got me going...
    PS C:\temp> [System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
    GAC    Version        Location
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50...
    PS C:\temp> $publish = New-Object System.EnterpriseServices.Internal.Publish
    PS C:\temp> $publish.GacInstall("c:\temp\RunPowershellLibrary.dll")
    PS C:\temp>
    PS C:\temp>
    PS C:\temp> iisreset
    Amazingly I can see the assembly RunPowershellLibrary in my Windows 2012 GAC. :-)
    Also, what is more cheering is that the custom activity actually works with FIM 2010 R2 Sp1.

  • Add a new field in custom table but not show on SM30

    I add a new field in a custom table, did Table Maintenance generator and SE93.  But that field did not show on SM30 screen.  How to make it show on the SM30?
    Thanks
    Helen

    Hi,
    I think its the Problem with TMG.
    Go to TMG screen delete the old TMG and regenerate the new TMG
    Hope it helps
    regards
    Prasanth

  • I have installed Adobe Flash but firefox does not show as plugin

    I have downloaded the most recent versions of Firefox (30.0) and Adobe Flash Player. The Adobe website tells me my flash player is installed and current but Firefox does not show it as a plug in and a site that requires flash player (google finance) to view charts does not work. The place for the chart remains blank after telling me it has loaded.
    Any thoughts?

    When a page is using a plugin, usually an icon similar to a piece of Lego appears in the address bar. You can click the logo to check that Flash is allowed to run on the page, or approve it to run if it isn't.
    I randomly picked a stock and enlarged the chart and got the following URL. Any luck with this one: http://www.google.com/finance?chdnp=1&chdd=1&chds=1&chdv=1&chvs=maximized&chdeh=0&chfdeh=0&chdet=1405540800000&chddm=1173&chls=IntervalBasedLine&q=NASDAQ%3AAAPL&ntsp=0&fct=big&ei=YJzGU_iiEZSziALE4oCYCg
    Does it matter whether you view it in a regular tab or in a private window? To view in a private window, right-click the link > Open Link in New Private Window.

  • Customer Hierarchy field not showing in change customer master

    Hi all,
    We are trying to upload customer master Hierarchy field A and Customer Number  in XD02 But Customer Hierarchy field not displaying in XD02 i check in account group OBD2 and OB20 setting its showing optional entries only still its not showing in XD02 But while creating customer master in XD01 its showing
    can any one guide me where i need config
    Thanks
    Rajesh

    Hi,
    You check out in OBD2 & in OB20,
    R u selected right account group in OBD2, check it.
    Kapil

Maybe you are looking for

  • From Mac X 10.6.5-10H574 upgrade: Windows part doesn't appear in "Startup"

    Aloha, I worked with bootcamp from several months without any issues. I update my iLife to 11 and I'd patched mac OS on 10H574. On my desktop I'm seeing the "Bootcamp" disk. On "startup" window I don't see my windows disk icon as before ... and I'm n

  • FSCM Biller Direct all open items not displayed

    Hi Experts, We implemented Biller Direct but it doesn't display all open items from customer's account properly. Only SD invoices (billing documents) are being displayed with their PDF icons and are working fine. Biller direct is not showing any othe

  • Time Machine slow, and getting slower

    I am a recent Windows emigrant with a two-week-old, 11" MacBook Air with 8 GB of RAM, 128 GB SSD, and Mountain Lion.  All system software is up to date.  Five third-party applications I have added are Google Chrome, LibreOffice, Skype, TeamViewer, an

  • Windows 8,  installed iTunes but after 10 secs the program stopped.

    I just bought a new laptop with Windows 8. Installed iTunes. The program launched, played music but 10 seconds later the program stopped. Uninstall and reinstall but same thnig happen. Advice?

  • Passing Fields between List Table and Input Form - selection list

    Hi I have to build up an input form with a lot of values. I like to provide something like a selection list, where the user can select from. An other way would be to make some tables with the possible values and pass them after clicking the row in a