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 sContent = "{ \"Creator\": \"\", \"Model\": {\"FNumber\": \"99999\", \"FParentId\": \"5b519387a91b08\",\"FId\": {\"FNumber\": \"wwl_1_1\"},\"FDataValue\": \"森林\",\"FDescription\": \"哈哈哈\"}}";
object[] saveInfo = new object[]
{
sFormId,
sContent
};
//调用保存接口
var ret = client.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Save", saveInfo);
Console.WriteLine(ret);
}
}
另外,最新补丁汇中WebAPI测试页面已经将辅助资料添加进去,可以直接对辅助资料进行测试。
推荐阅读