用于SM200535的REST API端点(证书替换)

时间:2018-10-11 08:00:29

标签: rest api acumatica

我创建2个端点 第一个获取证书替换列表的端点 http://localhost:5481/entity/Security/17.200.001/CertificateReplacement

我得到的错误:

"message": "An error has occurred.",
"exceptionMessage": "Optimization cannot be performed.The following fields cause the error:\r\nCurrentCertificate: View Filter has BQL delegate\r\nNewCertificate: View Filter has BQL delegate\r\n",
 "exceptionType": 
 "PX.Api.ContractBased.OptimizedExport.CannotOptimizeException"

第二个端点来执行操作 http://localhost:5481/entity/Security/17.200.001/CertificateReplacement/ProcessAll 身体

{
  "entity" : {
      "PendingCertificate" : {
          "value": "khiem_data_security"
      }
  }
}

返回202(已接受),但是Acumatica重置为默认证书,该证书为空当前证书。

0 个答案:

没有答案