• a459295360
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

HI,today, I use AccountShare object, but I get two problems, first one is: Field(AccountShare's all field)  is not writeable

 

 The second is:insert not allowed on AccountShare.

 

 I hope the very grateful to help me to solve the master,thanks!!!

 

//my apex

AccountShare thisAccountShare = new AccountShare();  
              thisAccountShare.userorgroupid=userId;  
              thisAccountShare.accountid = accId;  
              thisAccountShare.accountaccesslevel = 'Edit';   
              thisAccountShare.ContactAccessLevel = 'Edit';
              listAccShr.add(thisAccountShare);

 

insert listAcShr;

I want get a js date control for my inputFiled and I know the salesforce has own js date control ,but I do't  konw hao can I get it,so I hope you can tell me hao to do it, thanks!!!

Hi,

 

https://na7.salesforce.com/500/e?retURL=%2F003A0000007URtJ&def_contact_id=003A0000007URtJ&def_account_id=001A0000009ufGA&Opportunity__c=Opt1

 

I am trying to populate a Custom Field name "Opportunity" in Case, but capture the passing parameters on the URL.  The URL above has Opportunity__C=Opt1, so basically, I want to populate "Opt1" value in the custom field name Opportunity in the new Case.

 

Thank you,