• Shyam Sundar 84
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 4
    Replies
326:  offer__Share offerShare=new offer__Share();     327:offerShare.userorgroupid =[Select id from user where id=:userinfo.getuserid()].id;  
   328: offerShare.AccessLevel = 'Edit';    
    329: insert offershare; 
check box and text field must be dependent, after checking the check box only you can fill the text field. Need 3 possible approaches

trigger AccountTrigger on Account (after insert, after update) {


    for(Account acc : Trigger.new){

accountShare as1=[SELECT id, AccountaccessLevel,RowCause,userorgroupid from accountShare where accountid=:acc.id and rowcause='Rule'];

        AccountShare accountShare = new AccountShare();
        accountshare.RowCause='Rule';  
     //   userorgroupid =''
        accountShare.AccountAccessLevel = 'All';
        update accountshare; 
    }

 

   

}
how to assign parent role ID based on hierarchy when ever the record created on contact. (i.e) The owner ID should be the superior level role 
how to update a lookup field in an custom object based on the picklist field on opportunity both are related??
how do i create multiple opportunity for products selected from lead and on lead conversion
how to assign parent role ID based on hierarchy when ever the record created on contact. (i.e) The owner ID should be the superior level role 
how do i create multiple opportunity for products selected from lead and on lead conversion