Please consider registering
guest

Log In Members

Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
sandbox solution and taxonomy
July 16, 2012
2:03 pm
Stefan
Guest
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
Forum Timezone: UTC 0

Most Users Ever Online: 91

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Member Stats:

Guest Posters: 875

Members: 16881

Moderators: 0

Admins: 1

Forum Stats:

Groups: 3

Forums: 10

Topics: 1154

Posts: 2219

Administrators: Learning SharePoint (223)