Skip to content

Commit

Permalink
Modified CRM account id
Browse files Browse the repository at this point in the history
  • Loading branch information
bensonpaul committed Jul 4, 2024
1 parent b83d056 commit fca03f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions static/js/main-new.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ $.ajax(settings).done(function (response) {
"Content-Type": "application/json"
},
"processData": false,
"data": "{\r\n \"data\": {\r\n \"type\": \"Contacts\",\r\n \"id\": \"" + uid + "\",\r\n \"attributes\": {\r\n \"first_name\":\"" + first_name + "\",\r\n \"email1\":\"" + email + "\"\r\n,\r\n \"lead_source\":\"Web Site\"\r\n,\r\n \"title\":\"" + patientdetails + "\"\r\n,\r\n \"account_id\":\"aba27ce2-d758-bdeb-adef-5da4294bf9e8\"\r\n }\r\n }\r\n}\r\n"
"data": "{\r\n \"data\": {\r\n \"type\": \"Contacts\",\r\n \"id\": \"" + uid + "\",\r\n \"attributes\": {\r\n \"first_name\":\"" + first_name + "\",\r\n \"email1\":\"" + email + "\"\r\n,\r\n \"lead_source\":\"Web Site\"\r\n,\r\n \"title\":\"" + patientdetails + "\"\r\n,\r\n \"account_id\":\"c548fc60-389f-8f5b-5ecb-64cce0924678\"\r\n }\r\n }\r\n}\r\n"
}

$.ajax(settings).done(function (response) {
Expand All @@ -234,7 +234,7 @@ $.ajax(settings).done(function (response) {
var settings = {
"async": true,
"crossDomain": true,
"url": "https://devl-crm.unblock.health/legacy/Api/V8/module/Accounts/aba27ce2-d758-bdeb-adef-5da4294bf9e8/relationships",
"url": "https://devl-crm.unblock.health/legacy/Api/V8/module/Accounts/c548fc60-389f-8f5b-5ecb-64cce0924678/relationships",
"method": "POST",
"headers": {
"Accept": "application/vnd.api+json",
Expand Down Expand Up @@ -285,7 +285,7 @@ $('#contact-submit-live').prop('disabled', 'disabled');
e.preventDefault();
var recaptchaResponse='';
var recaptcha_response = verifyCallback3;
//console.log(recaptcha_response);
console.log(recaptcha_response);
var uid = uuidv4();
var first_name = $('#quickname').val();
var email = $('#quickemail').val();
Expand Down Expand Up @@ -361,7 +361,7 @@ $('#contact-submit-live').prop('disabled', 'disabled');
"lead_source": "Web Site",
"title": "GEN",
"description": description,
"account_id": "aba27ce2-d758-bdeb-adef-5da4294bf9e8"
"account_id": "c548fc60-389f-8f5b-5ecb-64cce0924678"
}
}
})
Expand Down

0 comments on commit fca03f4

Please sign in to comment.