使用 WebAPI 创建记录后获取 Return 值

Get Return value after creating record using WebAPI

当我使用WebAPI创建记录(Case)时,我需要获取创建的CaseCD。使用以下方法时似乎没有 return 值。有什么建议吗?

CR306000.Actions.Save

我还没有在我的项目中处理过案例,但已经做过类似的事情,建议您尝试下面的方法来获得 return 值:

            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;