EBDN - Community - Question & Answers

  1. Lei Tang
  2. WEB Service
  3. Tuesday, 16 August 2022
Hello all,

I try to use web service to create a new object in EB2022 ,but not success.I've already checked the sample code also not success, the code is below:

public bool CreateNewObject(string DBName, string parentID, int CID, int typeID)
{
try
{
UpdateObjectDataRequest request = new UpdateObjectDataRequest();
IList<UpdateObjectItem> items = new List<UpdateObjectItem>();
UpdateObjectItem newItem = new UpdateObjectItem();
newItem.CoverId = CID;
newItem.TypeId = typeID;
newItem.ParentId = parentID;
newItem.UpdateMode = ObjectUpdateMode.New;
items.Add(newItem);
request.UpdateData = items;
UpdateObjectDataResponse res = _proxy.UpdateObjectData(DBName, request);
CheckResponseError(res);
return true;
}
catch (Exception ex)
{
return false;
}
}

test.png
but the Error is :
[0] = Message="CID 113 is not allowed under object"; ErrorCode=-2147209611; ObjectId="00000000-0000-0000-0000-0000000C51CE"
Attachments (1)
You do not have permission to view the content of this accepted answer and replies.