• HARISH S 11
  • NEWBIE
  • 15 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 11
    Questions
  • 7
    Replies
Am getting the below error in Fulfillment creation process builder te 3rd Challenge, can somebody please help me out here?

Challenge Not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the “Fulfillment Creation” process failed. Give your Salesforce admin these details. This error occurred when the flow tried to update records: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY: quotesync.OppSyncTrigger: execution of AfterUpdate caused by: System.QueryException: SELECT Id, MasterLabel, DeveloperName, Description, NamespacePrefix ^ ERROR at Row:1:Column:27 No such column 'one' on entity 'Opportunity'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. (quotesync). You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 2100810752-53030 (1797524021): []
Guys I have embedded a lightning component on a VF Page, so there is a lighting lookup field on my component, the lookup is perfectly working fine except onething. So usually when we start typing in a lookup field it does show a magnifying glass below.
For example here when I start typing it shows the account names. So I have an account name called "test". So If I have type until "te" it is showing a magnifying glass symbol below my lookup field but when I click on it it is not showing a list of account names starting with "te". I can understand that it is not working as this component is called from VF Page.

So if I click on the below highlighted region there are no pop-ups with account names starting with "te". This functionality works very well if it is a standalone lightning components added into a lightning App Builder. Screenshot on lightning input field
I am trying to Change the Owner field on a contact if the CreatedDate is more than three days using workflow. Could some help me witth the formula?
Hello am bit new to salesforce, can somebody help me with this?


Public class Accountcopycheck{
        Set <Id> accid = new Set<Id>();
    Public static void Accountcopymethod(List <Account_copy__c> acccpy){
        for(Account a :acccpy){
            if(acccpy.AccountcopyId != null){
            accid.add(a.AccountId);
        }
        }
    List<Account> listacc = [ Select id, name, phone, website from Account where id IN:accid];
        if(listacc.size()>0){
        for(Account ab:listacc){
            for(Account_copy__c acopy:ab.acccpy){
                acopy.Account__c=ab.Name;
                acopy.Phone__c=ab.phone;
                acopy.Website__c=ab.phone;
    }
    }
   }
   
   
COuld someone please help me with a trigger on account object and populate owner name in any custom field.
trigger on Lead if the record is old  & before then update the lead title as old lead ,if it is new & before update title as new lead.
Hello - Could someone help me with this trigger, a trigger on contact object to get the number of days Lived, take two custom fields 1) Date of birth, 2)Number of days Lived, populate the days in second field.
I have the the below code which works very well if I insert a new record, but if I add after update in the trigger it is not working and throws some organizational error. Could somebody please let me know what needs to be done if I need to update the existing records in the org?

trigger updatecontact1 on  Contact (after insert){
    List<contact> lstConUpdate = new List<Contact>();
    set<Id> sAccId = new set<Id>();
    for(Contact con: trigger.new){
        sAccId.add(con.AccountId);
    }
List<Account> lstAccount = [select id, Address_1__c, Address_2__c,City__c,Country__c, (select id,Address_1__c, Address_2__c,City__c,Country__c from contacts) from account where id IN: sAccId];
    for(Account acc: lstAccount){
        for(Contact con: acc.contacts){
            con.Address_1__c = acc.Address_1__c;
            con.Address_2__c = acc.Address_2__c;
            con.City__c=acc.City__c;
            con.Country__c=acc.Country__c;
            lstConUpdate.add(con);
        }
    }
    if(lstConUpdate.size() > 0){
        update lstConUpdate;
    }   
}
Hello I have been trying to update the contact record's address from account respective account record. But I have ended up in error saying

"Error: Compile Error: unexpected token: '<' at line 7 column 5". Below is the code, could somebody please help me?

trigger updatecontact1 on  Contact (after insert){
    List<contact> lstConUpdate = new List<Contact>();
    set<Id> sAccId = new set<Id>();
    for(Contact con: trigger.new){
        sAccId.add(con.AccountId);
    }
List<Account> lstAccount = [select id, Address_1__c, Address_2__c,City__c,Country__c(select id,Address_1__c, Address_2__c,City__c,Country__c from contacts) from account where id IN: sAccId];
    for(Account acc: lstAccount){
        for(Contact con: acc.contacts){
            con.Address_1__c = acc.Address_1__c;
            con.Address_2__c = acc.Address_2__c;
            con.City__c=acc.City__c;
            con.Country__c=acc.Country;
            lstConUpdate.add(con);
        }
    }
    if(lstConUpdate.size() > 0){
        update lstConUpdate;
    }   
}
Hi Guys,

Am new to salesforece and thisis my fist trigger. So my requirement is if am trying to update an opportunity record and if the new amoutn is less tha the old amount I should get and error  else it should alow me to update the record.

I tried the belwo but doesn't seem to work, Could somebody please help me?

trigger old_new_amount_check on Opportunity (before update) {

        For (opportunity a: Trigger.New){
        
        Opportunity oldAmount = Trigger.oldMap.get(a.Amount);
                if(a.Amount<a.oldAmount){
                    
                    a.addError('New Amount is less that old AMount');
                    }
                    else{
                    
                    System.debug('Opportunity AMount Updated');
                    
                    }
                    
               }     
        
}
Hi All,

