• Naveen Nelavelli 9
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 6
    Replies
Any one having experience of migrating from SSIS to Informatica or any other tools.What is the best etl to implement with salesforce ?
I am surprised to see this behaviour .I am updating billingCountry and billingpostalcode of Account.In trigger.new i am recieving billingpostalcode new value but not same case with billingcountry.
codesnippet:
trigger AccountTrigger on Account (before insert ,before update,after insert,after update) {
   if(trigger.isBefore){
       for(account accnt:trigger.new){
            system.debug('testing'+accnt.BillingCountry+accnt.BillingPostalCode);           
        } 
   } 
}

am i only the one who is facing this?
Description:  A 'before update' trigger on Opportunity. Trigger logic has some validations/consitions.

Completed Tasks: 
1.Trigger has been written.
2. All Errored Out Opportunity Id are stored in a map called: erorredOutOpportunityMap
3. Error on screen is displayed using: 
    webpageOpp.addError('Error Message');     

Help on
Best way to handle: 
(a) Show error to user (in browser) if record cannot be updated for some reason. e.g. A validation in trigger fails. 
(b) For bulk updates -  Skip over the ones that failed and update the rest. [Notify/Add to Queue for the missed Opportunities]. 



I would like to believe this is a relatively common use case in Salesforce applications. 

Is it a good industry practice to add errored out Opportunities to a queue and have a human look at it? 

I would really appreciate a pointer/steps/improvement & errors in above.



        
 





 
how to cover catch block in test class. below is the trigger. because if controller goes to update updatedAccSt  then it always update account
trigger SetAccountStatus on job__c (after insert) {
List<Account> AccSt = new List<Account_Status__c>();
List<Account> updatedAccSt = new List<Account_Status__c>();
List<Id> patientIds = new List<Id>();
for (job__c  job: trigger.new) 
	{
     patientIds.add(patient.id);
	}
	
AccSt = [Select Id,Account_Status__c from Account WHERE job__c in :patientIds ];
 
  for(Account_Status__c a : AccSt)
  {
    a.Account_Status__c = true;
    updatedAccSt.add(a);
  }
 
  if(updatedAccSt.size()>0)
  {
  try{
   update updatedAccSt;
   }
   catch{
      // here is code to send Email and other operation
   
   }
  }
}
below is the test class.
@istest(seealldata=false)
public class SetAccountStatustest {
    static testMethod void test()
    {
	patient__c pat = new patient__c();
		pat.name__c=Test;
		//some field
		insert pat;
		
	  Account acc = new Account();
	  acc.Name=Test;
	  acc.Patient__C=pat.id;
	  acc.Account_Status__c
	  //some field;
	  insert acc;
	  
	  job__c acc = new job__c();
	  job.Name__c=test;
	  //some field
	  insert job;
	  
	 }
	}
The above class is only example. my code is big code due to this i put here example.

 
Hi everyone,

I am new to APEX programming so this will probably be an absolute rookey question:

How do I trigger a certain email or email alert on a date/time field I create on contacts? So what I want to do is to send an email to a contact one minute before a manually given date/time on the contact's page in my salesforce.

Thanks for the help! 

Cheers
I am surprised to see this behaviour .I am updating billingCountry and billingpostalcode of Account.In trigger.new i am recieving billingpostalcode new value but not same case with billingcountry.
codesnippet:
trigger AccountTrigger on Account (before insert ,before update,after insert,after update) {
   if(trigger.isBefore){
       for(account accnt:trigger.new){
            system.debug('testing'+accnt.BillingCountry+accnt.BillingPostalCode);           
        } 
   } 
}

am i only the one who is facing this?
I receive this error when trying to do some simulation using flow. Is there a way to pinpoint excactly where the problem is when using flows.


An internal server error has occurred
Error ID: 809491697-12438 (402356324)