https://d365hub.com/Posts/Details/4867418e-c3db-451b-bb97-0c5de08c7049/populate-lookup-fields-and-text-fields-from-an-entity-to-another-entity-using-javascript-dynamics-36