WebAPI操作辅助资料按常规单据处理方式就可以,Form ID填写辅助资料的“BOS_ASSISTANTDATA_DETAIL”即可,新增示例如下:
static void Main(string[] args)
{
ApiClient client = new ApiClient("http://172.20.66.92/k3cloud/");
string dbId = "5aefe2c9983658";
bool bLogin = client.Login(dbId, "demo", "888888", 2052);
if (bLogin)
{
string sFormId = "BOS_ASSISTANTDATA_DETAIL"; //辅助资料
//Model字串 ,FNumber编码 FParentId上级资料内码, Fid类别编码 FDataValue名称 FDescription描述
string sC = "{ \"Creator\": \"\", \"Model\": {\"FNumber\": \"99999\", \"FParentId\": \"5b519387a91b08\",\"FId\": {\"FNumber\": \"wwl_1_1\"},\"FDataValue\": \"森林\",\"FDescription\": \"哈哈哈\"}}";
object[] saveInfo = new object[]
{
sFormId,
sContent
};
//调用保存接口
var ret = client.Execute
}
7.5补丁版本中,WebAPI测试页面也将辅助资料开放出来了:
推荐阅读