You need to sign in to do that
Don't have an account?
Sam Becker 12
I'm trying to create a visual flow that checks the value of about 50 custom fields that are all TRUE\FALSE on a custom object. For each TRUE value, it creates a detail record.
Do I have to create a decision for each Boolean field? or is there a way to use a LOOP to go through 1 objects field values?
Any help would be appreciated. I'd rather now have a giant tree just to check whether a box is TRUE or FALSE.
Thank you!
Create Visual Flow Loop through 1 object's field values?
I'm trying to create a visual flow that checks the value of about 50 custom fields that are all TRUE\FALSE on a custom object. For each TRUE value, it creates a detail record.
Do I have to create a decision for each Boolean field? or is there a way to use a LOOP to go through 1 objects field values?
Any help would be appreciated. I'd rather now have a giant tree just to check whether a box is TRUE or FALSE.
Thank you!
First of all you could go for some Apex code with @InvocableMehods (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_InvocableMethod.htm) but if you prefer #clicksnotcode, then there is a way to do it also.
This is my flow. CO1 is a object with Field1__c and Field2__c both checkboxes.
1st - Make a SOQL and asign Field1__c and Field2__c values to 2 new variables.
2nd - Assing these values to an Assignment Collection.
Where CollectionFields is a collection variable
3rd - Then do the loop
4th - Finally check values of each value
5th - If value is true, create a new CO2 custom record.
Hope this helps
All Answers
First of all you could go for some Apex code with @InvocableMehods (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_InvocableMethod.htm) but if you prefer #clicksnotcode, then there is a way to do it also.
This is my flow. CO1 is a object with Field1__c and Field2__c both checkboxes.
1st - Make a SOQL and asign Field1__c and Field2__c values to 2 new variables.
2nd - Assing these values to an Assignment Collection.
Where CollectionFields is a collection variable
3rd - Then do the loop
4th - Finally check values of each value
5th - If value is true, create a new CO2 custom record.
Hope this helps