我将assignmentto字段作为d7ec53d80f0a650000af0bcce1050ea2
. 相反,我需要获取 user display name
。如何在ServiceNowdisplay name
中获取for assignedto - 发布管理
Web Reference Url = https://*****.service-now.com/rm_story.do?WSDL
代码:
var url = "https://*****.service-now.com/rm_story.do?SOAP";
var userName = *****;
var password = *****;
var proxy = new ServiceNow_rm_story
{
Url = url,
Credentials = new NetworkCredential(userName, password)
};
try
{
var objRecord = new Namespace.WebReference.getRecords
{
// filters..
};
var recordResults = proxy.getRecords(objRecord);
}
catch (Exception ex)
{
}
在recordResults
上面的代码中,我能够enumerate
并获取该assignedto
字段,但value
它以(某些guid 或未知格式 - 示例 - d7ec53d80f0a650000af0bcce1050ea2
)模式显示。我需要得到display name
.
如何获得display name
for assignedto字段?