19889 added in curmurl_version variable

This commit is contained in:
2025-10-28 11:20:02 +00:00
parent d0d2b5d7a9
commit df199cff53
+3 -1
View File
@@ -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 = {