• Rabindranath
  • NEWBIE
  • 234 Points
  • Member since 2013
  • Associate Consultant
  • Virtusa Polaris

  • Chatter
    Feed
  • 6
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 62
    Questions
  • 119
    Replies
Hello there,

Interested in peoples thoughts on whether it is essential for a company with Salesforce to always have a Salesforce dedicated team.

My company have recently disbanded thier Salesforce team and placed the members in various project teams, the theory being that each project team will have a Salesforce skill set. However, it does leave the question open of who is responsible for managing and monitoring the Saleforce application as a whole?

Anybody had a similar experience?
Any thoughts?

 
Hello,

When weland on page, there is a button called "create case" which is default button,
I want to override this button only for specific profiles, i will use a custom button intead..

how is it possible ?
I am trying to create a new report type that show multiple accounts for each contact.
the page layout of Contact for related list "Related Accounts" is showing column Direct and Roles, however I cant find these 2 columns in Accounts object and Contact object while creating the report type.

Please let me know how Page layout translate these 2 columns.
thanks

 
Dear All, if you can help me out here,
I have the below custom object, with all custome fields.

Now if the first field " Are you driving" has two vaalues Yes & No. If its YES, i want the below fields to be hided( no need to fill), If its only NO , then the user need to fill the below fields. Is it a way possible by any point and click option ? or entire page need to get created in VF ?
As i am not that perfect in apex coding, alternate method wld be more useful. If Apex is the only way, if some one cann give me some coding started suggest. Thanks
User-added image
 
I posted once but didn't receive any response.  Has someone developed a button we can place on the quote object that would allow you to "delete" multiple line items all at once?
I am trying to create a custom button case that would result in a child case. I would like to carry over the isEscalated flag from the Parent Case over to the Child Case but I do not know what the field id is for the isEscalated field. Here is a snippet of that custom button.

/500/e?nooverride=1
&RecordType=01234000000M5NX
&cas28_lkid={!Case.Id}
&cas28={!Case.CaseNumber}
&cas7={!Case.Status}
&cas8={!Case.Priority}
&cas11={!Case.Origin}
&cas14={!Case.Subject}
&?????={!Case.IsEscalated}
&saveURL=/{!Case.Id}
&retURL=/{!Case.Id}
Hello All,

Can someone help me in achieving the below requirement

I have a field (Which is a master -detail) and i want this field to be not visible in creation page (which is a vf page), but on saving the record it should be visible(Standard detail page)

Thanks in advance
Hi all,

PLease help me out in achieving this below shown GUIUser-added image

 
Hi All,

Can anyone help me out in alligning the multi radio buttons horizontally?

User-added image
Hi All,

I need to migrate all the Proposed Events which are residing in Salesforce for my Organisation.

But while doing export i got the below mentioned error ::

Saving a proposed event through the API is not allowed. Please use the salesforce.com application to modify this proposed event

Help me out ,how can i migrate these proposed events in Salesforce.

Thanks in advance

Regards,
Rabindranath

Hi ......

 

Please find the below class:::

