Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

196
Vistas
Populate dynamics CRM Activity Type sender from field using custom JavaScript?

I am trying to populate the "From" look up field using custom JavaScript in Dynamics CRM.

I'm new to JavaScript and Dynamics really struggling to do this.

Below is a screenshot of my code and solution.

The "From" field apparently this is Activity party type Sender

function PopulateFromLookUpField(executionContext) {

var formContext = executionContext.getFormContext();

var value = new Array(); //create a new object array
value[0] = new Object();
value[0].id = ; // set ID to ID
value[0].name = "new_name"; //set name to name
value[0].entityType = "sender"; //optional
formContext.getAttribute("sender").setValue(value);

}

I also tried the solution below it doesn't work.

function PopulateFromLookUpField(executionContext) {


 var lookUpObject.id = ;
   lookUpObject.name = "Joe CRM";
   lookUpObject.entityType = "sender";               
   formContext.getAttribute("sender").setValue(value);
   
}

Please advise and help.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I tried and this worked for me. Make sure to pass the correct field schema name, record GUID, record Name and entity Type properly.

var lookUpObject = new Array();
lookUpObject[0] = new Object();
lookUpObject[0].id = "7108f4e7-ac2b-eb11-a814-000d3a378f1b";
lookUpObject[0].name = "Arun Vinoth";
lookUpObject[0].entityType = "systemuser";               
formContext.getAttribute("from").setValue(lookUpObject);
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda