I've been poking through unofficialsf.com, and installed the "Get Field Information" action. ( https://unofficialsf.com/getfieldinformation-get-fields-for-an-object/ ) I wanted to use a flow to loop through the output of an object's fields, decide their data type, then compare two example records of that object to determine if their values for a specific field are blank/empty/null to merge them.
- when I use the action and follow it with a Loop, the resource does not appear to be available to loop through.
- If I add an assignment in the middle to assign the Get Field Information output to a collection variable, I'm not sure what data type to use. Text seems most generic, but otherwise this seems to be a dynamic data type. Should I try to set it to Apex defined? If so- what is the Apex class to define Contacts?
- If I created the collection variable as a Text data type, the Loop Collection variable also needs to be text. Typically I would create the loop variable as a number, and just add one each loop, but a number variable would not be available here. What am I missing?
Ultimately I would need to reference the field name and data type to appropriately compare the values of the two records I have. What am I missing?
12 commenti
Thanks very much for the response. I likely gave up on this approach some time ago and probably worked around the issue another way.