Am new to salesforce and while going through the trailhead excercises I came across the below formula, am confused with the logic, could somebody please help me?
OR(
LEN(BillingCountry) = 1,
NOT(
CONTAINS(
"AF:AX:AL:DZ:AS:AD:AO:AI:AQ:AG:AR:AM:" &
"AW:AU:AZ:BS:BH:BD:BB:BY:BE:BZ:BJ:BM:BT:BO:" &
"BA:BW:BV:BR:IO:BN:BG:BF:BI:KH:CM:CA:CV:KY:" &
"CF:TD:CL:CN:CX:CC:CO:KM:CG:CD:CK:CR:CI:HR:" &
"CU:CY:CZ:DK:DJ:DM:DO:EC:EG:SV:GQ:ER:EE:ET:FK:" &
"FO:FJ:FI:FR:GF:PF:TF:GA:GM:GE:DE:GH:GI:GR:GL:" &
"GD:GP:GU:GT:GG:GN:GW:GY:HT:HM:VA:HN:HK:HU:" &
"IS:IN:ID:IR:IQ:IE:IM:IL:IT:JM:JP:JE:JO:KZ:KE:KI:" &
"KP:KR:KW:KG:LA:LV:LB:LS:LR:LY:LI:LT:LU:MO:MK:" &
"MG:MW:MY:MV:ML:MT:MH:MQ:MR:MU:YT:MX:FM:MD:MC:" &
"MC:MN:ME:MS:MA:MZ:MM:MA:NR:NP:NL:AN:NC:NZ:NI:" &
"NE:NG:NU:NF:MP:NO:OM:PK:PW:PS:PA:PG:PY:PE:PH:" &
"PN:PL:PT:PR:QA:RE:RO:RU:RW:SH:KN:LC:PM:VC:WS:" &
"SM:ST:SA:SN:RS:SC:SL:SG:SK:SI:SB:SO:ZA:GS:ES:" &
"LK:SD:SR:SJ:SZ:SE:CH:SY:TW:TJ:TZ:TH:TL:TG:TK:" &
"TO:TT:TN:TR:TM:TC:TV:UG:UA:AE:GB:US:UM:UY:UZ:" &
"VU:VE:VN:VG:VI:WF:EH:YE:ZM:ZW",
BillingCountry)))
Guys I have embedded a lightning component on a VF Page, so there is a lighting lookup field on my component, the lookup is perfectly working fine except onething. So usually when we start typing in a lookup field it does show a magnifying glass below.
For example here when I start typing it shows the account names. So I have an account name called "test". So If I have type until "te" it is showing a magnifying glass symbol below my lookup field but when I click on it it is not showing a list of account names starting with "te". I can understand that it is not working as this component is called from VF Page.

So if I click on the below highlighted region there are no pop-ups with account names starting with "te". This functionality works very well if it is a standalone lightning components added into a lightning App Builder. Screenshot on lightning input field
Am getting the below error in Fulfillment creation process builder te 3rd Challenge, can somebody please help me out here?

Challenge Not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the “Fulfillment Creation” process failed. Give your Salesforce admin these details. This error occurred when the flow tried to update records: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY: quotesync.OppSyncTrigger: execution of AfterUpdate caused by: System.QueryException: SELECT Id, MasterLabel, DeveloperName, Description, NamespacePrefix ^ ERROR at Row:1:Column:27 No such column 'one' on entity 'Opportunity'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. (quotesync). You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 2100810752-53030 (1797524021): []
Guys I have embedded a lightning component on a VF Page, so there is a lighting lookup field on my component, the lookup is perfectly working fine except onething. So usually when we start typing in a lookup field it does show a magnifying glass below.
For example here when I start typing it shows the account names. So I have an account name called "test". So If I have type until "te" it is showing a magnifying glass symbol below my lookup field but when I click on it it is not showing a list of account names starting with "te". I can understand that it is not working as this component is called from VF Page.

So if I click on the below highlighted region there are no pop-ups with account names starting with "te". This functionality works very well if it is a standalone lightning components added into a lightning App Builder. Screenshot on lightning input field
trigger on Lead if the record is old  & before then update the lead title as old lead ,if it is new & before update title as new lead.
Hello I have been trying to update the contact record's address from account respective account record. But I have ended up in error saying

"Error: Compile Error: unexpected token: '<' at line 7 column 5". Below is the code, could somebody please help me?

trigger updatecontact1 on  Contact (after insert){
    List<contact> lstConUpdate = new List<Contact>();
    set<Id> sAccId = new set<Id>();
    for(Contact con: trigger.new){
        sAccId.add(con.AccountId);
    }
List<Account> lstAccount = [select id, Address_1__c, Address_2__c,City__c,Country__c(select id,Address_1__c, Address_2__c,City__c,Country__c from contacts) from account where id IN: sAccId];
    for(Account acc: lstAccount){
        for(Contact con: acc.contacts){
            con.Address_1__c = acc.Address_1__c;
            con.Address_2__c = acc.Address_2__c;
            con.City__c=acc.City__c;
            con.Country__c=acc.Country;
            lstConUpdate.add(con);
        }
    }
    if(lstConUpdate.size() > 0){
        update lstConUpdate;
    }   
}
Hi Guys,

Am new to salesforece and thisis my fist trigger. So my requirement is if am trying to update an opportunity record and if the new amoutn is less tha the old amount I should get and error  else it should alow me to update the record.

I tried the belwo but doesn't seem to work, Could somebody please help me?

trigger old_new_amount_check on Opportunity (before update) {

        For (opportunity a: Trigger.New){
        
        Opportunity oldAmount = Trigger.oldMap.get(a.Amount);
                if(a.Amount<a.oldAmount){
                    
                    a.addError('New Amount is less that old AMount');
                    }
                    else{
                    
                    System.debug('Opportunity AMount Updated');
                    
                    }
                    
               }     
        
}