.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
Sgraph Infotech
Imran Ghani
Post New Web Links

Custom Workflow Task Content Types

Posted By:      Posted Date: October 05, 2010    Points: 0   Category :SharePoint
 
Is there no way to create a content type derived from the base Workflow Task content type through either the SharePoint UI of the SharePoint Designer?


View Complete Post


More Related Resource Links

Problem while creating task with custom content type in sharepoint workflow

  

Hi all,

I am trying to create task with custom content type in sharepoint statemachine workflow. But it is showing "Error Occured" after task creation code is excecuted. can anyone tell me what is the problem.

Task Content type

 

  <ContentType  ID="0x01080100A707C0079E8547c0A87515457DB90629"
      Name="TaskContentTypeForLeaveApproval"
      Group="Development"
      Description="Workflow Task"
      Version="0"
      Hidden="TRUE">
    <FieldRefs>
      <FieldRef ID="{9da97a8a-1da5-4a77-98d3-4bc10456e700}" Name="MyComments" DisplayName="MyComments"  />
     </FieldRefs>
    <XmlDocuments>
      <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
        <FormUrls xmlns="

how to create a custom task content type for VS2008 workflow

  

Hi,

i want to create a WorkFlow by VS2008 and i want to use custom content type for the tasks, and i want to build this cutome content type by Aspx form but i don't know how, any ideas ??

 

Thanks for all.


Quick Note: Create Custom Content Types in SharePoint 2010

  
Learn how to create a custom content type. Then you add two fields to the content type: a new text field and a field that already exists in web site.

Quick Note: Create Lists with Custom Content Types in SharePoint 2010

  
Learn how to create a list in SharePoint Server 2010 and associate it with a new content type. Next, you disassociate the list from the content type and then delete the list.

How to create custom task form in state machine workflow?

  
Hi, I want to create custom task form in state machine workflow. How can I create & install?  G. Goyal

Assigning a reusable workflow to all content types in a list in one operation?

  
When creating a reusable workflow I choose a base content type. I would really like to assign this workflow to the content type at site collection top level and get it to automatically work in all lists that include this content type, and also have it set to work for all children of this top level content type. It seems to me that I have to manually associate this workflow to all lists and content types? I am missing something here? Henning

Controlling Content Approval in custom SPD workflow

  
I've designed a custom workflow using SharePoint Designer 2007 on MOSS 2007 to perform the following: User uploads a document to a document library. Workflow triggers and waits for designated Approvers to either Approve or Reject the document. IF REJECTED, the user that uploaded the document is sent an e-mail and the document is deleted from the document library. IF APPROVED, the document is moved to a second, "secured" document library. This all works fine except for one thing. I want to record in a custom column who actually approved the document. As the workflow starts as soon as the document is uploaded to the document library then the workflow is running under the context of that user - not the user who approves or rejects the document. Does anyone have any idea how I could capture who approves this document through my custom SPD workflow?

Problem with Update of Sharepoint Taxonomy Fields in custom developed Content Types

  
Dear all, we developed an solution on sharepoint 2010 for one of our customers with custom lists and content types with fields from the managed meta data store. As recommended we developed everything in features & solutions so that easy deployment is possible. Adding metadata to the termstore seems to work without problems, but today we stepped over an confusing issue: Our customer changed the default label of an term in the metadata term store, but the label did not change in listviews and detailviews of items in the specific sitecollection. In editview we see the correct label. After searching a while we discovered the connection between the sitecollection and the term store, the hidden Taxonomylist (/Lists/TaxonomyHiddenList/AllItems.aspx) in the sitecollection, which seems to map the terms. After testing we discovered that the term/label did also not change in the hidden taxonomy list. The Timerjob “Taxonomy Update Scheduler“ is running hourly with success and we also tried to start the job manually, but the label did not change in the hidden list. Also there are no errors in the logfiles in verbose mode. We also tested to create a managed metadata field manually, put it in a list and after that, changed the label. For whatever reason the update of labels on manually created fields works without a problem. Our lists, content types etc get created pr

Unable to attach a custom SharePoint Workflow to a Content Type

  

I am working with SharePoint Server 2010 Beta 2, Visual Studio 2010 Ultimate RC and SharePoint Designer 2010 Beta.

I built a custom Content Type based on the Item type with a few custom site columns. I also have built a custom Sequential Workflow using Visual Studio 2010. This is a relatively simple workflow that creates a task, waits for the task to complete, sets the workflow to complete. I am able to deploy this workflow to the site collection through VS 2010.

The problem I have is that when I try to associate my custom Content Type with my custom workflow, that workflow is not listed in the workflow templates to select. There are only the OOTB SharePoint workflows to choose. However, if I create a list and associate a workflow to that list, my custom workflow is listed in the workflow template list.

This makes sense since at the start of building a custom workflow in VS2010, one of the first questions is whether the workflow is a Site or a List workflow and I selected List.

I did a little research and found some who wrote that Reusable Workflows may be attached to Content Types.  In VS2010, there is no option to build a Reusable Workflow.  That is only possible in SharePoint Designer.  However, it is possible to import a SPD workflow into VS, so I tried that.  Imported the WSP into VS201

Custom Workflow TaskEditForm(Custom Content Type) not getting displayed in Tasks List.

  

Hello,

