我创建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重置为默认证书,该证书为空当前证书。