Hi @Anonymous
Please follow below steps for your requirement:
Step1: You need to create entity list of your "another entity".
- Enable OData feed
Step2: Add below code in Javascript section of entity form
- Call oData query as per your requirement in the code
$(document).ready(function(){
//Call your oData query
var odataUrl = location.origin + "/_odata/anotherentities/?$filter=new_contactid/Id eq (guid'7e7bb7f3-888b-ea11-a811-000d3a300e5b')";
$.ajax({
type: "GET",
url: odataUrl,
dataType: 'json'
}).done(function (data) {
console.log(data);
//get All value from oData query and pass value
$("#customerid_name").attr("value","Account Name");
$("#customerid").attr("value","b27183ce-a8af-ea11-a812-000d3a579cb3");
$("#customer_entityname").attr("value","account");
});
});