Sharepoint 2010 提取子字符串不适用于查找字段-sharepoint 2010

Sharepoint 2010 提取子字符串不适用于查找字段-sharepoint 2010,sharepoint-2010,sharepoint-workflow,Sharepoint 2010,Sharepoint Workflow,当我试图从列表中的查找字段中提取子字符串时,使用工作流时不会得到任何结果,而使用非查找字段时,它会起作用。 你知道怎么解决这个问题吗。我缺少的内容。使用SPFieldLookupValue类 可以使用LookupValue和LookupId这两个属性从字段中提取值,无需提取子字符串 SPFieldLookupValue lookup = new SPFieldLookupValue(item["fieldName"] as string); lookup.LookupValue;

当我试图从列表中的查找字段中提取子字符串时,使用工作流时不会得到任何结果,而使用非查找字段时,它会起作用。
你知道怎么解决这个问题吗。我缺少的内容。

使用SPFieldLookupValue类

可以使用LookupValue和LookupId这两个属性从字段中提取值,无需提取子字符串

SPFieldLookupValue lookup = new SPFieldLookupValue(item["fieldName"] as string);
        lookup.LookupValue;
        lookup.LookupId;

希望这能有所帮助。

查找字段不存储查找值。相反,它将其存储为LookupId;查找值。你能把你的问题与此联系起来吗?