• Naresh Yadav
  • NEWBIE
  • 269 Points
  • Member since 2014

  • Chatter
    Feed
  • 8
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 75
    Replies

I keep getting this error when I click 'Check Challenge': 'Challenge Not yet complete... here's what's wrong:
 Case escalation failed to assign a task to the owner.'

I can't figure out what I've done wrong! The rule works exactly as it is supposed to.
This is the task information:
User-added image

Please help! Thanks!

I registered for a developer account today, was exploring the option to generate WSDL file which I could use for th SOAP interface to access/query the custom & standard objects. I googled about generating WSDL and many guys have mentioned of having enterprise or partner account. Does that mean, i cannot generate a WSDL using my developer account? Or do i need to create a developer account through some Salesforce partner. Kindly please guide me on this. 
Hi All,
Thanks in advance.
I have written a trigger on solution object Sample code below. Mysenariou islike this : we are saving the records in solution object defaulty the status field (picklist) value is Draft. When it changed to'Duplicate'then   solution Detail (Rich Text Area) also update to 'Duplicate' ?

    trigger solutiontest on Solution(after update){    
    
     set<id> solutionids= new set<id>();
      for(solution s : trigger.new){
          solutionids.add(s.id);
      
      }  
            
        list<solution> slist =[select id,SolutionNote, status from solution where id in : solutionids];
            for(Solution s : slist){
            if(s.status == 'Duplicate'){
                s.SolutionNote= s.status;
               slist.add(s); 
            }    
        
        }
        
        update slist;
          
    
    }

Thanks and Regards,
Raji
    public void addQuestion(){
        lstQuestion.add(new ObjectB__c(ObjectA__cId = Current_obj_Id));
       
        isEdit = true;
    
        } 
User-added image
User-added image
I am trying to create a field that deducts the "quoted amount" from the "transaction amount" only when the custom object "vendor" Vendor compnay is is Prominent Tickets.  Can someone assist me?

Quoted_Amount__c - Transaction_Amount__c && Vendor__r.Name = Prominent Tickets
I have a scenario where i need to find the stageName of the Oppty. The query is not returning the stageName, here is my code

global class UpdatePartnerAccountForOppty implements Database.Batchable<sObject>{

   global Database.QueryLocator start(Database.BatchableContext BC){
      return Database.getQueryLocator('SELECT id, Partner__c FROM Opportunity ');
   }

   global void execute(Database.BatchableContext BC, List<sObject> scope){
          Set<Id> accountIdSet = new Set<Id>(); 
          Set<Id> accountWonIdSet = new Set<Id>();
          
          List<Opportunity> opptys = new List<Opportunity>([SELECT Id,Partner__c, StageName FROM Opportunity]); 
          for (Opportunity opp: opptys) {
            if (opp.Partner__c != null) {
             accountIdSet.add(opp.Partner__c);
             system.debug('****PartnerAccount1***'+accountIdSet);
            } 
            if (opp.Partner__c != null && opp.StageName == 'Closed Won') {
            accountWonIdSet.add(opp.Partner__c);
            system.debug('****PartnerAccount2***'+accountIdSet);
           }      
        }     
      OppHandlerUpdateAccount.CalTotalReferralsForAccount(accountIdSet);
      OppHandlerUpdateAccount.CalTotalWonReferralsForAccount(accountWonIdSet);     
    }

   global void finish(Database.BatchableContext BC){
   }
}
Hi All,

i have two objects 
1. Assigned task - parent object
2. Report Information - child object

I have created a VF page and placed it on the Assigned Task detail page.
My Vf Page has two buttons
1. Add Report - which adds a new dynamic section
2. Save Report - Save all the data in Dynamic section

