Skip to content

Commit eaa169a

Browse files
committed
Update Docs
1 parent f3b59ed commit eaa169a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/batchforce.md

+7
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,23 @@ Use Bulk API to update Salesforce records
2323
- escapeUnicode: escapes characters using Unicode escape sequences
2424
like Apex's String.escapeUnicode method
2525
- base64: base-64 encodes input
26+
- md5: md5 hash of string
27+
- getSet: set key to value, returning previous value for key
2628
- compareAndSet: check if key maps to value; if key doesn't exist, set it to
2729
value (return true unless key already exists with different value)
2830
- changeValue: update value associated with key (returns true unless the key
2931
already exists and the value is unchanged)
3032
- incr: increments the number stored at key by one. set to 1 if not set.
33+
- clone: create a copy of the record
3134

3235
The + and - operators can be used to add, update, or remove fields on the
3336
record object. For example:
3437
record + {RecordTypeId: apex.myRecordTypeId} - "RecordType.Name"
3538

39+
If creating multiple records from a source record, use clone to avoid mutating
40+
the same object repeatedly. For example:
41+
1..100 | map(clone(record) + {Name: "Record " + string(#)})
42+
3643
Additional context to be provided to the Expr expression by passing the
3744
--context parameter containining anonymous apex to execute before the
3845
records are queried. Each apex variable defined will be available within

0 commit comments

Comments
 (0)