Custom workflow activities

I need to write a custom workflow to get more opportunities in the list of opportunities and then generate invoice with details.. do you have an idea??
thanks.

After having registered the custom workflow activity, you should have to restart Asynchronous process service and IIS...
My blog : http://mscrmtools.blogspot.com
All my tools for Dynamics CRM 4.0 on my dedicated site:
MSCRMTools Repository
Upgraded tools for Dynamics CRM 2011!
View Layout Replicator for Microsoft Dynamics CRM 2011
Searchable Property Updater for Microsoft Dynamics CRM 2011

Similar Messages

  • Custom Workflow Activities on diferente languages sites

    Hello everyone,
    I've developed some custom workflow activities on VS, and they are all working correctly on all sites of the default language (English).
    My problem now is that I've installed another language pack (Portuguese) and created several sites with this language pack, and my custom WF activities doesn't appear in SPDesigner workflows on those sites. 
    Anyone knows why is this happening? and what can I do to make them available on every language pack?

    Hello Eduardo,
    The scope of my custom activities are WebApplication, and I can't change that because it provides multiple custom activities to several website on our sharepoint farm to already running workflows, and I want to be able to use them in any website.
    The web site where I'm trying to use my custom activities was created after the installation of the language pack, and it was created on that language (Portuguese). Everything on the website is in Portuguese, even the workflow semantics on Sharepoint Designer
    is in Portuguese (only for that site).
    That's why I think my activities doesn't show up, because they are not available on that language pack. All default SharePoint activities appear translated to Portuguese, but mine doesn't appear at all.
    Anyone?

  • Custom SharePoint 2013 workflow activities in site template throw error on site creation

    Hi all,
    I have created a number of custom activities for SharePoint 2013 Workflows and I am using them on an Office 365 environment. The custom activities are packaged as a sandbox solution and deployed on my Office 365 site. Everything works as expected.
    I have now created a site with all the functionality I need, including some Site and List workflows - all of them containing my custom activities. I saved the site as a template - including content - and the process was completed successfully.
    My problem is that when I try to create a site based on that template, I get the following error:
    Microsoft.Workflow.Client.ActivityNotFoundException: The activity named 'WorkflowXaml_66b9230b_823e_4783_82b8_daf481237847' from scope '/spo/d42a4487-9465-4347-9f2c-a2718e92fc02/74d0f9e7-fb35-493d-86fb-ab7aa27da7e0/c2e1bf45-cf67-4e13-9755-421cf92395f8'
    was not found. HTTP headers received from the server - ActivityId: 0997496a-5a15-4b83-82eb-727881eefa67. NodeId: . Scope: . Client ActivityId : c82f6e9c-9f8f-808b-7679-f2c0f92a339d. ---> System.Net.WebException: The remote server returned an error
    After a number of trials and errors, I am certain that this relates to my custom activities. i have already tested all of the following scenarios:
    Delete the workflow with the custom actions: Site is created successfully.
    Create a new workflow with no custom actions and save the site as a template:
    Site is created successfully.
    Save the site template including a workflow with my custom activities, but not including content:
    Site is created successfully, but my workflow is not there.
    Create a new custom workflow activities sandbox with one custom activity that just writes something to the history list - just to make sure that this is not related to any specific solution. Save the site as a template:
    Site creation throws the same error.
    Packaged my workflow (with my custom activities) as a wsp from SharePoint Designer and deployed it as a custom solution. Activated the feature in the target site. The workflow gets created and executing finally. Saved the site as template: Site
    creation throws the same error.
    Same as above, but without activating the feature in the target site: Site created successfully, workflow works fine after I activate the feature in the new site.
    My custom activities feature is always enabled in the site I save as template - in all of the above scenarios.
    I have tested all of the above scenarios both on SharePoint 2013 on-premise and Office 365. There is
    a forum post regarding some inconsistencies in the wsp file, but unfortunately this is not my case. Am I doing something wrong? Are custom 2013 workflow activities not supported in site templates - which would not actually make any sense, as it would "break"
    the fundamental concept of re-usability.
    Any ideas/feedback/guidance?
    Thanx in advance

    Hi,
    I am facing the same issue. Kindly help me out if any of them have solved similar issue. 
    Your help would be appreciated.
    manikantan

  • 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.

  • Issue in a custom workflow with Approval Type Notification. Urgent

    Hi
    I have created a custom workflow which contains an approval notification.
    If the user approves/rejects the notification I need to update a table column as Approved or Rejected.
    I have created a function activity,say X, which calls a PL/SQL procedure.
    The issue is,
    when the user approves or rejects the notification, the function X errors out even without entering the PL/SQL procedure.
    Following is the error message
    An Error occurred in the following Workflow.
    Item Type = XXYH_UMX
    Item Key = 55
    User Key =USERKEY:55
    Error Name = -6502
    Error Message = ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Error Stack =
    Wf_Engine_Util.Function_Call(XXYH_UMX_WF_PKG.is_resp_assigned, XXYH_UMX, 55, 242407, RUN)
    Activity ID = 242407
    Activity Label = XXYH_UMX_ASSIGN_RESPONSIBILITY:XXYH_UMX_RESP_ASSIGNED
    Result Code = #EXCEPTION
    Notification ID =
    Assigned User =
    If I go the function from any other function,say Y, (bypassing approval notification) it works fine.
    Can you please help me what could be the issue?
    Thanks,
    Kamath.

    The danger in putting in one activity is that if there is any scope longer-term to expand the process to multiple activities, then it may be better to break it out into a sub-process early in the design phase.
    Generally, you get the feeling from the client fairly early on about whether they have a final design and how likely they are to complicate the process later on :)
    I wouldn't include it as a post notification function myself - it saves a tiny amount of processing time and database space, but at the cost of making it less clear what is happening. Plus you'd need to check the result in the PNF manually - putting it on a conditional branch ensures that you always know what the value is. If the lookup type changes at any stage, you would need to check a PNF to ensure that the code still remains valid; if it's on a branch then the only thing to change would be to change the label on the branch.
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Workflow Activities not executing in Parallel

    Hi,
    I am using Oracle Workflow as a dependency management system to load a Data Warehouse.
    Workflow Activities are used to execute a custom PL/SQL wrapper that kick off Oracle Warehouse Builder (OWB) mappings that load target tables with source system data.
    This process works correctly and data is loaded into the Data Warehouse as expected.
    However, when I create a Workflow with activities in parallel they are not loaded concurrently, they load sequentially instead.
    ie.
    START
    => ACTIVITY1 =>
    => ACTIVITY2 =>
    => ACTIVITY3 =>
    AND => END
    In the example above I would expect all 3 Activities to run in parallel, then wait until all 3 are completed at the AND condition.
    All 3 Activities above are DEFERRED to the Background Engine.
    After executing the Workflow and viewing the Workflow Public View WF_ITEM_ACTIVITY_STATUSES_V, it displays all of the Activities in DEFERRED status as expected.
    Workflow then proceeds to execute each Activity one at a time, instead of all 3 at once.
    Any ideas how to execute all 3 Activities in Parallel?
    Thanks.

    Hi,
    If the activities are all PL/SQL, then the Workflow Engine doesn't run anything in parallel - there is only one engine processing the activities. The theory is that it runs so quickly it will look like it's in parallel with no real effect.
    So what you are getting is expected behaviour - it's just that because you have deferred it to the background engine, you have a greater opportunity to see how the engine works.
    HTH,
    Matt
    Alpha review chapters from my book "Developing With Oracle Workflow" are available on my website:
    http://www.workflowfaq.com
    http://forum.workflowfaq.com
    NEW! - WorkflowFAQ Blog at http://thoughts.workflowfaq.com

  • Oracle Custom Workflow Redesign best practices

    Hi All,
    Morning , need some help with this scenario.
    We are in the process of redesigning existing developed custom Oracle Workflows in our system ( Oracle Apps Release 12.0.6 )
    hence wanted to know if there are steps or guidelines/best practices which could be followed in this situation on points like handling performance issues with the workflow , how to handle the purging of the obsolete workflow data , design steps regards notifications, how to handle error conditions with workflow activities and how to retry activities ( means if any activity within the workflow process shows error how it could be retried or re executed in real time without any delay).
    means any pointers which could be considered for this redesign actvity , any best practices document/steps and guidelines would be really very very helpful here...
    Regards

    This is a very broad question - narrowing it to specifics might help folks respond better.
    There are a lot of documents on MOS that refer to best practices from a technology stack perspective.
    Oracle Workflow Best Practices Release 12 and Release 11i          (Doc ID 453137.1)
    As far as functional practices are concerned, these may vary from module to module, as functionality and workflow implementation vary from module to module.
    FAQ: Best Practices For Custom Order Entry Workflow Design          (Doc ID 402144.1)
    HTH
    Srini

  • Custom workflow - How to go from single server to multiple?

    I have been working on a project that involves developing a custom workflow activity for SharePoint 2013. I am developing it in a single server environment working with http. My problem occurs when deploying to multi-server environment with https (WFE, APP).
    My question is how to deploy my solution to the new environment. 
    The steps:
    Create a project - c# activity library
    Add a workflow activity, add .xml
    Deploy the .dll and .xml of project to "C:\Program Files\Workflow Manager\1.0\Workflow\Artifacts" "C:\Program
    Files\Workflow Manager\1.0\Workflow\WFWebRoot\bin"
    net sotp "Workflow Manager Backend"
    net start "Workflow Manager Backend"
    gacutil to deploy the .dll to GAC
    iisrest
    Create a project - empty SharePoint 2013 project
    Add a workflow custom activity to project
    Edit .actions4 and .xaml (my custom code from previous project is in this project now that i can drag and drop in .xaml)
    Deploy to server, activate feature, open SharePoint Designer 2013 and choose the custom action that now appears when creating a 2013 workflow
    This all works fine and dandy on my single server environment. Workflow is working like a charm. How should I go about deploying this to a multi-server environment with https? Does that server need Visual Studio on it also? I have continued to deploy the
    .dll and .xml to the workflow manager backend folders. I have continued to deploy the .dll to the GAC also. When I upload the solution to the new site, it continues to work. When I open designer to create the workflow, it breaks and i cannot create or edit
    any of the workflows on that site. Do i need to be doing something different because i am going from a http environment to https?
    Let me know if this is unclear or if anyone needs more information. Thanks

    If I understand correctly, your workflow still working fine in multi-servers farm but having problem in SharePoint designer. As far as I understand your custom activities should be deployed in the server where your workflow manager is running. Good architecture
    would be to put the workflow in app server (or in it's separate server). But if you are also using HTTPs in multi-server farm whereas the workflow configured over HTTP, you might need to register the workflow (I'm not quite sure though, so you can try in some
    test environment first).
    I've worked with SharePoint 2013 workflow but I intentionally didn't develop custom activity. Rather I develop custom WCF service in SharePoint. And then used the service from workflow. This is how I could use a separate dedicated server for workflow (if
    needed ever) without having any reference to SharePoint DLLs from inside workflow.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • 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.

  • 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

  • System.Workflow.Activities.SequentialWorkflowActivity' is obsolete

    Hi,
    I am using Custom VS 2012 Sequential workflow (Farm solution).
    I have created the sequential workflow with the fault handler. I am getting the below warning message:
    'System.Workflow.Activities.SequentialWorkflowActivity' is obsolete: 'The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*'
    What changes have to be done to avoid this warning?
    Thanks.

    Hi,
    According to your post, my understanding is that you want to avoid the warning when you use visual studio 2012 to create Sequential workflow.
    Per my knowledge, we can’t avoid this warning. Because  the SequentialWorkflowActivity Class was obsoleted in .Net Framework4.5.
    http://msdn.microsoft.com/en-us/library/system.workflow.activities(v=vs.110).aspx
    We need use System.Activities.* instead.
    http://msdn.microsoft.com/en-us/library/system.activities(v=vs.110).aspx
    More information:
    Develop SharePoint 2013 workflows using Visual Studio
    http://msdn.microsoft.com/en-us/library/jj163199%28v=office.15%29
    Get started with workflows in SharePoint 2013
    http://msdn.microsoft.com/en-us/library/office/jj163917.aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Reading values from lookup columns through custom workflow in SharePoint 2013

    We are able to read the values of text, number columns through custom workflow (via coding) in SharePoint 2013. However, we are not able to read values from lookup columns. So, request anyone to provide help on this.
    Thanks & regards,
    Aditya

    Hi,
    According to your post, my understanding is that you want to read values from lookup columns through custom workflow in SharePoint 2013.
    Since the workflow just doesn't get lookup fields, let's give it something static to work with instead. If we can capture the ID of the lookup field and store that as a static value in our list, the workflow can happily use that to look up our related.
    For more information, you can refer to:
    SharePoint 2013 Workflows and Lookup Columns
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Open url link in custom workflow. SharepPoint 2010

    Hi, i created custom workflow in Visual studio 2010. I want my workflow opened page of the site. In workflow i using method - Process.strart("http:\\mysite\myform.aspx") try to open the page. But my workflow is completed after his the start.
    Browser does not open the page i have. Can you please tell me how best to do to open up the site url in the workflow code. Thanks.

    I don't think you can.  Workflows run in a background thread on the server, so even if you were able to open a web page it would open on the server, not the client.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Custom Workflow using Oracle Workflow in ContentDB

    Hi,
    Could we use custom workflow which is made using Oracle Workflow instead of BPEL.
    Regards,
    Yulisar

    Having registered custom workflows for Content DB via Enterprise Manager, potentially you can use any tool capable of dequeuing/enqueing messages from the IFS_BPEL_OUT/IFS_BPEL_IN advanced queues as part of a custom workflow process.
    By default, we assume you are using Oracle BPEL PM with its Advanced Queue adapater to process the queue messages. However, there is nothing stopping using Oracle Workflow or any tool for that matter.
    HOWEVER!!! Warning!!! There is a high probability that Content DB will drop the bundled Oracle Worflow installation in the near future. What this means, is that you should consider installing/configure/patching your own separate Oracle Workflow installation and not rely on the bundled Content DB solution which is used internally for Serial and Parallel Approval workflows.
    thanks,
    Matt.

  • How to create a Language Branch using custom workflow?

    Hi,
    I’ve a requirement where I need to create a workflow process which will create a Language branch.  i.e I wanted to achieve the functionality using custom workflow as given in the docs: https://dev.day.com/docs/en/cq/current/administering/multi_site_manager.html#Managing the Translation of your Language Branches 
    As per the OOTB functionality,
    1.     If the target page is not exist in the Language branch, it will copy the reference page to target path.
    2.     If the target page is already exists, it will not create a copy of the reference.           
    After the translation, if we make any changes in the reference page and activate the reference, then we have a button called 'Show side by Side' under Translation in the side kick which shows differences between reference page and translated page.
    Example:
    So, I would like know how we can achieve this in my custom workflow process. In my workflow process, I’m checking whether the page is existed in the target path or not. If not exist, I used page copy.
    Eg: Page page = newPage.copy(originalPage,targetPath+"/"+originalPageName,null,true,true );
    When I use above api, it just copies the page and it will not maintain any relation with reference page.
    Any pointers would be more helpful.
    Thanks
    Siva

    Hi,
    I have a similar request to export the texts from one language and after the translation to import them to the new language, did you find any solution? My question is how can I add some steps into my workflow to validate the imported data -and if the user validate the texts then proceed with next step(in my case I import the text from a file and generate a form with values). I read the documentation from Adobe but I didn't find anything related to how we can add a workflow to a dynamically generated from(I don't use the CQ form component).
    Can anybody help me with this?
    Thx, Lorand

Maybe you are looking for

  • Unable to COMPLETE install of iPhoto 09 on Power PC G4 - specs OK

    I have a very old PowerPc G4 (512RAM), 1,25Ghz, OS X 10.5.8 which my kids use for their photos. I am unable to complete the install of iPhoto 09 from the iLife 09 update disc I purchased in the late 2000's. The disc works perfectly and I get as far a

  • Error in DMS while accessing from portal

    Hi Experts, Iam getting the below error in portal while accessing the dms repository. the repository was fine status is in green color but still getting the error while iam viewing it from content administration > kmcontent> my repository name what s

  • Page setup to print

    Hi and thanks for your help. I have opened my file.acsm, and it looks good.  I go to print it.  it seems to be cutting off part of each page.  I can see it fine in digital editions, but how do I change the printing so it prints the whole page.  it se

  • No authorization to maintain usage

    Hi experts, recently, when I try to change the usage of a value assignment, a warning of  'No authorization to maintain usage' will show in  the bottom of the screen. could you please help me on this, thanks!

  • Adobe Media Encoder and Timecode

    Does Media Encoder retain timecode? I'm doing 23.98 to 29.97 Quicktime trnascodes and the timecode always starts at 00:00:00 on the transcoded file.