I am successfull in creating dynamic text boxes but I'm not able to save them. Could anyone please help me that how should I save my child records based on the id of the parent object.
My VF code is : - 
<apex:page standardcontroller="Assigned_tasks__c" extensions="TestTaskController1"> 
<apex:form > 
<apex:pageBlock > <
apex:pageBlockTable value="{!reportlist}" var="acc"> 
<apex:column headerValue="Report Name"> 
<apex:inputField value="{!acc.Report_Name__c}" rendered="{!NOT(saved)}"/> 
<apex:outputField value="{!acc.Report_Name__c}" rendered="{!saved}"/>
 <br /> </apex:column> <apex:column headerValue="Comments">
 <apex:inputField value="{!acc.Comments__c}" rendered="{!NOT(saved)}"/> 
<apex:outputField value="{!acc.Comments__c}" rendered="{!saved}"/> 
<br /> </apex:column> </apex:pageBlockTable>
 <apex:pageBlockButtons > 
<apex:commandButton value="Add Report" action="{!addAccount}"/>
 <apex:commandButton value="Save Report" action="{!saveAccount}" /> 
</apex:pageBlockButtons>
 </apex:pageBlock> 
</apex:form> 
</apex:page>

and APEX code is :- 

public class TestTaskController1 {

Report_Information__c task = new Report_Information__c();
Public boolean saved {get; set;}

public list<Report_Information__c> reportlist{ get; set; }

    public TestTaskController1(ApexPages.StandardController controller) {
              reportlist=new list<Report_Information__c>();
              reportlist.add(task);
              saved=false;
    }


Public void addAccount()
{
Report_Information__c acc = new Report_Information__c();
reportlist.add(acc);
}


public PageReference saveAccount() {
for(Integer i=1; i<reportlist.size(); i++)
{

insert reportlist;
saved=true;
}

 return Page.Allassigned;
}

}

Snapshot of my VF page which will be placed on Parent object.

User-added image
Hello Experts,

Need your assistance. We have a trigger that wil automatically create child records every time that the Parent Record Type is selected (e.g. If User selected the Parent Record Type "AIM"). I just need your inputs on how I can set all of these Child Records to one record type which is also AIM. Here is the code:


//trigger that creates a new production task for every new AIM Project with SEO products
 
trigger AutoCreateProductionTask on SFDC_Project__c (after insert) {

   List<Production_Task__c> newRecord = new List<Production_Task__c>(); 

   List<String> namePT = new List<String>();
   namePT.add('Website Audit Report and Recommendations');
   namePT.add('Keyword Research');
   namePT.add('Competitor Research');
   namePT.add('Run page speed loading test and make improvements');
   namePT.add('Run site on validator and fix broken links and html errors');
   namePT.add('Run crawl test and redirect any obsolete urls');
   namePT.add('Keyword mapping, meta data creation and implementation');
   namePT.add('Text content creation');
   namePT.add('Upload optimized text content, insert and highlight ketwords');
   namePT.add('Optimize keywords in footer links');
   namePT.add('Optimize alt tags of images');
   namePT.add('Create or improve HTML sitemap page');
   namePT.add('Add breadcrumbs navigation on inner pages');
   namePT.add('Add Google+ Authorship code on inner pages');
   namePT.add('Create Google Places listing');
   namePT.add('Submit site to web directories');
   namePT.add('Create Google Webmaster Tools profile');
   namePT.add('Create Google Analytics profile');
   namePT.add('Create and submit xml sitemap to Google');
   namePT.add('Create and publish 1 Press Release');
   
    for (SFDC_Project__c aim : Trigger.new) {
        
        if (aim.RecordTypeID == '012300000009FLk')
        if (aim.Product_Service__c == 'SEO - Premium'|| aim.Product_Service__c == 'SEO - Pro'|| aim.Product_Service__c == 'SEO - Starter')
        
                {

          for(Integer i = 0; i < namePT.size(); i++){
            
            Production_Task__c aimTask = new Production_Task__c();
            aimTask.Name = namePT [i];
            aimTask.Due_Date__c = Date.today().addDays(30);
            aimTask.Project__c = aim.Id;
            aimTask.Instructions__c = 'test';
            
                newRecord.add(aimTask);   
            
           }
           }
            insert newRecord;
   }
   }