public with sharing class coninterpage {
    public Id conId;
    public Id accId;
    public List<RecordType> recType;
    public Account recTypeId;
    public List<contact> con;
    Public String hostName;

    public coninterpage(ApexPages.StandardController controller) {
        hostName = ApexPages.currentPage().getHeaders().get('Host');

    }   
       
    public PageReference inter(){
        Account_Profile_Name__c mc = Account_Profile_Name__c.getValues(userinfo.getProfileId());
        Boolean field = mc.Standard_Pages__c;
        conId = ApexPages.currentPage().getParameters().get('id');
        system.debug('==== '+conId);
        con = [select id, AccountId from contact where id=:conId limit 1];
        system.debug('====@@@@ '+con);
        for(Contact c12:con)
            {
            accId = c12.AccountId; 
            }
        if(accId!=null){
            system.debug('====@@@@ '+con[0].AccountId );
            system.debug('====!!!!! '+accId);

            recTypeId = [SELECT RecordTypeId FROM Account where id=:accId limit 1];
            system.debug('==== $$$$$$'+recTypeId);

            recType = [SELECT Id,Name FROM RecordType where id=:recTypeId.RecordTypeId];
            system.debug('====%%%%%% '+recType);
                
     // The below code will redirect to the PersonTabDetailPage.     
            if(recType[0].Name=='Person')
            {
            if(field)
            {
            pagereference ref = new pagereference('https://'+hostname+'/'+accId);    
            ref.setRedirect(true);
            ref.getParameters().put('nooverride', '1');
            return ref;
            }
        else{
             PageReference pageRef = new PageReference('https://'+hostname+'/apex/PersonTabDetailPage?id='+accId);
                    system.debug('@@@@@@@@@@@@@'+pageRef);
                    return pageRef ;
                    }
                   
             }       
     // The below code will redirect to the conpagelayout.  
            if(recType[0].Name=='Corporation')
            {
            if(field)
            {
            pagereference ref = new pagereference('https://'+hostname+'/'+conId);    
            ref.setRedirect(true);
            ref.getParameters().put('nooverride', '1');
            return ref;
            }
        else{
            PageReference pageRef = new PageReference('https://'+hostname+'/apex/conpagelayout?id='+conId);
             system.debug('@@@@@@@@@@@@@'+pageRef);
             return pageRef ;
            }
         // return null;   
        }
        }
        else{
        if(field)
            {
            pagereference ref = new pagereference('https://'+hostname+'/'+conId);    
            ref.setRedirect(true);
            ref.getParameters().put('nooverride', '1');
            return ref;
            }
        else{
            PageReference pageRef = new PageReference('https://'+hostname+'/apex/conpagelayout?id='+conId);
             system.debug('@@@@@@@@@@@@@'+pageRef);
             return pageRef ;
            }

              
            }
    
    return null;
}
}

 Right now i can cover only upto 26% ...Please help me out in this regard.....

@isTest
public class Test_coninterpage {
     public static testmethod void method2(){
     list<recordtype> rCorp= new List<Recordtype>([select id,DeveloperName  from recordtype where  SobjectType='Account' and DeveloperName ='Corporation' limit 1]);
        Account acc = new Account(Name='bgt',recordtypeid=rCorp[0].id,Status__c='Active',Type = 'Prospect');
        insert acc;
        Contact continter = new Contact(LastName = 'VRaj',AccountId=acc.id);
        insert continter ;
         Contact continter2 = new Contact(LastName = 'VRaj');
        insert continter2 ;
        
        List<Account_Profile_Name__c> Lcs = new List<Account_Profile_Name__c>();
          Account_Profile_Name__c apn = new Account_Profile_Name__c();
          apn.Standard_Pages__c = true;
          Lcs.add(apn);
          
          insert Lcs;
          
          
          ApexPages.StandardController ctrl=new ApexPages.StandardController(continter);
          System.currentPageReference().getParameters().put('id',continter.id);
          coninterpage conint = new coninterpage(ctrl);
          //,RecordTypeId='01260000000DnCTAA0'
         
          conint.inter();    
  ApexPages.StandardController ctrl2=new ApexPages.StandardController(continter2);
          System.currentPageReference().getParameters().put('id',continter2.id);
          coninterpage conint2 = new coninterpage(ctrl2);   
          //conint2 = new coninterpage();
          
          /*List<Account_Profile_Name__c> Lcs = new List<Account_Profile_Name__c>();
          Account_Profile_Name__c apn = new Account_Profile_Name__c();
          apn.Standard_Pages__c = true;
          lstContacts.add(apn);
          
          insert Lcs;*/
          
          
          /*Account_Profile_Name__c mc = Account_Profile_Name__c.getValues(userinfo.getProfileId());
    mc.Standard_Pages__c=true;
        update mc;*/
            try{conint2.inter();          }
            catch(exception e){
            
            }
         }
     }

 

Hi All....

 

Please help me out in understanding the List View Standard Clone Functionality in Salesforce....

 

