• Rabindranath
  • NEWBIE
  • 289 Points
  • Member since 2013
  • Associate Consultant
  • Virtusa


  • Chatter
    Feed
  • 7
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 62
    Questions
  • 162
    Replies
Hello,

I am tryig to hide the action column for cases on my related lists.  
example
We use ServiceMax and users are required to modify cases via the servicemax SFMs, not the default salesforce links.  I found this bit of code:
<style type="text/css">
.actionColumn {display:none; visibility:hidden}
</style>
In a different spot on the forums.  I'm not sure if this would serve my purpose however, and even if it would, I'm not sure where I would put it.  I want the change to affect ALL related lists, and I don't mind if it is applied to all users, although I would prefer it to be on a profile basis.

Any help would be greatly appreciated, thank you!

Leah
 
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

Hi
I have created this VF page within a custom object, I'm still in the process of adding more fields within this for the users to key in info. However, when I tested this by adding it to the page layout for the custom object, when I click on save, when the VF page refreshes the view doesn't look right.
I'm quite new to VF pages so still learning. Could anyone help as to what am I doing incorrectly here, how/what can I add to the VF code so that when the users hit 'save', it reflects correctly. (attached a couple of screenshots).

User-added image
User-added image

Thanks in advance.


 
Hello,

Looking for help creating a trigger that updates a custom object, Dispatch__c, related by a mater-detail relationship to the Case object. There are a handful of address fields entered on the Case object that simply need to be referenced on the Dispatch__c object when creating a new Dispatch record. The intent is to have the fields pre-populated with the data from the Case when creating a new dispatch record.

Looking for any guidance the community can provide.

Thanks in advance.
Hello, i am trying to read all data of object, like this:
var copyOpp = {!Opportunity};
Obviously it doesnt work, and i started with salesforce 2 weeks ago. My question is: 
Exists  something similar?
thanks
Need a report that indicates how much API each app and each person consumed on monday 9th october that exceeded our API limit.

organization id: 00D80000000aSjb
Is it possible for me to insert another open field to fill in the closing case page layout? How do I do this?

The field is already in the page layout but is not editable.

Close Case page example
I am working in the opportunity object.  I want the workflow to do two things when the stage date has hit "60" days since it has been changed from Quoting to Proposal:  1.  Update the status from "proposal" to "quoting".  2.  Send an email to specific users.  

I already have a custom field called "Stage Duration", which has a formula of the following, which works perfect:
Today()- Last_Stage_Change_Date__c

My question is...in the formula for the workflow below correct?  
 
AND( 
NOT(IsClosed), 
NOT(ISBLANK(Last_Stage_Change_Date__c)), 
ISPICKVAL(StageName, "PROPOSAL"),
IF(Stage_duration__c =>60)
)

The status changes with a field update as planned, but the email does not send out.  Thoughts?
Hello.  I am in the Admin Beginner Module in Trailhead.  I had just started the Data Modeling module, did the exercises in the first lesson Understand Common and Standard Objects.  But in the Challenge, I must have done something wrong, because I got an error message.  The problem is I can't figure out how to wipe the slate clean and start over again.  And when i try to do the next lesson Create Object Relationsjps, I can't advance in this because of the prior error.    
Hi Gurus, 
Which trials to be completed to get good knowledge so that it will be easy for me to pass the Admin 201 certification exam. 
Request to help.
Thanks in advance.

Rgds
Hari
Hi Team,

x2 issues: 

1. Seems I cannot deploy change sets from Sandbox to Prod as the Sandboxes are on version 41.0 for the Platform and Prod is on v40.0. How do I resolve this?

User-added image

2. I am trying to deploy a change set from one Sandboax to another and having an issue with Leads Layout.
Note I have no override button OR changed the layout can someone please advise

Error 
In field: excludeButtons, invalid action:NewProposeMeeting

User-added image
 
Hello developer heroes!

I'm working through the Apex modules on Trailhead and can't seem to get past this one: https://developer.salesforce.com/en/trailhead/force_com_programmatic_beginner/apex_triggers/apex_triggers_bulk.

Hopefully this doesn't read like a 'please complete the course for me' kinda post, but I have written a trigger that I believe meets the criteria but it isn't passing the check, so I wanted to seek the guidance of the experts.

The challenge is to do this:

Create an Apex trigger for Opportunity that adds a task to any opportunity set to 'Closed Won'.

To complete this challenge, you need to add a trigger for Opportunity. The trigger will add a task to any opportunity inserted or updated with the stage of 'Closed Won'. The task's subject must be 'Follow Up Test Task'.The Apex trigger must be called 'ClosedOpportunityTrigger'

- With 'ClosedOpportunityTrigger' active, if an opportunity is inserted or updated with a stage of 'Closed Won', it will have a task created with the subject 'Follow Up Test Task'.
- To associate the task with the opportunity, fill the 'WhatId' field with the opportunity ID.
- This challenge specifically tests 200 records in one operation.


And here is the trigger I have come up with, which compiles OK and stands up to a manual (though admittedly unbulkified) test:
trigger ClosedOpportunityTrigger on Opportunity (after insert, after update) {

    List<Task> taskList = new List<Task>();
    
    for (Opportunity opp : [SELECT Id, StageName FROM Opportunity WHERE StageName = 'Closed Won' AND Id IN :Trigger.new]){
                    
            taskList.add(new Task(Subject = 'Follow Up Test Task',
                                  WhatId = opp.Id));
       
    }

    if(taskList.size()>0){
        
        insert taskList;
        
    }
    
}
I have tried replacing the SOQL with a straightforward 'for (Opportunity opp : Trigger.new)' and having the taskList.add inside an IF that checks for Closed Won - no luck. I also thought about checking to see if the stage was being changed to Closed Won, rather than the trigger firing on every edit, but I don't think this is what the module is asking for.

Where do you think I'm going wrong?

Huge thanks in advance!
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?