Any assistance is greatly appreciated. Thank you. 
Hi all,

The code below involve 2 objects Registration_Layer__c & Meeting__c. It is a master-detail relationship. Each contact has a upto 3 records on the Registration_Layer__c, when you create a record on Meeting__c and populate fields datemeeting__c and points__c, the fields obligatorypointsobtainedYR1,YR2 etc should be populate with the value of points__c according to the year in datemeeting__c.

However, I get an error when trying to save a new record on the meeting__c object.

"Error: Invalid Data.
Review all error messages below to correct your data.
Apex trigger TrgOnMeeting caused an unexpected exception, contact your administrator: TrgOnMeeting: execution of AfterInsert caused by: System.NullPointerException: Attempt to de-reference a null object: Trigger.TrgOnMeeting: line 20, column 1"

What did I do wrong? 

​Thanks, Dave
 
Trigger TrgOnMeeting on Meeting__c (After insert, After Update){
     Set<Id> regIds = new Set<Id>();
	
	if(Trigger.isInsert || Trigger.isUpdate) {
        for(Meeting__c meeting : Trigger.new) {
            if(meeting.Registration_Layer__c != null)
                regIds.add(meeting.Registration_Layer__c);
        }
       }  
        Map<Id, Registration_Layer__c> mapReg = new Map<Id, Registration_Layer__c>([SELECT Id, CertRegFrom__c, ObligatoryPointsObtainedYr1__c, ObligatoryPointsObtainedYr2__c, ObligatoryPointsObtainedYr3__c, 

ObligatoryPointsObtainedYr4__c, ObligatoryPointsObtainedYr5__c, ObligatoryPointsObtainedYr6__c
                                                                                  FROM Registration_Layer__c WHERE Id IN: regIds]);
         
        for(Meeting__c meeting : Trigger.new) {
             
            if(meeting.datemeeting__c.Year() == (mapReg.get(meeting.Registration_Layer__c).CertRegFrom__c.Year()))  {
                mapReg.get(meeting.Registration_Layer__c).ObligatoryPointsObtainedYr1__c += meeting.Points__c;
            } else if(meeting.datemeeting__c.Year() == (mapReg.get(meeting.Registration_Layer__c).CertRegFrom__c.Year() + 1))  {
                mapReg.get(meeting.Registration_Layer__c).ObligatoryPointsObtainedYr2__c += meeting.Points__c;
            } else if(meeting.datemeeting__c.Year() == (mapReg.get(meeting.Registration_Layer__c).CertRegFrom__c.Year() + 2))  {
                mapReg.get(meeting.Registration_Layer__c).ObligatoryPointsObtainedYr3__c += meeting.Points__c;
            } else if(meeting.datemeeting__c.Year() == (mapReg.get(meeting.Registration_Layer__c).CertRegFrom__c.Year() + 3))  {
                mapReg.get(meeting.Registration_Layer__c).ObligatoryPointsObtainedYr4__c += meeting.Points__c;
            } else if(meeting.datemeeting__c.Year() == (mapReg.get(meeting.Registration_Layer__c).CertRegFrom__c.Year() + 4))  {
                mapReg.get(meeting.Registration_Layer__c).ObligatoryPointsObtainedYr5__c += meeting.Points__c;
            } else if(meeting.datemeeting__c.Year() == (mapReg.get(meeting.Registration_Layer__c).CertRegFrom__c.Year() + 5))  {
                mapReg.get(meeting.Registration_Layer__c).ObligatoryPointsObtainedYr6__c += meeting.Points__c;
            }
        }
         
        update mapReg.values();
    }

 

Hi Experts,

My requirement is to update custom settings field (checkbox) upon updating a checkbox on user layout. In short I want to control custom setting checkboxes from user layout directly.

