From df199cff532081f51d5ecf37f014c3f7a2f8ceb5 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Tue, 28 Oct 2025 11:20:02 +0000 Subject: [PATCH] 19889 added in curmurl_version variable --- pages/api/file/createrepinvolvement_api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/api/file/createrepinvolvement_api.js b/pages/api/file/createrepinvolvement_api.js index 545f34ea..cd059683 100644 --- a/pages/api/file/createrepinvolvement_api.js +++ b/pages/api/file/createrepinvolvement_api.js @@ -43,9 +43,11 @@ export default async function ApiProxy(req, res) { console.log(req.body, queryUrl); var crmUrl = "https://" + process.env.CRMURL; + var crmVersion = process.env.CRMURL_VERSION; var data = { - "@odata.id": crmUrl + "/api/data/v8.2/contacts(" + contactid + ")", + "@odata.id": + crmUrl + "/api/data/" + crmVersion + "/contacts(" + contactid + ")", }; var config = {