How can I return a user or group in SharePoint Designer custom activity?
A return type of SPUser seems to be not possible. SharePoint Designer workflow does not recognize the return type.
public static DependencyProperty ResultProperty = DependencyProperty.Register("Result", typeof(SPUser), typeof(ApproverDelegatesLookup));
[DescriptionAttribute("the result")]
[BrowsableAttribute(true)]
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)]
[ValidationOption(ValidationOption.Required)]
public SPUser Result
{
get { return (SPUser)GetValue(ResultProperty); }
set { SetValue(ResultProperty, value); }
}
<Parameter Name="Result" Direction="Out" Type="Microsoft.SharePoint.SPUser, Microsoft.SharePoint" />
