Topic RSS
2:03 pm
Hey Steve,
For Reporting I must split a full path of an managed Metadata field. For this I have first wrote a custom workflow action which split an input.
But I need also for this workflow a different custom action. This action must read a taxonomy field (full path like I can see in the datasheet view) an give it back in an SharePoint Designer variable (as string (like 1;#value1:value2:value3).
The workflow must run in Office 365 so the workflow action must a sandbox solution.
Can you please help me by writing the code for the workflow action which gives me the value from a taxonomy field in a SharePoint variable.
I worte this code but the TaxonomyFieldValue I don’t can use in a sandbox solution.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using Microsoft.SharePoint.UserCode;
using Microsoft.SharePoint;
namespaceWFActivity
{
public classTest
{
public Hashtable WFTest(SPUserCodeWorkflowContext context, string Input)
{
Hashtable result = new Hashtable();
TaxonomyFieldValue value = (TaxonomyFieldValue)item[Input];
result["Output"] = value.Label;
return result;
}}}
Thanks for your help
Stefan
Most Users Ever Online: 91
Currently Online:
20 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
jollekvin: 103
meredithscott: 30
NickJohnson: 19
spbsmile: 13
dshiftbyxavor: 13
laurenrodriguez: 12
Member Stats:
Guest Posters: 875
Members: 16881
Moderators: 0
Admins: 1
Forum Stats:
Groups: 3
Forums: 10
Topics: 1154
Posts: 2219
Newest Members: Anoop Srivastav, Lakshmi, graicrorm, spootogaups, axiorneesee, Lenchik1971
Administrators: Learning SharePoint (223)
Log In
Members
Home
Add Reply
Add Topic
Quote