Please help me in this Regard...

 

 

 

 

 

 

Hi All,,

 

I have deployed all my Test Class with more than 75% of code coverage in one Sandbox.

 

When i run all  Tests in this Sandbox it shows me only 65% code coverage is completed,but when i run individual Test Class its covered more than 75%.

 

Why is there difference in Code Coverage...

 

Thanks for your help in Advance....

 

 

 

Hi,

 

I am creating a New Folder in Documents and giving accessability to certain Public Groups only.(Suppose  Group A)

 

But when i log in as a user of Different Public Groups(Suppose  Group B),then user of Group B is able to see the Folder created by Group A.

 

 

Thanks in Advance..

Hi,

 

I am creating a New Folder in Documents and giving accessability to certain Public Groups only.(Suppose  Group A)

 

But when i log in as a user of Different Public Groups(Suppose  Group B),then user of Group B is able to see the Folder created by Group A.

 

 

Thanks in Advance..

Hi,

 

I am creating a folder under E-mail Templates and storing templates in it, and while creating i am sharing it to a certain group of users only.

 

When i create this folder ,it should be visible to only those users ,to whom i have shared with.But now all the users are able to acess that folder.

 

Thanks in Advance.

 

 

Hi ..

 

I am getting the below error when trying to save the record

 

 

Error:  EventObjectSync: execution of AfterUpdate caused by: System.DmlException: Insert failed. First exception on row 0; first error: DUPLICATE_VALUE, duplicate value found: Standard_Event__c duplicates value on record with id: a0Vg0000000URsh: [] Trigger.EventObjectSync: line 17, column 1

 

trigger::

trigger EventObjectSync on Event(After Insert,After Update) {
  list<Event_Object__c> eventlist2= new list<Event_Object__c>();
list<id> eventids= new list<id>();
map<id,Event_Object__c> custeventinserted = new map<id,Event_Object__c>();
 
          if (EventObjectSyncClass.check){
                        
            list<Event_Object__c> eventlist = new list<Event_Object__c>();
            list<UserAccountTeamMember> ues= new list<UserAccountTeamMember>();
            list<Event_Object__Share> evntObjShare2 = new list<Event_Object__Share>();
            
            for (integer a=0 ; a<Trigger.new.size() ; a++) {
              eventlist.add(EventObjectSyncClass.insertCustom(Trigger.new[a]));
              ues = [select id,UserId,TeamMemberRole,AccountAccessLevel from UserAccountTeamMember where OwnerId = :Trigger.new[a].OwnerId ];
            }
            EventObjectSyncClass.check=False;
            Insert eventlist;
            for(UserAccountTeamMember a :ues){
                Event_Object__Share evntObjShare = new Event_Object__Share();
                string str1='';
                string str2='';
                str1=eventlist[0].id;
                str2=a.UserId;
                evntObjShare.ParentId = eventlist[0].id;
                evntObjShare.UserOrGroupId = a.UserId;
                evntObjShare.AccessLevel = 'Edit';
                evntObjShare2.add(evntObjShare);
                evntObjShare = new Event_Object__Share();
            }      
            if(evntObjShare2.size()>0){
 
            try{
            //insert tskObjShare2;
            list<Database.SaveResult> sr = Database.insert(evntObjShare2,false);
                     }
            catch (DmlException de) {
            
    Integer numErrors = de.getNumDml();
    for(Integer i=0;i<numErrors;i++) {
 System.debug('getDmlFields=' + de.getDmlFields(i));
  System.debug('getDmlMessage=' + de.getDmlMessage(i));  
                        }
                    } 
                }            
            }
 
 if (Trigger.isUpdate){
          if (EventObjectSyncClass.check){
              
              eventids= new list<id>();
              custeventinserted = new map<id,Event_Object__c>();
              
              for (integer a=0 ; a<Trigger.new.size() ; a++) {
              if(Trigger.new[a].TaskTemplateId__c!=null){
                eventids.add(Trigger.new[a].TaskTemplateId__c);
              }            
              }
              if(eventids.size()>0){
                  eventlist2=[select id,Subject__c,Description__c,Start__c,End__c,Assigned_To__c,Type__c,Reason__c,IsAllDayEvent__c,Show_Time_As__c,Location__c,Priority__c,What__c,Who__c,Private__c,Email__c,Phone__c,Reminder__c from Event_Object__c where id in : eventids];
                  for(Event_Object__c ta:eventlist2){
                     custeventinserted.put(ta.id,ta);
                  }
                 eventids= new list<id>(); 
                 eventlist2= new list<Event_Object__c>();
               }
             for (integer a=0 ; a<Trigger.new.size() ; a++) {
               eventlist2.add(EventObjectSyncClass.Updatecustom(custeventinserted.get(Trigger.new[a].TaskTemplateId__c),Trigger.new[a]));
            }
            EventObjectSyncClass.check=False;
            update eventlist2; 
           }
        }
        }

 

