You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
V0.0.2 - JavaDoc comments & Single Record Input for Flow (#2)
* Started adding in javadoc comments in a few places where it will help Apex consumers of the code. Removed a few lingering references to apex-rollup from copied files. Added definitionFile property to sfdx-project.json, though packaging still fails locally when attempting to revert AbstractCacheRepo to non-safeguarded version
* Wrapping some README text that was overflowing
* Finalizing v0.0.2 changes by adding single record input variable as per @rygramer's suggestion
@@ -44,7 +44,8 @@ And then the configuration for the action:
44
44
-`Owner Field API Name - defaults to OwnerId` (optional) - which field are you looking to assign to? Not all objects have `OwnerId` as a field (the detail side of M/D relationships, for instance). Use the field's API Name for these cases.
45
45
-`Query Id Field - defaults to Id if not supplied` (optional) - used in conjunction with the `Query To Retrieve Possible Assignees` property, below. If you are using the round robin assigner to assign lookup fields _other_ than `OwnerId`, this allows you to override which field is pulled off of the records that the `Query To Retrieve Possible Assignees` returns.
46
46
-`Query To Retrieve Possible Assignees` (optional) - either this or `Alternative to query ...` must be provided! This query will pull back records - like Users - and grab their `Id` field (or the field stipulated using the `Query Id Field ...` property) that should be included in the "ownership pool" for the given round robin.
47
-
-`Records To Round Robin` (optional, but should always be supplied) - set this equal to a collection variable that is either the output of a `Get Records` call, contains `$Record` in a Record-Triggered flow, etc ...
47
+
-`Records to round robin - either this or single record is required` (optional) - set this equal to a collection variable that is either the output of a `Get Records` call, contains `$Record` in a Record-Triggered flow, etc ...
48
+
-`Single record to round robin - either this or records to round robin is required` (optional) - for Record-Triggered Flows, skip assigning `$Record` to a collection variable and just pass it directly using this input property!
48
49
-`Update records - defaults to false` (optional) - by default, the collection supplied via the `Records To Round Robin` property aren't updated; set this to `{!$GlobalConstant.True}` to have the action update your records with their newly assigned owners
49
50
50
51
## Round Robin Assignment From Apex
@@ -57,8 +58,10 @@ Here are a few ways that you can perform assignments:
57
58
- You can call use the bundled `QueryAssigner`:
58
59
59
60
```java
60
-
// in a Trigger/ trigger handler class
61
-
RoundRobinAssigner.IAssignmentRepo queryRepo =newQueryAssigner('SELECT Id FROM User WHERE Some_Condition__c = true', 'Id');
0 commit comments