I like to build a custom sandbox workflow action. The action must read a taxonomy field and give me the full path (like id;#value1:value2). Input for this sandbox workflow action is the field value:
< RuleDesignerSentence="Taxonomyfield">
< FieldBind Field="Input" DesignerType="TextArea"Text=" Input " Id="1"/>
< FieldBind Field="Output" DesignerType="ParameterNames" Text="Output" Id="2"/>
< /RuleDesigner>
Class with code:
public Hashtable WFTest(SPUserCodeWorkflowContext context, string Input)
{
Hashtable result = new Hashtable(); TaxonomyFieldValue value = (TaxonomyFieldValue)item[Input]; result["Output"] = value.Label; return result; }
Can you please help me by the class code?
Tanks Stefan