• Leandro Santillan 6
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
Hello,
I would like to create a trigger that sends an email to the user letting him/her know that a record(and a link to that record) has been shared. I wrote a trigger to send an email when a record is deleted but I don't know how to modify that one so it works for what I am trying to accomplish. Any piece of code would be highly appreciated.
Yes, I am sort of new to coding, not to Salesforce..
Thank you.
Hello,
I would like to create a trigger that sends an email to the user letting him/her know that a record(and a link to that record) has been shared. I wrote a trigger to send an email when a record is deleted but I don't know how to modify that one so it works for what I am trying to accomplish. Any piece of code would be highly appreciated.
Yes, I am sort of new to coding, not to Salesforce..
Thank you.
Hello All,

I'm getting a System.UnexpectedException: null error while trying to unlock or lock the records from a Queueable Apex job.
I would need someone's advise to resolve this error as soon as possible.

My scenario is as below:

I want to update a set of opportunities out of which a few of them are locked by the approval process.
So I want to unlock these opportunities, update a particular field in the opportunity and lock the record again via apex.
I have used the standard approval process.

Please advise.
 

 

The below yields Error: Compile Error: Field is not writeable: ContactShare.ContactId at line 5 column 21   This error message must be something different then what it's telling me.

How / Why is contactID not writable?

 

Just a quick example....  all comments on bad coding practices of not bulk enabling the trigger and hardcoding an id aside.. :)

 

 

trigger ContactCheckReferral on Contact (after insert ) {   
            for (Contact c : Trigger.new) {
                if(c.Consent_to_participate_in_network__c) {
                    ContactShare cs = new ContactShare();
                    cs.ContactId = cs.id;
                    cs.UserOrGroupId = '00GS0000000Ub0mMAC';
                    insert cs;
                }                           
            }
}

 

 

  • June 30, 2010
  • Like
  • 0

Hi,

 

I have a question regarding SOSL search in context of object fields. Can SOSL be used search against any fields in object(s) or any limitations to it?

 

Thanks

Ram