I have a custom settings object A  [two fields A1(User lookup) and A2(Checkbox)] 
and
Object B [two fields B1 and B2 (checkbox)]

I want to update checkbox fields (A2 and B2) to true whenever I turn on the checkbox on user layout. 

Is this possible?? 

Thanks in advance! Prefferd if it can be done using Out of Box functionality.

Best Regards,
Rahul
 
  • September 24, 2018
  • Like
  • 0
Am getting error from the following - can anyone advise correct syntax for subtracting two sum amounts, many thanks
Error: Compile Error: Missing 'SELECT' at 'sum' at line 35 column 50


    for(AggregateResult q : [select Project__c, (sum(Amount) - sum(npe01__Amount_Outstanding__c) )
        from Opportunity where (StageName = 'Complete - Won' or StageName = 'Agree Payment Schedule'  or StageName = 'Sign Contract'
        or StageName = 'Pledged' or StageName = 'Funding approved') and Project__c != null and Project__c IN :ProjectIds group by Project__c])
Great new opportunity in a dynamic and growing tech company located in Toronto, Canada - looking for a skilled and energetic Salesforce Developer!

http://touchbistro.applytojob.com/apply/wnoCH6jysr/Salesforce-Developer

-TB
We are dynamic, progressive and forward thinking International Company providing security services in the Maritime Industry. We are looking for a fresh, eager, and passionate Salesforce developer who will work in a team to develop and support Salesforce.com platform for our growing family in Bulgaria. We are flexible when it comes to your location but we prefer to hire Bulgarian developer
 
Job Responsibilities:
  • Develop, design and test our new system based on Salesforce.com;
  • Salesforce configuration, integration, implementation and customization;
  • Close collaboration with QM;
  • QA activities;
Skills Required:
  • Experience in Salesforce Development: Apex (must have), Visualforce, Lightening UI, triggers/validation rules, core/custom objects, security settings, DataLoader;
  • Understanding of .xml principles;
  • Experience in/understanding of CRM, Cloud technologies;
  • Experience developing and delivering solutions to real customer problems;
  • Ability to work in global, distributed team;
  • Very good level of English;
  • Strong Communication skills;
  • Ability to work under pressure;
  • High performer;
  • Salesforce Developer Certification would be advantageous;
The Company Offers:
  • An exciting and challenging position;
  • Competitive Salary;
  • Professional development and experience;
  • Excellent working environment;
If you recognize yourself as the right person for the job, do not hesitate and contact us!
 
  • November 28, 2017
  • Like
  • 0
Looking for a full scope developer looking for an opportunity to get in on the ground floor with a start up in Cincinnati or near by.
Position is full time, contract to hire, onsite or remote (no offshore). Responsibilities include day to day development activities, primary focus on custom development using Apex and Visual Force. Please contact me to learn more!
Hi All,

I have been asked to create a trigger that will create records on a custom object when an opportinity is closed won. i can do this without issue, but i am running into a problem when the quantity is greater than 1.

What i need is for it to create 2 records if the opportunity quantity is 2 but i have no idea how to do this.

any help would be greatly appreciated
HI Everyone 

Can anybody help for vf page design like this ..
User-added image
Job Role: Senior Salesforce Developer
Location: Bloomington, MN
Client: Sawtooth Solutions, LLC
Duration: 3 months with likely extensions
Job Description:
Sawtooth serves RIAs, Broker Dealers, and Banks by offering a comprehensive and flexible platform for overseeing the entire wealth management process across all account types. We offer both UMA and SMA solutions representing more than 300+ strategies.  We manage investments using Best-of-Breed software integrations powered by the Salesforce.com platform.  Our collaborative approach helps advisors create an institutional level wealth management offering with definable and repeatable investment, sales and operational processes, leading to increased ability to scale and increased enterprise value.
 
Sawtooth is looking for a senior salesforce developer to help with several project initiatives including the build and integration of new tools for quantitative and qualitative research, proposal generation, and surveys and custodial forms that include electronic signatures.
 