I have developed a custom sequential workflow. I have also developed a custom content type derived from Workflow Task Content Type.

I have 1 TaskEditForm.aspx in this custom Content Type. The custom Content Type is getting associated with the Tasks List but when I click EditItem option in ECB Menu or Ribbon,the in-built EditForm.aspx gets displayed instead of displaying my custom TaskEditForm.aspx from the custom Content Type.

Can anybody help?

Thanks...


Regards,Gautam Kaikini, SharePoint Developer. http://in.linkedin.com/in/gautamkaikini

Custom Task form of a SharePoint Designer workflow is not displaying correctly

  

We have created a custom workflow using SharePoint Designer. We are using one action “Collect Data from a User”. As you know, this action sends an email to a user with a link to a task form where user is supposed to accept or reject a request. We are encountering following issues with this form:

  1. Form is not a workflow form, it is a task item of the task list that the “Collect Data from a User” action of the workflow creates.
  2. Form opens as an item of the workflow task list in View mode (DispForm.ASPX) instead of Edit mode (EditForm. ASPX)
  3. When user clicks on “Edit Item” button, it displays all the fields of the task as editable – we want only the Approve/Reject option buttons and the comments TextBox (that we created during the workflow design) to be displayed as editable

Can someone please explain what is going on and how can we resolve the above issues?
Thanks……….


Custom Content Types Missing after 2007 Upgrade to 2010

  

Hello everyone - 

We have a portal solution leveraging custom publishing content types and page layouts in 2007. The database was backed up, and the upgrade was done via dbattach on a 2010 environment. The site works seemingly fine - though there is some strange behavior we noticed where a few content types are missing.

The Content Type Gallery lists only say 10 of the 15 content types we should have. Loading the Master Page and Page Layout Gallery we see the inheriting content type, though clicking on it yields in an error as though it cannot find the content type. These are all custom content types, though they are not very different from each other.

Has anyone experienced this problem and devised a solution? - I tried to iterate through the site collection via a console application to see if I could somehow update or intercept the issue with the missing content types to no avail. I'll be open to suggestions / tools recommended...

All the best,

Alex


Alex Talarico

Custom Information Panel and content types

  
I am using WSS3.0 and created a CIP using infopath.  I would now like to remove the CIP and have it use the default out of box properies panel.  How do I make this change?  It appears that the CIP is associated with the content type and not the word template.  I do not see any settings in WSS3.0 to manage the panels associated with the content type.  Am I missing something?


jferrell

Custom Content Types Missing after 2007 Upgrade to 2010

  

Hello everyone - 

We have a portal solution leveraging custom publishing content types and page layouts in 2007. The database was backed up, and the upgrade was done via dbattach on a 2010 environment. The site works seemingly fine - though there is some strange behavior we noticed where a few content types are missing.

The Content Type Gallery lists only say 10 of the 15 content types we should have. Loading the Master Page and Page Layout Gallery we see the inheriting content type, though clicking on it yields in an error as though it cannot find the content type. These are all custom content types, though they are not very different from each other.

Has anyone experienced this problem and devised a solution? - I tried to iterate through the site collection via a console application to see if I could somehow update or intercept the issue with the missing content types to no avail. I'll be open to suggestions / tools recommended...

All the best,

Alex


Alex Talarico

Literal Error when trying to pass custom types to my workflow

  

Guys,

I have a simple procedural workflow that determines how to assign a real estate lead to an agent. It takes three input parameters, and 1 output parameter. The only unusual aspect of this activity, (if you call it unusual), is that I'm passing in complex objects rather than types. I've created a lead and agent objects like this:

    public class LeadProxy
    {
        public int PK { get; set; }
        public int Amount { get; set; }

   }

    public class AgentProxy
    {
        public int PK { get; set; }
        public int Senority { get; set; }
        public int CurrentLeadCount { get; set; }
    }

My current input arguments are:

  <x:Members>
    <x:Property Name="Agents" Type="InArgument(scg:List(local:AgentProxy))" />
    <x:Property Name="Lead" Type="InArgument(local:LeadProxy)" />
    <x:Property Name="AssignToAgent" Type="OutArgument(local:AgentProxy)" />
  

How add custom form field in workflow task using visual studio 2010

  

Hi,

I need to create a simple workflow using Visual Studio 2010.

Workflow having following activities:

1. Create a task assign to workflow initiator. This task have one dropdown field with two choice (Approved,Rejected). 

2. Wait for the task change.

3. In Task edit form, only title and custom drop-down field are visible. User need to select from one of the choice and complete the task.

How to assign values to workflow task person or group custom field?

  
Using visual studio 2008, in createTask_MethodInvoking, I have the following code. RequestFields has the values from the InfoPath form. ApprovingPersons is a person or group field, added to the task list by my custom task content type. I checked the task list associated with the workflow and I see the custom field.

SPUser user;
SPFieldUserValueCollection fuvc = new SPFieldUserValueCollection();
foreach (Contact person in RequestFields.Persons)
{
      user = workflowProperties.Web.EnsureUser(person.LoginName);
      fuvc.Add(new SPFieldUserValue(workflowProperties.Web, user.ID, user.Name));
}

// this is the line causing problem, I believe
PreApprovalTask_TaskProperties.ExtendedProperties["ApprovingPersons"] = fuvc;

I got the following error message:

at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] argument

Thanks,

Tony
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend