Posts

Showing posts with the label Dynamics 365 Web API

Create related entity records along with the primary record in D365 using Web API Javascript - XMLHttpRequest

You have Person and Person Address custom entity. you wanted to call web API to create records for person and person address. You have added required web resources in CRM. var Gender; var Indian; var Technologies = ""; var firstName; var lastName; function CreatePerson() {     firstName = document.getElementById("firstName").value;     lastName = document.getElementById("lastName").value;     var data =     {         "new_name": firstName + " " + lastName,         "new_firstname": document.getElementById("firstName").value,         "new_lastname": document.getElementById("lastName").value,         "new_dob": document.getElementById("DOB").value,         "new_age": document.getElementById("Age").value,         "new_gender": Gender,         "new_indian": Indian,         "n...