Position Requirements:
  • 3+ years of industry experience as a Salesforce.com developer
  • Must have historical and proven knowledge and practical application of Visualforce, APEX programming, Force.com APIs, and Web Services
  • Salesforce Advanced Developer certification is highly preferred
  • Highly analytical while also having a strong and deep technical background in Salesforce.com
  • Ability to work on multiple tasks and deliver results with aggressive timelines
  • Able and willing to work independently and in a fast-paced environment with tight deadlines, with minimal supervision
I am looking for a cetified developer to do some ad hoc jobs for our organization.   Our SF have lots of customization, and integration with Marketo, Genband and another internal system.   We also have a web application form.  We foresee some changes and enhancements in near future.   Candiates need to work experience in these areas.    You can be in Canada or outside Canada.   Thanks

Salesforce Developer - £50,000 - £65,000
 
I am working alongside a boutique Salesforce Partner who are looking for a Salesforce Developer. The role will be predominately based within London and you will be working on a number of new greenfield sites. This is an exciting opportunity to grow a Salesforce Development team around yourself, at the moment the consultancy boasts more than 20 consultants on a permanent basis.
 
They are working on a wide range of projects including configuration, customisation, integration and implementation making this an exciting position within the Salesforce market. They are currently working within both the Sales and Service platforms within Salesforce.
In return the client can offer further Salesforce Certifications and training within the platform.
 
Key Skills –
 
2 years + as a Salesforce Developer
Strong skills within Apex, Visual Force and Batch Apex
Project exposure including configuration, integration, implementation and customisation
Salesforce Developer Certification would be advantageous
Package –
 
£50,000 - £65,000 depending on experience
Further Salesforce Certifications 
Further Salesforce training
Pension

Performance related bonus
-----------------------------------

Salesforce Developer, Salesforce Development, Salesforce Senior Developer, Salesforce Lead Developer. 
Hello

I am in need of some visualforce programming and customizing. I have several different visual force pages to be set up.

Please let me know if you are interested, please email me for more info.

Jonathan@bullioncoatings.com

Thanks

Jonathan Bullion
Hi Guys

I have created a validation rule like if one field blank then record would not be saved.its working but error message showing like this

Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Please fill the Value: [].

why this error message coming.i need the only error message Please fill the value.

AND(
       Product_Code__c = "C2",  
   ISBLANK(No_of_ups__c)
)


How it is possible.

I keep getting this error when I click 'Check Challenge': 'Challenge Not yet complete... here's what's wrong:
 Case escalation failed to assign a task to the owner.'

I can't figure out what I've done wrong! The rule works exactly as it is supposed to.
This is the task information:
User-added image

Please help! Thanks!

Hi ,

I want to generate a pdf of standard detail page for order object. How to do it? Please help

Thanks,
Amita
Hello,

I am trying to invoke an Apex method from a Process that will email a certain set of Contacts associated with an Account that gets marked via a custom field.  I have the class below, but nothing is happening when I change the Account.  The Process is fired, but nothing happens from the Apex.  Does anyone know why?
 
public class VF_ClassComplCustEmail {

    @InvocableMethod
    public static void SendEmailCompl(List<Id> acctId){

    EmailTemplate templateId = [SELECT Id
                                FROM EmailTemplate
                                WHERE Id = '00XL0000000IePcMAK'];
                                
    List<Contact> complCont = [SELECT Id, Non_Comp_Contact__c, Email
                               FROM Contact
                               WHERE Id in: acctId AND Non_Compl_Contact__c = TRUE];


    List<Messaging.SingleEmailMessage> allmsg = new List<Messaging.SingleEmailMessage>();
        for(contact con : complCont)
        {
            Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
                mail.setTemplateID(templateId.Id); 
                mail.setTargetObjectId(con.id);
                mail.setSaveAsActivity(false);
                allmsg.add(mail);
        }
    Messaging.sendEmail(allmsg,false);
    
    }
}