• Anthony Penketh
  • NEWBIE
  • 10 Points
  • Member since 2015

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

Is it possible to create a trigger or schedule that will allow saleforce to change a picklist value after a certain period of time?

The scenario I can give is that some of our business users have requested if an account that has been closed can be re-opened as an outbound opportunity after it has been left dorment for 9 months?

Just looking to see if this is possible before I invest time in writing a script.

Thanks in advance!
Hi All,

I am trying to create a custom button ("LVM") on the lead object that will create a task, applied the current date and sets the status to complete.

Here's what I have so far:

{!REQUIRESCRIPT("/soap/ajax/17.0/connection.js" )} 

var t1= new sforce.SObject("Task"); 
t1.Subject = "LVM";
t1.Status = "Completed"; 
t1.Priority = "Normal"; 
t1.OwnerId = "{!User.Id}";
t1.ActivityDate =  new Date();
 
result = sforce.connection.create([t1]);

  if(result[0].success=='true'){
      alert('Your Left voice mail (LVM) task has been created.');
      location.reload();
  }
else
{
alert(result[0]);
}

This currently delivers the alert but does not create the task.

Origionally we used the following:
 
t1.WhatId = "{!Lead.Id}"; 

But received and error message upon pressing the button.

Any help would be much appreciated!

Thanks,

Anthony
Hi All,

I am trying to create a custom button ("LVM") on the lead object that will create a task, applied the current date and sets the status to complete.

Here's what I have so far:

{!REQUIRESCRIPT("/soap/ajax/17.0/connection.js" )} 

var t1= new sforce.SObject("Task"); 
t1.Subject = "LVM";
t1.Status = "Completed"; 
t1.Priority = "Normal"; 
t1.OwnerId = "{!User.Id}";
t1.ActivityDate =  new Date();
 
result = sforce.connection.create([t1]);

  if(result[0].success=='true'){
      alert('Your Left voice mail (LVM) task has been created.');
      location.reload();
  }
else
{
alert(result[0]);
}

This currently delivers the alert but does not create the task.

Origionally we used the following:
 
t1.WhatId = "{!Lead.Id}"; 

But received and error message upon pressing the button.

Any help would be much appreciated!

Thanks,

Anthony