I have created Custom Workflow Action based on this msdn article and SPUserCodeWorkflowContext
return Hashtable results with specific values. Its worked and implement on my SharePoint Workflow 2010(PlatForm Type)
Workflow into SPD.
public Hashtable GetRelevantSubscribeUser(SPUserCodeWorkflowContext context)
{
//hashtable that will be returned can be used for return values.
Hashtable retVal = new Hashtable();
using (SPSite site = new SPSite(context.CurrentWebUrl))
{
using (SPWeb web = site.RootWeb)
{
try
{
retVal["Result"] = "test@gmail.com;test2@gmail.com"
}
catch (Exception ex)
{
retVal["Result"] = string.Empty;
}
}
}
return retVal;
}
My Question :
I want to deployed this custom workflow action into SharePoint Workflow 2013(PlatForm Type)
. Can we used same kind of code into Workflow Action on SharePoint 2013?