• Amit Khanduri.
  • NEWBIE
  • 75 Points
  • Member since 2015

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 2
    Likes Given
  • 7
    Questions
  • 21
    Replies
What exactly the "Duplicate management" functionality in Data.com ? is it gonna stop users when entering duplicate records in their SFDC instance ?? 
Superbadge : Process Automation Specialist

Challenge Not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: PTYKBRRC
I Need a Contact name feild in lead convert page which will carry forward the contact name in opportunity. 
Here we go ...

trigger o1 on Opportunity (Before Insert) {

for(Opportunity o:Trigger.new){
    ID aid = o.Account.ID;
Account a = [Select Name,Industry From Account WHERE ID = :aid];

if(a.Industry == 'Education'){
o.addError('No more Opportunity from Education Domain');
}
}
}

Above triggere is not allowing me to create opportunity for any account.
As per www.salesforce.com API Endpoint Retirement https://help.salesforce.com/HTViewSolution?id=000229717 ?? we need to use login.salesforce.com. but when i changed https://www.salesforce.com/services/Soap/u/30.0 to http://login.salesforce.com/services/Soap/u/30.0 API is not working for Us. any help ???
public without sharing class OpportunityUtility {
    public static void assignAccountToAM(String opportunityId){
        Opportunity oppRec = [Select Id, AccountId,OwnerId,Owner.Account_Manager__r.Id,
            Owner.Account_Manager__c,Account.OwnerId,Account.Owner.Is_Account_Manager__c from Opportunity where Id =: opportunityId];
        if(oppRec.Account.Owner.Is_Account_Manager__c == false && 
                oppRec.Owner.Account_Manager__c != null && 
                        oppRec.Owner.Account_Manager__r.Id != oppRec.Account.OwnerId){
            Account accountRec = [Select Id,OwnerId from Account where Id=: oppRec.AccountId];
            accountRec.OwnerId =oppRec.Owner.Account_Manager__c;
            update accountRec; 
        }
    }
}

@isTest(seeallData=false)
public  class TestClassforOpportunityUtilityclass {
    
     static void firstOpp(){
        User u1= [select id from User where alias='AUser' AND Is_Account_Manager__c = false limit 1];
      update u1;
        
        User u2= [select id from User where alias='AaUser' AND Is_Account_Manager__c = true limit 1];
      update u2;
        
    
date dt= date.today();  
       dt = dt-90;
       Date dt1 = dt.toStartOfMonth();
       integer noOfDays = date.daysInMonth(dt1.year(),dt1.month());
       Date dt2 = date.newInstance(dt1.year(),dt1.month(),noOfDays);
List<Opportunity> optys= new List<Opportunity>();

Opportunity opty = new Opportunity();
opty.StageName = 'warm';
opty.CloseDate= dt;
opty.CreatedDate=dt2;
opty.Accountid ='aks';
opty.Account.Owner.Is_Account_Manager__c = false;
opty.Account.owner.id = u1.id;
opty.Owner.Account_Manager__r.Id = u2.id;
opty.name='optytest';
opty.Opplead_id__c='testid';
opty.Division__c='Jaguars';
         Optys.add(opty);
 insert optys;
         
         for(Opportunity loopopp : optys) {
           System.assertEquals(loopopp.Account.owner.id, loopopp.Owner.Account_Manager__c);
             System.debug('loopopp');
           // loopopp.Account.owner.id = optys.get(Owner.id).Account_Manager__c;
         
         update loopopp;
     }
    }
     
}

Last three line of my class is showing not tested please rectify my test class.
how to unable salesforce1 only for using chatter, should not visible data for all users no matters which profile they owned ??
i wanted to restrict chatter feed (only related with opportunity nd accounts) in groups. it should not be visiable to all, how to acheive that ??
The following query works perfectly fine and returns all of these fields but when i checked Account objects fields i could not find CreatedDate field there. What is the reason for that , is this field hidden or something ? 
SELECT  ID,
        Name,
        Industry,
        CreatedById,
        CreatedDate,
        LastMOdifiedByID
FROM    Account
We're instructed to send an email to the finance group -- that's pretty vague. I'm going to create a Finance group, made up of the CFO and subordinates. Am I missing something in the instructions?
Superbadge : Process Automation Specialist

