• morsborn
  • NEWBIE
  • 0 Points
  • Member since 2008

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

Can anyone point me to some code examples that can be put on a button in a view to update a bunch of records? e.g. I want to obtain all open cases, go through them one at at time and, using a formula based on two of the fields, populate a third field. The record should then be saved before moving on to the next one. Is this easy to do?

Thanks in advance.

Hello

I am a newbie to salesforce coding and these forums so apologies if this is posted in the wrong place! I hope someone can help me out.

I recently implemented salesforce primarily to improve our case management process. A key requirement is to be able to monitor the time we have spent internally on a case vs the number of hours the customer has on their SLA and the corresponding time left i.e. SLA hours MINUS time spent so far. I downloaded a neat stop clock application from appXchange to provide a simple stop clock and it workw well. I have also figured out how to create the fields and everything is working to a point but....

Rather than have to go into each record and press save to trigger a field refresh, how can I update multiple records in one go?

Is there a simple bit of code that can run against a set of records and update a particular field? Do I need an S control - not really sure how to make one but someone suggested it would be a place to start?

 I have struggled to find an answer to something I have found simple in other systems (in Lotus I used agents set to run on schedule for example).

Any help or guidance would be much appreciated. Thanks in advance!
Hello

Can anyone point me to some code examples that can be put on a button in a view to update a bunch of records? e.g. I want to obtain all open cases, go through them one at at time and, using a formula based on two of the fields, populate a third field. The record should then be saved before moving on to the next one. Is this easy to do?

Thanks in advance.

Hello

I am a newbie to salesforce coding and these forums so apologies if this is posted in the wrong place! I hope someone can help me out.

I recently implemented salesforce primarily to improve our case management process. A key requirement is to be able to monitor the time we have spent internally on a case vs the number of hours the customer has on their SLA and the corresponding time left i.e. SLA hours MINUS time spent so far. I downloaded a neat stop clock application from appXchange to provide a simple stop clock and it workw well. I have also figured out how to create the fields and everything is working to a point but....

Rather than have to go into each record and press save to trigger a field refresh, how can I update multiple records in one go?

Is there a simple bit of code that can run against a set of records and update a particular field? Do I need an S control - not really sure how to make one but someone suggested it would be a place to start?

 I have struggled to find an answer to something I have found simple in other systems (in Lotus I used agents set to run on schedule for example).

Any help or guidance would be much appreciated. Thanks in advance!