Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

set value lookup javascript dynamics 365

var lookupValue = new Array();
lookupValue[0] = new Object();
lookupValue[0].id = "{727504ed-64c5-4bc8-ac22-0a3071c427e3}"; // GUID of the lookup id
lookupValue[0].name = "Goutam Das"; // Name of the lookup
lookupValue[0].entityType = "contact"; //Entity Type of the lookup entity
Xrm.Page.getAttribute("FieldName").setValue(lookupValue); // You need to replace the lookup field Name..
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript split remove last element 
Javascript :: delete element html javascript 
Javascript :: reload datatable without ajax 
Javascript :: javascript sum of number in object array 
Javascript :: insert element after element javascript 
Javascript :: remover ultimo character string javascript 
Javascript :: check object in array javascript 
Javascript :: how to add element in arry in js 
Javascript :: spread operator in javascript 
Javascript :: jquery multiple div click 
Javascript :: How to Submit Forms and Save Data with React.js 
Javascript :: image file size in react-dropzone 
Javascript :: javascript max_value 
Javascript :: get console javascript 
Javascript :: mock an api call in jest 
Javascript :: Creating URL Search Parameters From An Array 
Javascript :: iterate through object javascript 
Javascript :: angular create library 
Javascript :: js for in 
Javascript :: how to dekete from string all "," js 
Javascript :: how to find the particular key and value in json in javascript 
Javascript :: how to take 100% width in react native 
Javascript :: js get current year last 2 digits substring 
Javascript :: js array 0 to n 
Javascript :: cypress graphql request 
Javascript :: sequelize bulk update 
Javascript :: object to map javascript 
Javascript :: jquery datepicker on multiple input fields 
Javascript :: js date get hours 
Javascript :: javascript child element selector 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =