Transfer reusable workflow and maintain content type

I need to transfer a 2010 reusable Workflow from the test to the production environment. I create the workflow with SharePoint Designer 2013, and I select a specific content type. After having imported it in the new environment, I can't set a specific Content
Type (the only option for Content Type is "ALL").
Thanks in advance for the help!

Hi,
As I understand, you would like to migrate a reusable workflow to another farm, please try the methods below:
1.Copy and Modify the reusable workflow in production envrionment, try if you could associate a new content type to it.
2.If it doesn't work, save the original workflow in test environment as a template, then move to production envrionment:
http://blogs.msdn.com/b/allengeorge/archive/2013/04/18/move-copy-a-designer-reusable-workflow-to-a-new-site-farm.aspx
Regards,
Rebecca Tu
TechNet Community Support

Similar Messages

  • Error when associating workflow with Task Content Type

    Using SharePoint Designer 2010, I have created a simple workflow that sends an email out when a tasks due date has past.  I created this as a Global Workflow and then tried to "Associated to Content Type", selecting "Task".  I am then taken
    to... COMPANY PORTAL--> Site Settings--> Site Content Types--> Task--> Add a Workflow. When I try to associate the new "Global" workflow and select OK I get the following error...
    Error
    Workflows may not be associated with content types whose base is on 'WorkflowTask'.
    I have looked up the error but find no real explination of what it means.  And I have associated global workflows with custom content types and never had this issue. 
    So what's going on?
    Thanks
    Steve
    Thanks in advance for your time. Steven

    Hi ,
    I understand that when you bind the workflow to Tasks content type, there is an error. I can reproduce this error. This is because we cannot add a reusable workflow to a workflow tasks content type. When you add the reusable workflow to the Tasks content
    type, you must have checked the ‘Add this workflow to all content types that inherit from this content type’. In this way, the workflow will be added to all the Tasks content type and workflowtasks content type. There will an error. After you close the error
    message, the workflow is added to the Tasks content type.
    The workaround is the check No to ‘Add this workflow to all content types that inherit from this content type’.
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • How to publish workflows created under content type to make it available in all my-sites.

    Hi,
        i followed this procedure to publish workflows in my-sites but even after activating workflow feature am unable to get created workflow templates in my-site.
    Create a workflow and associate it with your content type in the hub.
    Before publishing this content type, export the reusable workflow and import it in all the subscriber site collections or deploy your workflow to the farm if it is a farm solution
    Activate your workflow feature
    Now, your workflow is available in the hub as well as all the subscriber site collections.
    Publish the content type. The workflow association will be publish.
          can anyone help me out of this issue. 

    Hi,
    As I understand, you encountered the issue after activating workflow feature.
    Per my test, I can get the created workflow templates
    after activating workflow feature by workflow 2010.
    1. Check if you use SharePoint 2010 workflow because SharePoint 2013 workflow doesn’t work.
    2.  Reactive the workflow template feature in your site collection.
    3. If it still doesn’t work, open the site collection you want to use the workflow in the SharePoint designer and associated the workflow with the content type in the site collection. After these steps, you can use workflow in your all site collection.
    There is a similar thread:
    https://social.technet.microsoft.com/Forums/office/en-US/714d1e48-a31d-4daa-9572-62d56c3b8c93/create-workflow-for-content-type-which-can-be-accessed-as-a-template-in-all-sites-including-mysite?forum=sharepointadmin
    Best regards,
    Sara Fan

  • 2013 Workflows - Trigger a workflow from a Content Type

    So now that a workflow cannot be triggered from a Content Type, how are people doing this now? 
    Any suggestions appreciated.
    Thanks
    J Sykes

    Hi,
    According to your description, my understanding is that you want to trigger a workflow from a Content Type.
    As we all know, we can attach a workflow to a Content Type, but the workflow cannot run until the Content Type is added to a list or library.
    The elements of a list content type include the columns of metadata that are associated with the content type and workflows that can run on items of that content type.
    More information about the content type and workflow are provided in the link below:
    http://technet.microsoft.com/en-us/library/cc262735.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • OOTB Approval Workflow for a Content Type sends emails for 2 content types

    My environment: SP 2013 Server (WFE-APP) + SQL
    I have a few Content Types configured in a document library. Every content type has an OOTB approval workflow to fire an e-mail to the approver on each new/edit.
    When I create a new file for testing, it first becomes checked out with no properties added. I then edit the properties to specify its content type and other fields. When I check in the document, SharePoint sends out an e-mail to the approver for that content
    type which is correct. What SharePoint also does for this very same file is sends out an approval request e-mail for the default content type for that library which is something else than a desired content type.
    This is something I cannot understand. I thought that the workflows start on a file 'Check in'. If I check in a file that is a certain content type, why does the approval for a default content type for a library trigger as well? 

    Hi,
    Is it SharePoint 2013 workflow or previous 2010 model workflow? If it's SharePoint 2013, how are you associating workflow to content type. As per
    MSDN "Unlike previous versions, SharePoint 2013 does not support workflows that are scoped to a
    content type. However, the messaging infrastructure is extensible, so it can support
    any arbitrary scope. As a developer, you can set to", workflow association with content type (which was possible in SharePiont 2010) is no longer available out of the box. You need to do it manually, (not sure how as there's no documentation yet
    from MS) and programmatically.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • Programmatically: Support content types in the gallery and for content types associated with a document library

    Hi there,
    Help appreciated in programmatically 'Supporting content types in the gallery and for content types associated with a document library'.
    Any resources/references or source is greatly appreciated.
    Regards,

    Hi,
    Would you mind providing more details about your requirement? Cause I'm not quite clear about what you really need.
    What’s more, there are seems two questions in your post. If you have several questions to ask, I suggest you post them into every single thread to make them easier to be discussed
    in the forum.
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to programmatically create a site column and a content type

    Hello,
    I'd like to create a site column (let's say a field text) and a content type, only  using c#  -i.e. I don't want to add new item/column and then xml. This code will be added to a FeatureActivated.My code is :
    public override void FeatureActivated(SPFeatureReceiverProperties properties) {SPWeb rootweb = (SPWeb) properties.Feature.Parent;
    SPFieldText field = new SPFieldText(SPfiledscollection???, "field1");
    if (field != null)
    rootweb.Fields.Add(field)
    rootweb.Update();
    }   SPContentType newContentType = new SPContentType(spcntenttypeId??, SPContentTypeCollection ??, "content1");
       rootweb.ContentTypes.Add(newContentType);
       rootweb.Update();
    Are there any sample codes out there? I've only found samples using xml - which has an irritating "feature"
    Thank you
    Christos

    Nice code and it helped me understand. Some small questions. I'm trying to make all the "data" for a (sub)web site.
    So, I think, my steps are:
    1. create site columns+content type
    2. create  list
    3. create a lookup site column that uses the list on <2>
    4. create content type that uses the site column on <3>
    5. Create the list for the content type on <4>
    My confusion is: should I use one feature for everything? Your code is using scope=site, so i need to "hardcode" the web site's name. I don't mind doing that , I just don't know how to use scopes in features for creating data.
    Thank you
    Christos

  • How to use existing WSP file of reusable workflow and create sanbox solution?

    Hello,
    I have to migrate the SharePoint Designer 2013 workflows from Development environment to Production environment. So, I am following the process which is mentioned in this blog:
    http://sharepointyankee.com/2010/12/11/options-for-deploying-reusable-workflows-in-sharepoint-2010/
    And it is working also, but problem is that; this visual studio solution is getting deployed as a Farm Solution and I wanted to deploy it as a sandbox solution. 
    Is there any way to achieve this?
    I have also tried one more way which is:
    Create SharePoint Custom Workflow Project as a sandbox solution in Visual studio.
    Get WSP file from development site (as mentioned in above referenced blog)
    Open WSP file and copy the content to Visual Studio Created project
    But this solution is also not working; "Feature is not getting deployed as sandbox solution" error is occurring.
    Can anyone please help me on the same?
    Thanks,
    Asim

    Hi,
    When you export SPD workflow, it will be a sandbox solution only, you are not required to configure further.
    Just import the workflow into Visual Studio, and make the changes that are required. you are good here.
    you can set the scope attribute in your WSP feature element.
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Workflow attached to content type shows the status as 'Starting'

    Hi,
    I have developed a workflow to distribute documents from Drop Off library to different SharePoint libraries based on the content type that the document uploaded to.
    The drop off library has been configured incoming mail settings hence the documents would be on boarded to drop off library through e-mails. In this scenario, my workflow should be triggered when the document is on boarded through email.
    Another scenario, the user can upload the document to different content type manually and updates the respective meta data values. This scenario, my workflow should be triggered when the item updated.
    So, I have configured my workflow should run on the content types and trigger when item is created through e-mail and item is updated by manual.
    The document on boarded through e-mails are working fine as soon as the item is created.
    Issue:
    The workflow associated on a content type which needs to be triggered on item created is triggering as soon as the user uploads a document manually and shows the status as 'Starting'.
    The workflow associated on a content type which needs to be triggered on item modified is triggering as soon as the user updating meta data values after document is uploaded. Hence, throwing an error
    'cannot open a file from drop off' library exception when I try to read file using C# code as file stream bytes.
    Configuration:
    1. The content types are having mandatory fields which has a default values set.
    2. The document version settings are set as check out the document when editing the properties.
    Please help me to resolve this bug and let me know if you need more details.
    Also, let me know how can we cancel the workflow if it is in 'starting' mode.
    The workflow should run the document is onboardedwhen an item is created and

    Hi,
    According to your description, my understanding is that you want to get data from content type in JSlink.
    I suggest you can get the content type data in JSLink using JavaScript Client Object Model.
    Here are some derailed code demos for your reference:
    http://sharepoint.aspcode.net/view/635399286724222582163436/sharepoint-how-to-get-field-value-using-jsom-jslink-without-async-call
    http://sharepoint.stackexchange.com/questions/93777/how-to-get-contenttype-name-in-clientsidejavascript-jquery-csom-etc-in-editf
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Versioning and Video Content type does not work.

    Hello,
    I have out of the box sharepoint installed.
    When I apply versioning to a library. And try to see "Document set version history" (as I suggest Video content type actually inherits from Document Set). I don't see any version.
    Can you tell me how can i see versions of the "Video" content type item in this Version History window?

    Document set versions are slightly different than item versions. Document sets can be managed by a separate ribbon tab called Document Set and group called Manage.
    Check below link for detail go through:
    How to retrieve document set version history
    Manage versions for Document Set
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer :)

  • Hi - HELP PLEASE - I have had a bad bug, now fixed, But Have Lost the Library in iTunes - how can I transfer the music and artwork content of my iPone back to iTunes so that I have a base library again

    Hello - can someone help me please - I am not really well versed in modern electronics
    So, as I mentioned in my heading which is rather long (sorry lol) I have had a bad computer virus, now fixed, which has lost me a lot of information. This includes the content of ,my iTunes Library and my ability to access it.
    So, can someone help me by telling me how I can gethte music currently in my iPhone back in to the Music Library in my new version of iTunes. Aslo hiow do I now get Album Artwork in to iTunes as well - iI recall that it was really easy when I set it up but this new version is causing me all sorts of heartache when I tried just now - hence my plea for help.
    I hope you can help and that I can hear fromoyuvery soon
    Thanks guys 
    Keith

    iDevices are not backup devices.
    Use the backup of the computer to put the content back on the computer.
    If not backup exists and the content was purchased via iTunes, connect the device and select File > Transfer purchases.  This will not restore playlists, playcounts or any other library specific data.
    If the media was not purchased via iTunes, search google for ways to extract it from the iPhone.
    Whatever you do, going forward make sure you back up your media and other important files regularly.

  • Apex_web_service.make_rest_request: Passing parameters and the content type

    Not sure if I am missing something, but should this API be setting the content type (to application/x-www-url-formencoded) when there are values present for the parameters p_parm_name and p_parm_value.
    The example in the docs is to a yahoo API. I'm not sure about that particular one (see: http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_web_service.htm#BABEDJHJ), and I think it requires an appid (yahoo account), so i just went with the example here:
    http://developer.yahoo.com/yql/guide/yql-code-examples.html#yql_php
    If I run the following from a html file on my desktop it works:
    <form method="POST" action="http://query.yahooapis.com/v1/public/yql">
    <input type="hidden" name="q" value="select * from upcoming.events where location='San Francisco' and search_text='dance'"></input>
    <input type="hidden" name="format" value="json"></input>
    <input type="submit"></input>
    </form>That is, it returns a JSON result.
    The raw HTTP data is as follows:
    POST http://query.yahooapis.com/v1/public/yql HTTP/1.1
    Host: query.yahooapis.com
    Connection: keep-alive
    Content-Length: 110
    Cache-Control: max-age=0
    Origin: null
    User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11
    Content-Type: application/x-www-form-urlencoded
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: en-AU,en;q=0.8,en-US;q=0.6
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
    q=select+fromupcoming.events+where+location%3D%27San+Francisco%27+and+search_text%3D%27dance%27&format=json>
    However, running the following returns nothing: (nothing, as in nothing that depends on the parameters passed in)
    set serveroutput on
    declare
    l_c CLOB;
    begin
      l_c := apex_web_service.make_rest_request(
        p_url => 'http://query.yahooapis.com/v1/public/yql',
        p_http_method => 'POST',
        p_parm_name => apex_util.string_to_table('q:format'),
        p_parm_value => apex_util.string_to_table('select * from upcoming.events where location=''San Francisco'' and search_text=''dance'':json'),
        p_proxy_override => 'http://192.168.1.3:8888');
      dbms_output.put_line(substr(l_c, 1, 4000));
    end;Raw HTTP data:
    POST http://query.yahooapis.com/v1/public/yql HTTP/1.1
    Host: query.yahooapis.com
    Connection: Keep-Alive
    Content-Length: 106
    Connection: close
    q=select+%2A+from+upcoming%2Eevents+where+location%3D'San+Francisco'+and+search_text%3D'dance'&format=json>
    I do note a key difference is that content type isn't being set in the web service API.
    This was just to test a public service. I do note that the above has slighty different request data (percentage encoding on some chars). However, I experienced the same behaviour on a procedure I had written (I can also provide this example test case if you like), which is where I first noticed the issue.
    Using utl_http and setting the content type to application/x-www-url-formencoded, does resolve the issue. However, just thought i'd see the possibility of using the Web service API that is made available.
    Is the example in the docs valid, or am I missing something obvious?
    This is on ApEx 4.1 on the OTN Dev Days VM.
    Thoughts?

    Hi trent,
    I too have had issues with this API , so moved forward with UTL_HTTP API.
    There is something amiss.
    If you change your code to the one below it works.
    SET SERVEROUT ON
    declare
    l_c CLOB;
    l_param varchar2(1000) ;
    begin
    l_param := 'select * from upcoming.events where location=''San Francisco'' '||
            ' and search_text=''dance'''||'&'||'format=json';
    l_c := apex_web_service.make_rest_request(
        p_url => 'http://query.yahooapis.com/v1/public/yql?q='||
            utl_url.escape(l_param)
        ,p_http_method => 'POST'
      dbms_output.put_line(substr(l_c, 1, 4000));
    end;
    /Note the use of UTL_URL.ESCAPE. The call does not work without it.
    I do not use a proxy, so that parameter does not feature in my snippet above.
    Cheers,
    PS: However, the below does not work. So, it appears that the p_parm_name and p_parm_value do not quite work.
    SET SERVEROUT ON;
    declare
    l_c CLOB;
    l_param varchar2(1000) ;
    begin
    l_param := 'select * from upcoming.events where location=''San Francisco'' and search_text=''dance''';
    l_c := apex_web_service.make_rest_request(
        p_url => 'http://query.yahooapis.com/v1/public/yql'
        ,p_http_method => 'POST'
        ,p_parm_name => apex_util.string_to_table('q:format')
        ,p_parm_value => apex_util.string_to_table(utl_url.escape(l_param)||':json')
      dbms_output.put_line(substr(l_c, 1, 4000));
    end;
    / Edited by: Prabodh on Oct 13, 2012 2:04 PM

  • How to customise and navigate Content Type - SharePoint 2013 List

    I need some advice here. I'm customizing forms that have list built using Content Types. I noticed the difference in the links is something like this below I have one default content list type called item and the other one is called College Form
    Item is ContentTypeId=0x01003FF12EB7EAB88340BEE53D34C38A906200147E508F34B9164ABE555FF698569C27
    College Form is ContentTypeId=0x01003FF12EB7EAB88340BEE53D34C38A906200147E508F34B9164ABE555FF698569C27
    When doing my customization of the form I would like to hide some fields and show some based on the content type. I know by default the content type does that. But im using JS to hide some fields but don't know how i can do this or what values to use to
    make this happen.
    Any ideas and thanks in advance

    WPQ2FormCtx.ItemContentTypeId will give the content type ID of the item in each of the forms newform.aspx, ediform.aspx and displayform.aspx. You can also use WPQ2FormCtx.ItemContentTypeName, if you want to compare name instead of Id. Here is a JQuery
    code to hide fields in the forms:
    <script type="text/javascript">
    jQuery(document).ready(function($) {
        if(WPQ2FormCtx.ItemContentTypeId == '0x010400C36D463A4788AD4AAF5F85C02DA29F8E') {
        $("h3.ms-standardheader:contains('Body')").closest("tr").hide();
    </script>
    Note that this script assumes the JQuery is already referenced in the site. You can place above code in Script Editor web part in each of the forms. 
    Also, beware that this way you can hide the field from UI, but user can still open the page source and find the actual information in the hidden field. 
    If the requirement is to completely hide the field data then you will need to set the field properties like showInEditForm, showInDisplayForm and showInNewForm
    Nadeem Yousuf

  • Render xml and html content type in single jsp

    I have 2 jsps, one jsp(a.jsp) is throwing content-type as HTML and other JSP(b.jsp) is throwing content-type as xml. I am making use of xsl to render the xml content in html format. But the problem is that i want to include b.jsp in a.jsp, and when i do so b.jsp doesn't make use of xsl for its rendering rather it displays the contents haphazardly.
    Plese help if somebody knows the solution.

    Below the following line ..
    <html:form action="addContact">Add this new form field..
    <html:hidden name="flag" value="0"/>Needless to say that this String variable flag should be defined in your ActionForm.
    Next, instead of ...
    <html:submit property="parameter"><bean:message key="ok.company" /></html:submit>Put this ...
    <input type="button" name="xyz" onClick="callSubmit(1);" value='<bean:message key="ok.company" />'>Then add a JS function as below ...
    <script>
    function callSubmit(flg)
         document.forms[0].flag.value=flg;
         document.forms[0].submit();
    </script>Finally in your ActionServlet, you need to find the value of the ActionForm variable flag via request.getParameter("flag").
    In case the value is set to 1, then it means that you need to send the particular row to DB. You may add additional flag values to correctly identify theparticular row which you may want to send to DB.
    Hope you got it.
    -Rohit

  • TS4062 I am trying to transfer my purchased and uploaded content from my IPhone 4S to my ITunes account on my laptop.  When i try to sync, it wants to wipe out my phone content with what is on my computer which has nothing.  Am i missing something?

    I am trying to sync my iphone 4s to my windowns Itunes account.  When i try to do it, the sync wants to remove all of the content on my phone and replace it with what is on my laptop, which has nothing yet.  I am trying to move all of my purchased and uploaded content from my phone to the computer, but don't see the setting to do that.

    Have you tried contactint the app's developer?

Maybe you are looking for