Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I have a workflow that's updating a field on an object, but I don't want to have to manually touch each record to have them update. I saw mentioned that you can actually touch records with dataloader to force the updates. Can anyone shed any light on this for me please? Would you just update all the records to a new last activity date or something?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

You don't need to actually modify any data on the record, simply perform a touch.

  1. Query Data: Just grab the ID.

    SELECT Id FROM SomeObject

  2. Update Data: Just map the ID from the previous export, and go.

EDIT: I should mention that you still need to make sure the workflow rule's evaluation criteria is met, or it won't have any effect.

share|improve this answer
    
Not even sure how to perform touch, is that a SQL command, that you would put in on the query? –  Miklr Feb 20 at 19:07
    
SOQL can't perform DML. Instead, you use the data loader's "update" function. –  sfdcfox Feb 20 at 19:14
1  
Or you could be bold and do anonymous Apex in Developer Console if the # of records wasn't 'large', to wit: List<SomeObject> objList = [select id, ... from SomeObject]; update objList; –  crop1645 Feb 21 at 1:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.