Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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" />
share|improve this question
add comment

1 Answer 1

I dont know if this helps but you could try this:

Lookup user info is the custom activity that you can use: http://spdactivities.codeplex.com/

and/or

http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/f97b9b37-a667-44e3-abfe-100f07e27154/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.