Public class EventObjectSyncClass{
    
    Public static boolean check=True;

    
     Public static Event_Object__c Updatecustom(Event_Object__c CustEvent,Event StdEvent){
                    if(StdEvent.owner__c != null){
                    CustEvent.ownerid=StdEvent.owner__c;
                    }    
                    if(StdEvent.Subject != null){
                    CustEvent.Subject__c=StdEvent.Subject;
                    }
                    
                    if(StdEvent.Type != null){
                    CustEvent.Type__c=StdEvent.Type;
                    }
                    
                   /* if(StdEvent.Description != null){
                    CustEvent.Description=StdEvent.Description;
                    CustEvent.Description=CustEvent.Description+' This was created on be half of other employee ';
                    }else {
                    string str=' This was created on be half of other employee ';
                    str=str+StdEvent.Owner.Name;
                    CustEvent.Description=str;
                    }*/
                    if(StdEvent.Description != null){
                    CustEvent.Description__c=StdEvent.Description;
                    }
                    if(StdEvent.Act_Type__c != null){
                    CustEvent.Reason__c=StdEvent.Act_Type__c;
                    }
              
                    if(StdEvent.IsAllDayEvent != null){
                    CustEvent.IsAllDayEvent__c=StdEvent.IsAllDayEvent;
                    }
					if(StdEvent.EndDateTime != null){
                    CustEvent.Start__c=StdEvent.EndDateTime;
                    }
                    if(StdEvent.EndDateTime != null){
                    CustEvent.End__c=StdEvent.EndDateTime;
                    }
                    
                    if(StdEvent.WhatId != null){
                    CustEvent.What__c=StdEvent.WhatId;
                    }
                    
                    if(StdEvent.WhoId != null){
                    CustEvent.Who__c=StdEvent.WhoId;
                    }
                    
                  if(StdEvent.IsPrivate != null){
                    CustEvent.Private__c=StdEvent.IsPrivate;
                    }
                    
                    if(StdEvent.Priority__c != null){
                    CustEvent.Priority__c=StdEvent.Priority__c;
                    }
                         if(StdEvent.Location != null){
                    CustEvent.Location__c=StdEvent.Location;
                    }
                   
                        if(StdEvent.ShowAs != null){
                    CustEvent.Show_Time_As__c=StdEvent.ShowAs;
                    }
  
     return CustEvent;
    }
    
    Public static Event_Object__c insertCustom(Event StdEvent ){
    Event_Object__c CustEvent = new Event_Object__c();
    if(StdEvent.OwnerId != null){
                    CustEvent.Assigned_To__c=StdEvent.OwnerId;
                    }
                    
                    if(StdEvent.Subject != null){
                    CustEvent.Subject__c=StdEvent.Subject;
                    }
                    
                    if(StdEvent.Type != null){
                    CustEvent.Type__c=StdEvent.Type;
                    }
                     if(StdEvent.StartDateTime != null){
                    CustEvent.Start__c=StdEvent.StartDateTime;
                    }
                        if(StdEvent.IsAllDayEvent != null){
                    CustEvent.IsAllDayEvent__c=StdEvent.IsAllDayEvent;
                    }
                
                    
                    if(StdEvent.EndDateTime != null){
                    CustEvent.End__c=StdEvent.EndDateTime;
                    }
                    if(StdEvent.Act_Type__c != null){
                    CustEvent.Reason__c=StdEvent.Act_Type__c;
                    }
                              
                    if(StdEvent.WhatId != null){
                    CustEvent.What__c=StdEvent.WhatId;
                    }
                    
                    if(StdEvent.WhoId != null){
                    CustEvent.Who__c=StdEvent.WhoId;
                    }
                        if(StdEvent.IsPrivate != null){
                    CustEvent.Private__c=StdEvent.IsPrivate;
                    }
                   if(StdEvent.Priority__c != null){
                    CustEvent.Priority__c=StdEvent.Priority__c;
                    }
                    if(StdEvent.Location != null){
                    CustEvent.Location__c=StdEvent.Location;
                    }
                    if(StdEvent.ShowAs != null){
                    CustEvent.Show_Time_As__c=StdEvent.ShowAs;
                    }
                    if(StdEvent.Description != null){
                    CustEvent.Description__c=StdEvent.Description;
                    }
         CustEvent.Standard_Event__c = StdEvent.id;
         CustEvent.name='Custom Event';
    return CustEvent;
    }
     
     

 

 
Class :::
 

 

Hi,

 

i am getting Attempt to de-reference a null Object in my Trigger.

 

Below is my Trigger

Trigger GroupCreation on IA_Team__c (before insert,after delete,after update)
{
    Group grp = new Group();
    list<Group> gplist=new list<Group>();
    List<String> Groupid = new List<String>();
    List<String> UserOfGroupId = new List<String>();
    List<String> IAmemberid = new List<String>();
        
    if(trigger.isinsert)
    {
        map<string,string> IAGroup=new map<string,string>();
        for(IA_Team__c ev:Trigger.New){
        grp = new Group();
        grp.Name = ev.Name;
        grp.DeveloperName = ev.Public_Group_Name__c;
        IAGroup.put(grp.DeveloperName,ev.id);
        
        gplist.add(grp);
        grp = new Group();
        }
        system.debug('@@@@'+gplist);
        //try and catych ... add error mesages
        insert gplist;
        system.debug('@@@@'+gplist);
        string temp='';
        
        for(Group gp:gplist){
        temp = IAGroup.get(gp.DeveloperName);
            for(IA_Team__c ev:Trigger.New){
                if(ev.id == temp){
                
                    ev.Unique_Group_Id__c=gp.id;
                    ev.Team_Linked_To_Group__c=True;
                    
                    Groupid.add(gp.id);
                    UserOfGroupId.add(ev.Team_Owner__c);
                }
            
            }
        
        }
		
        
        TeamMemberHandler.createGroupMembers(Groupid,userofGroupid,IAmemberid);
    }
	
	 if(trigger.isupdate)
	 {
	  map<string,string> oldowner=new map<string,string>();
	  map<string,string> newowner=new map<string,string>();
	   map<string,string> oldname=new map<string,string>();
	  map<string,string> newname=new map<string,string>();
		
	    map<string,string> newdevname=new map<string,string>();
        for(IA_Team__c ev:Trigger.old){
        oldowner.put(ev.Unique_Group_Id__c,ev.Team_Owner__c);
		oldname.put(ev.Unique_Group_Id__c,ev.name);
        }
		for(IA_Team__c ev:Trigger.new){
        newowner.put(ev.Unique_Group_Id__c,ev.Team_Owner__c);
		newname.put(ev.Unique_Group_Id__c,ev.name);
		newdevname.put(ev.Unique_Group_Id__c,ev.Public_Group_Name__c);
        }
		
		map<id,group> groupsoldandnew = new map<id,group>([select id,name,DeveloperName from group where id  in: oldname.keyset()]);
		
		for(string str: oldname.keyset()){
			if(str != newname.get(str)){
			Group grp1;
		    grp1 = new Group();
			grp1 = groupsoldandnew.get(str);/*here i am getting attempt to deference a null object
			grp1.name=newname.get(str);
			grp1.DeveloperName=newdevname.get(str);
			
			gplist.add(grp1);
			}
		}
		if(gplist.size()>0){
		update gplist;
		}

 Thanks in Advance

Hi...

 

Can anybody help me out in achieving the Reminder Functionality of Standard Task into My VF Page.

 

Please refer the Standard Task (Field:Reminder).

 

Thanks in Advance

Hi,

 

I have a page which retrieves records of a Custom object.

 

Now when i click on the edit hyperlink the data should get pre populated to the next page.

Thanks in Advance

Hi,

I have a picklist value (Asset ,opportunity) and also want that when asset is selescted beside that i should get the Asset lookup .
This also goes for Opportunity.

For clarity you can refer the standard Task Object Field::RELATED TO:

The same way i want it.

Tahnks in Advance

Hi,

 

I have a picklist value (Asset ,opportunity) and also want that when asset is selescted beside that  i should get the Asset lookup .

This also goes for Opportunity.

 

For clarity you can refer the standard Task Object Field::RELATED TO:

 

The same way i want it.

 

Tahnks in Advance

Hi..

 

I have to delete Notes and Attachment from A VF Section(which consists of all rolled up Notes And Attachments of contacts & Accounts.)

 

right now the delete functionality is working for Attachment.but when i click on Note its Not working

 

below is my code:::

 public void DeleteAccount()
       {
          // if for any reason we are missing the reference 
       system.debug('@@@SelectedAttachmentId '+SelectedAttachmentId);
        
          if (SelectedAttachmentId == null) {
          
             return;
          }
          // find the attachment record within the collection
          Attachment tobeDeleted = null;
          Note tobeDeleted1 = null;
          if(IsNote == True)
          {
          list<Note> not1 = new list<Note>();
            not1 =[select id,Title from Note where Id =: SelectedAttachmentId ];
             system.debug('@@@SelectedAttachmentId '+SelectedAttachmentId);
            system.debug('@@@attach '+not1 );
          for(Note n: not1 )
           if (n.Id == SelectedAttachmentId )
           {
           system.debug('INNNNNNNN');
              tobeDeleted1 = n;
              break;
           }
                 }
          else
          {
          list<Attachment> attach = new list<Attachment>();
            attach=[select id,name,LastModifiedDate,CreatedById  from Attachment where Id =: SelectedAttachmentId ];
             system.debug('@@@SelectedAttachmentId '+SelectedAttachmentId);
             system.debug('@@@attach '+attach);
          for(Attachment a : attach)
           if (a.Id == SelectedAttachmentId ) {
           system.debug('INNNNNNNN');
              tobeDeleted = a;
              break;
           }
          if (tobeDeleted1 != null) {
          system.debug('INNNNNNNN---> '+tobeDeleted); 
           Delete tobeDeleted1;
          }

          //if notes and attachment record found delete it
          if (tobeDeleted != null) {
          system.debug('INNNNNNNN---> '+tobeDeleted); 
           Delete tobeDeleted;
          }
          }
         
          //refreshing the data
          LoadData();
       }    
      
      
    }

 thanks in Advance

 

Hi....

 

My below code doesnot works in the Page.

 

Throws an error:Content cannot be displayed: Invalid parameter for function URLFOR

 

 

<apex:outputLink value="{!URLFOR($Action.NoteAndAttachment.view, tas.id)}" style="font-weight:bold" target="_blank" >View</apex:outputLink>

 

Thanks in Advance

Hi,

 

I ahve a column in the page block table which dispays Boolean value  .

 

I want to replace this boolean value like if it is true:it should display as Note else it should display as Attachment.

 

 

Thanks in Advance

I want all the Notes and Attachment of Contacts getting rolled up in a different custom Objects (Inline Visualforce Section).

 

Right now i am able to roll up the Attachments but the challenge is both notes & Attachment getting rolled up(Since we need to query on two different objects and the result is stored in two different list).

 

So how can i return two different lists to the page block table Section

 

Below is my tried Code:

 

VF Page:

<apex:page showHeader="false" standardController="Household_Group__c" extensions="HouseHoldntesattach"  >
  
            <apex:form id="form" >
         
                  <apex:pageBlock >
                <apex:pageBlockTable value="{!wrapper }" var="tas" id="filteredtasks"  width="100%" >
                <apex:column >
                                        
                </apex:column>
                      
                    <apex:column >
                    <apex:facet name="header">
                    <apex:outputPanel layout="inline">
                        Title
                    </apex:outputPanel>
                    </apex:facet>
                       <apex:outputText value="{!tas.not2.Title }"> </apex:outputText><br/>
                       <apex:outputText value="{!tas.attach2.Name}"> </apex:outputText> 
                </apex:column>
              
            </apex:pageBlockTable>
            
            </apex:pageBlock>
        
</apex:form>
        </apex:page>

 Controller::

public class HouseHoldntesattach{

 
    public List<Note> not1 {get; set;}
    public List<Attachment> attch1 {get; set;}
    public List<MyWrapper> wrapper {get; set;}
    string st;
    public Household_Group__c objhg {get;set;}

    public HouseHoldntesattach(ApexPages.StandardController controller)
    {
    st=System.currentPagereference().getParameters().get('id');
    st = controller.getId();
    objhg = (Household_Group__c )controller.getRecord();

        system.debug('@@@@@@@111111'+st);
        
     list<attachment> attach = new list<attachment>();
   // list<Note> not= new list<Note>();
         list<Household_Member__c> Childmember = new list<Household_Member__c>();
        Childmember =[select id,Member__c from Household_Member__c where Household_Group__c= :st and Incl_in_Rollup__c = true ];//HH MEMBER ID IS STORED HERE
        
        
        list<string> Childmemberids=new list<string>();
        for(Household_Member__c HHacc:Childmember ){
        Childmemberids.add(HHacc.Member__c );
         
        }
        for(contact con:[select id from contact where AccountId in : Childmemberids]){
        Childmemberids.add(con.id);
        }
        if(!Childmemberids.isempty()){
 

 attch1 =[select id,name,LastModifiedDate,CreatedById  from attachment where ParentId in :Childmemberids ];
        not1 =[SELECT Id,LastModifiedDate,Title FROM Note where ParentId in :Childmemberids ];
         wrapper = new List<MyWrapper>() ;
 
           // wrapper.add(new MyWrapper(not1 , attch1 )) ;
    }
    }
       
    public class MyWrapper
    {
        public Note not2{get; set;}
        public Attachment attach2{get; set;}
        
        public MyWrapper(Note not1 , Attachment attch1 )
        {
            not2= not1 ;
            attach2= attch1  ;
        }
    }

              
}

 

 

Thanks in Advance

Hello All,

Can someone help me in achieving the below requirement

I have a field (Which is a master -detail) and i want this field to be not visible in creation page (which is a vf page), but on saving the record it should be visible(Standard detail page)

Thanks in advance
Hi All,
I have one question,Is that possible to display Reminder column in My Task related list under Home?
Please suggest me,can we customize the related list under Home?  
Thanks in advance!!
I created a one auto number field name(No of students).when i created a record   auto number is generating as auto.then created a 5 records then i deleted  one record Ex.0004. then again i created new rcord but is contunue auto.but i want to re allocate which record number(0004) are deleted. when i creat new record it will be take as a new record 0004.plz give reply.
I have created a new SF org & successfully moved all data EXCEPT notes & attachment. From the previous org, I have Attachments folder & Attachment.csv file exported.
When I am trying to upload attachment by jitterbit, it is throwing the following error.
User-added image
In the exported Attachment.csv file (from previous org), BODY column is missing which is required in INSERT/UPSERT attachment operation for the new org. I am trying to migrate all Notes & Attachments from previous org to new org. The below screenshot is for a particular record (I need related Attachments for all records).
When I am trying to export only the Attachments using Data Loader from old org, but Java heap size error & export fails. The total size of the Attachment folder is about 158MB. Both old & current org are Salesforce Production org. 
User-added image
  • January 30, 2017
  • Like
  • 0
Hello there,

Interested in peoples thoughts on whether it is essential for a company with Salesforce to always have a Salesforce dedicated team.

My company have recently disbanded thier Salesforce team and placed the members in various project teams, the theory being that each project team will have a Salesforce skill set. However, it does leave the question open of who is responsible for managing and monitoring the Saleforce application as a whole?

Anybody had a similar experience?
Any thoughts?

 
Hello,

When weland on page, there is a button called "create case" which is default button,
I want to override this button only for specific profiles, i will use a custom button intead..

how is it possible ?
Admin Requirement:
When I click on add button one more InvoicelineItem  row should be added to pageBlockTable.
Please help me in achieving this functionality.
User-added image

User-added image
Code:
public class InvoiceLineItem {
    public string ProdName{set;get;}
    public decimal Quantity{set;get;}
    public decimal price{set;get;}
    public string tax{set;get;}
    public string productfamily{set;get;}
    public list<InvoiceLineItem__c> Ili{set;get;}
    public InvoiceLineItem__c I{set;get;}
    public InvoiceLineItem(){
        Ili= [select ProductName_c,Quantityc,Pricec,productc from InvoiceLineItem_c];        
    }
    public void Add(){
        Ili = new list<InvoiceLineItem__c>();
        I = new InvoiceLineItem__c();
        I.ProductName__c=ProdName;
        I.Quantity__c=Quantity;
        I.Price__c=Price;
        I.Product__c=productfamily;
        Ili.add(I);
        insert Ili;        
    }   
}
<apex:page controller="InvoiceLineItem">
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockTable value="{!Ili}" var="a">
                <apex:column headerValue="ProdName">
                    <apex:inputText value="{!a.ProductName__c}"/>
                </apex:column>
                <apex:column headerValue="Quantity">
                    <apex:inputText value="{!a.Quantity__c}"/>
                </apex:column>
                <apex:column headerValue="Price">
                    <apex:inputText value="{!a.Price__c}"/>
                </apex:column>
                <apex:column headerValue="ProductFamily">
                    <apex:inputText value="{!a.Product__c}"/>
                </apex:column>
                <apex:column >
                    <apex:commandButton value="Add" action="{!Add}"/>
                </apex:column>
            </apex:pageBlockTable>
        </apex:pageBlock>
    </apex:form>
</apex:page>


Thanks in advance.
Guys i am stuck in javascript List button 
I want to calculate sum of amount on selected Opportunity in a list view
whenever we create a record in any object that record will be visible to to the custom object record using apex code or anyway

please letme know how we can do that
Is there a way to deploy cusrtomizations to other org using a DE.  I had a package installed on several different org and now I need to deploy different changes to the different org. 
Is this possible.??

Regards
Abhilash Mishra
I have created a new profile and it needs access to My Accounts tab. However when i navigate to My accounts it shows me few buttons in top of Accounts records view. I do not want to show some unwanted buttons to this new profile. How do I remove this?

Please help! Thank You in Advance :)
I am trying to create a new report type that show multiple accounts for each contact.
the page layout of Contact for related list "Related Accounts" is showing column Direct and Roles, however I cant find these 2 columns in Accounts object and Contact object while creating the report type.

Please let me know how Page layout translate these 2 columns.
thanks

 
Hello there,

Interested in peoples thoughts on whether it is essential for a company with Salesforce to always have a Salesforce dedicated team.

My company have recently disbanded thier Salesforce team and placed the members in various project teams, the theory being that each project team will have a Salesforce skill set. However, it does leave the question open of who is responsible for managing and monitoring the Saleforce application as a whole?

Anybody had a similar experience?
Any thoughts?