Challenge Not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: PTYKBRRC
I'm unable to check step 2: Automate Accounts because I'm receiving this error: Challenge Not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: ZKCVFIZH
 
Here we go ...

trigger o1 on Opportunity (Before Insert) {

for(Opportunity o:Trigger.new){
    ID aid = o.Account.ID;
Account a = [Select Name,Industry From Account WHERE ID = :aid];

if(a.Industry == 'Education'){
o.addError('No more Opportunity from Education Domain');
}
}
}

Above triggere is not allowing me to create opportunity for any account.
Hello! Hoping someone can help - we recently migrated from Case Comments to Case Feed Layouts within our community. 
  • When the "Case Status" field is in "Awaiting Customer Feedback" - we previously had workflow rules to kick the Case Status back to "Working" when a customer posted a comment
  • With Case Feed Layout - we were able to use Flow and Process Builder to replicate this action for a New Case Feed Item
  • With Case Feed Layout - we are struggling to replicate this functionality for a new Case Post Comment (customer posts a Feed Item Comment rather than a new feed Item)
What would be the best way to accomplish this? Not an Apex Developer by trade, but hoping this can be done with a relatively simple trigger - any feedback would be appreciated!
User-added image

 
As per www.salesforce.com API Endpoint Retirement https://help.salesforce.com/HTViewSolution?id=000229717 ?? we need to use login.salesforce.com. but when i changed https://www.salesforce.com/services/Soap/u/30.0 to http://login.salesforce.com/services/Soap/u/30.0 API is not working for Us. any help ???
I have built and rebuilt this challenge and keep getting this UnHandled fault error after the last step of creating the Opportunity. 
I have removed the creation of the Oppy and everything works. But when adding Oppy it causes this error. 

Anyone else have this issue?
Arg, I've read other posts about this but it will not work for me! The validation rule in 'Formulas & Validations' is: 
To complete this challenge, add a validation rule which will block the insertion of a contact if the contact is related to an account and has a mailing postal code (which has the API Name MailingPostalCode) different from the account's shipping postal code (which has the API Name ShippingPostalCode).Name the validation rule 'Contact must be in Account ZIP Code'.
A contact with a MailingPostalCode that has an account and does not match the associated Account ShippingPostalCode should return with a validation error and not be inserted.
The validation rule should ONLY apply to contact records with an associated account. Contact records with no associated parent account can be added with any MailingPostalCode value. (Hint: you can use the ISBLANK function for this check)

My rule is: 
AND(
NOT( ISBLANK( AccountId )),
Contact.MailingPostalCode <>   Account.ShippingPostalCode
)

But it comes back with 'The validation rule failed to enforce the business logic.'

Not sure what I'm missing.....
I set up a developer edition but cannot see Trailhead Challenges.  Please advise.  
Does anyone know why I am getting this error, when the process clearly exists and is active?

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: Process failed. First exception on row 0; first error: NO_APPLICABLE_PROCESS, No applicable approval process was found.
User-added image
What exactly the "Duplicate management" functionality in Data.com ? is it gonna stop users when entering duplicate records in their SFDC instance ?? 
Please help!  I am stuck on creating flows.  Can't seem to work.  I keep on re-doing my work and not sure if I am doing it right.  The challlenge as follows:

To pass this challenge you will need to create a flow that implements the business process of Account, Contact, and Opportunity data entry and place it on a Visualforce page.The Flow will need to be called 'New Customer Flow'.
The Flow should have a screen with fields for First Name, Last Name, Company Name, Opportunity Amount, and Opportunity Stage.
The Flow needs to have steps to create an account, a contact, and an opportunity from the data entered.
Opportunity name, close date and stage are required fields. Name the Opportunity '{Company Name} - {Last Name}', set the close date to one month from today and set the stage to 'Prospecting'.
The Flow should be invoked from a Visualforce page.
The Visualforce page should be called FlowPage.
The Visualforce page will need a component to reference the 'New Customer Flow' process.

If possible, if you can provide a snapshot.

Thank you.
What exactly the "Duplicate management" functionality in Data.com ? is it gonna stop users when entering duplicate records in their SFDC instance ?? 
I was thinking that is a good idea that we can share our trailhead scores with friends or team work, for fun o just to monitor the progress.