• Yossi 4
  • NEWBIE
  • 5 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
<BS"D>
Hello,
I am trying to run a scheduled apex class that 
1. Collects information through an http request
2. Upsert the collected contacts into the Contacts object
Using the @future(callout=true) token, I am able to run the first step, getting the info from an API. However, since contacts have a trigger with an @future token too, I am getting an error regarding nested @future . Any ideas? Maybe the @future token is not the only way to enable callouts from a scheduled apex class?
Hi All,

I have added several new custom fields and validations to one of our existing custom objects. Now it is time to deploy to production. In my change set can I simply deploy the object or do I need to create change set comprised of every change (field and validations added). And, if I do just deploy the object is production data preserved?

Thanks as always,,
Jon
How can I restrict an ability to restore records froma Recycle Bin?

I tried the following code it did not work. This is for 'after undelete' trigger. The 'before undelete' is not supported as far as I can see.


Code:
if(Trigger.isUndelete){ 
 for(SCS_Client_Time_Series__c clts : Trigger.old){
  clts.addError('Not allowed to restore Time Series from Recycle Bin. Create new Time Series record instead.');
 }

}

 

  • June 17, 2008
  • Like
  • 0