Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

205
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda