function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ryanschierholzryanschierholz 

Cycle through custom metadata and update records based on it in flow

Our users are required to complete assigned learning. I would like to track the completion date of certain learning items on the User record in custom fields. It's possible with a Process Builder process to have a node for each learning Id and if complete, update the respective field on the User account. However, each time we add one to track, the process would need to be updated and reactivated. I would like to accomplish this through custom metadata and a Flow. The custom metadata has an LearningId field and UserFieldAPI. The Flow would take the completed learning Id and compare with the custom metadata, returning a matching UserFieldAPI (i.e. BasicLearningCompletionDate__c). Then, using a variable, I could update the User record field that matches that field API. And then when we need to make changes, we don't have to update the process or flow, but just add a new metadata record with the LearningId and UserFieldAPI. 

Is this possible in a flow?