当我使用WebAPI创建记录(Case)时,我需要获取创建的CaseCD。使用以下方法时似乎没有返回值。有什么建议吗?
CR306000.Actions.Save
答案 0 :(得分:2)
我还没有在我的项目中使用Case,但已经做了类似的事情,建议你尝试下面的方法来获得返回值:
CR306000Content CR306000 = context.CR306000GetSchema();
CR306000Content[] CR306000Content = context.CR306000Submit
(
new Command[]
{
new Value {Value = "xxxxx", LinkedCommand = CR306000.CaseSummary.BusinessAccount},
new Value {Value = "xxxxx", LinkedCommand = CR306000.CaseSummary.Reason},
..............,
CR306000.Actions.Save,
CR306000.CaseSummary.CaseID
}
);
var CaseCD = CR306000Content[0].CaseSummary.CaseID.Value;