• Rafael Motta 9
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 0
    Replies
hi all. 
I need to do a select 28 records fields(picklist) from the custom object "caseCustom__c" and insert those records in GC_R_Filtro_Text__c field from case object.

I can do the select of case object, but I can´t insert in it  picklist records from Casecustom__c

 could you help me ?

this  is  my script :


trigger caseCustomAfterInsert on CaseCustom__c (after Insert) {
   
   List<case> listcases = new List<case>();
   map<id, CaseCustom__c > mapcasecustom = new map<id, CaseCustom__c>();
   
   for(CaseCustom__c cc:trigger.new){
       mapcasecustom.put(cc.textCaseId__c,cc);
   }
   
   if(mapcasecustom != null && mapcasecustom.size() > 0){
       for(case cs :[select id, survey_status__c,GC_R_Filtro_Text__c from case where id in :mapcasecustom.keyset()])
       
       {
         cs.GC_R_Filtro_Text__c = String.valueof(mapcasecustom.get(cs.id).CCAnswerFiltro1__c) != null?                  String.valueof(mapcasecustom.get(cs.id).CCAnswerFiltro1__c):'';
cs.GC_R_Filtro_Text__c = String.valueof(mapcasecustom.get(cs.id).CCAnswerFiltro2__c) != null?                  String.valueof(mapcasecustom.get(cs.id).CCAnswerFiltro2__c):'';
cs.GC_R_Filtro_Text__c = String.valueof(mapcasecustom.get(cs.id).CCAnswerFiltro3__c) != null?                  String.valueof(mapcasecustom.get(cs.id).CCAnswerFiltro3__c):'';
          cs.survey_status__c = 'Aplicado';
          listcases.add(cs);
       }
    }
   system.debug('---'+listcases);
   if(listcases != null && listcases.size() > 0)
      update listcases;
}

Hi all.

could you help me to found what's wrong with my sintaxis?

my problem is  that I have 3 logos and I need to set a logo depend for what Product/Farming refering the  email.

I try to did acording to Help.Salesforce said, but I dont know why  I can´t  display those logos, I found to in letterheads,  but Its  the  same problem.

this  is  my  sintaxis:
<img id='ASGROW' src="{!IF(relatedTo.NPS_Brand_Cultivo__c  =='ASGROW',"https://monsanto-lan--qa.cs40.my.salesforce.com/015a0000003SrsD","")}" alt="" height="{!IF(relatedTo.NPS_Brand_Cultivo__c  =='ASGROW',"96","0")}" width="{!IF(relatedTo.NPS_Brand_Cultivo__c  =='ASGROW',"160","0")}" />
  <img id='DekalbImg' src="{!IF(relatedTo.NPS_Brand_Cultivo__c =='DEKALB',"https://monsanto-lan--qa.cs40.my.salesforce.com/015540000004pim","")}" alt="" height="{!IF(relatedTo.NPS_Brand_Cultivo__c  =='DEKALB',"96","0")}" width="{!IF(relatedTo.NPS_Brand_Cultivo__c  =='DEKALB',"145","0")}" />
  <img id='DeltapineImg' src="{!IF(relatedTo.NPS_Brand_Cultivo__c =='DELTAPINE',"https://monsanto-lan--qa.cs40.my.salesforce.com/015540000004qF7","")}" alt="" height="{!IF(relatedTo.NPS_Brand_Cultivo__c  =='DELTAPINE',"96","0")}" width="{!IF(relatedTo.NPS_Brand_Cultivo__c  =='DELTAPINE',"253","0")}" />
 <br/><br/>

Following are  the logos but they is no showing

User-added image
Hi. can you  help me?, cos  I need to double or clone a layout and  copy almost everything  record fields, I did this, but when I check the double layout, I notice than the field  Owner, shows my name, but I need to show The same owner than the original  layout, For Example:

the original  layout owner  is "Randalp Ortega", when I clone that layout. The  owner Field Show "Rafael Motta" (me).

What I´m doing bad

I attach the object  and  the apex  code that I use.

regards
User-added image
this  is my apex code
User-added image