Aaron A

My task form is extremely simple, but I cannot get it to receive values from the workflow.

I'm writing two values to the task as follows (these are in the create task method, btw):

Code Snippet

managerTaskProps.ExtendedProperties["itemAssignedTo"] = manager.ToString();

managerTaskProps.ExtendedProperties["itemTitle"] = workflowProperties.Item["Name"].ToString();

the manager variable is a SPUser class (it is set after a lookup function, it works, so I don't question it Smile)

I have a feeling this association is taking place, its just that the form is not receiving/reading those values. Because the form works when submitting, I know data is at least going one way.

I have the ItemMetadata.xml file as the secondary data source, and the fields in my form setup with field names with a default value (not the actual data source) of the ows_itemAssignedTo and ows_itemTitle, but I am at a loss as to why these values are not getting set.

Let me know what I could look at to figure out my problem.



Re: SharePoint - Workflow task form not receiving data from the workflow

Shaun Fuchs

have you assigned managerTaskProps to the task

Is the ItemMetadata data connection set to retrieve data when form is opened

also, could you post up the contents of the ItemMetadata.xml






Re: SharePoint - Workflow task form not receiving data from the workflow

Aaron A

Code Snippet
<z:row xmlns:z="#RowSetSchema" ows_itemAssignedTo="" ows_itemTitle=""/>

yes, the ItemMetadata is set to automatically receive data when the form is opened.

omg....tell me that its the #RowsetSchema that i didn't use the correct case on...

anyway...and yes, managerTaskProps is assigned as properties of the task...





Re: SharePoint - Workflow task form not receiving data from the workflow

Aaron A

well, changing the case didn't seem to solve my problem, i may try recreating the form later today.



Re: SharePoint - Workflow task form not receiving data from the workflow

Aaron A

Not sure exactly where I messed up (but must have been the form), I recreated the form and it receives data like it should.



Re: SharePoint - Workflow task form not receiving data from the workflow

Rodrigo Diaz

That's correct. The correct schema for the ItemMetadata.xml file should be:

Code Snippet
<z:row xmlns:z="#RowsetSchema" ows_Property1="" ows_Property2="" />

where Property1 and Property2 are your extended properties that you want to read. The case matters!

Regards!!!