Я создаю 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 сбрасывает сертификат по умолчанию, который является пустым текущим сертификатом.