Skip to content

Commit

Permalink
updates to Readme formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
zachelrath committed Sep 7, 2013
1 parent 7f06672 commit b2c0d9c
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,34 +162,34 @@ Here are all supported Relax operation modes:

- `FIELDS_WITH_VALUES` mode: updates a set of fields with corresponding values. Example: finds all Cases that have been Open for over 30 days, and sets their Priority to Critical and Escalates them:

{
"mode":"FIELDS_WITH_VALUES",
"query":"select Priority, IsEscalated from Case where Status = 'Open' and CreatedDate < LAST_N_DAYS:30",
"valuesByField":{
"Priority":"Critical",
"IsEscalated":true
}
}
{
"mode":"FIELDS_WITH_VALUES",
"query":"select Priority, IsEscalated from Case where Status = 'Open' and CreatedDate < LAST_N_DAYS:30",
"valuesByField":{
"Priority":"Critical",
"IsEscalated":true
}
}

- `FIELD_FROM_FIELD` mode: for each row, copies the value of a source field into a target field. Example: copies the value of the OwnerId field of each Opportunity into a custom Owner2__c field:

{
"mode":"FIELD_FROM_FIELD",
"query":"select OwnerId, Owner2__c from Opportunity where Owner2__c = null",
"sourceField":"OwnerId",
"targetField":"Owner2__c"
}
{
"mode":"FIELD_FROM_FIELD",
"query":"select OwnerId, Owner2__c from Opportunity where Owner2__c = null",
"sourceField":"OwnerId",
"targetField":"Owner2__c"
}

- `FIELDS_FROM_FIELDS` mode: same as Field from Field, but for multiple source-to-target field pairings: Example:

{
"mode":"FIELDS_FROM_FIELDS",
"query":"select OwnerId, Owner2__c, CloseMonthFormula__c, CloseMonth__c from Opportunity",
"sourceFieldsByTargetField":{
"CloseMonth__c":"CloseMonthFormula__c",
"Owner2__c":"OwnerId"
}
}
{
"mode":"FIELDS_FROM_FIELDS",
"query":"select OwnerId, Owner2__c, CloseMonthFormula__c, CloseMonth__c from Opportunity",
"sourceFieldsByTargetField":{
"CloseMonth__c":"CloseMonthFormula__c",
"Owner2__c":"OwnerId"
}
}

Support / Contributing
------------
Expand Down

0 comments on commit b2c0d9c

Please sign in to comment.