Hello,
I'm a DIY'er, and have managed to build several flows successfully. I'm at my wits end on the issue below, and none of the solutions I've researched online seem to help me solve this one. I basically want to pull data from one list into another when a new item is created.
I have two lists: Q&A-List-1 (which captures questions from an MS form; these questions are categorized by Topic); and Assigned-SME-List-2 (contains names of primary and secondary Subject Matter Experts [SME] who are assigned to specific Q&A Topics).
Desired Outcome:
* When an item is created the Q&A-List-1, the flow should...
* compare the Topic from the Q&A-List-1 with the Topic in the Assigned-SME-List-2.
* IF the Topics match, then pull the names of the "Assigned SMEs" and "Backup SMEs" from Assigned-SME-List-2 and add them to the related columns for the newly created item in the Q&A-List-1.
I was able to get the flow working when there was only one name in each assigned SME field; but these fields need to include multiple names. As such, these are multi-value 'people or group' fields/columns, so a.) A regular "lookup" column won't work, and b.) I can't for the life of me figure out how to modify the flow and have it capture multiple names and prevent it from going into multiple "apply to each" loops.
Currently the trigger and actions I have are:
Trigger: When a new item is created in List 1
Action: Get Items from List 2
Action: Apply to each (value from List 2)
Action: Condition (when Topic, List 2 matches Topic List 1)
Action: Update item
I've tried every possible combination of values and actions in the above flow. Sometimes it says that the flow was successful, but it really wasn't, and now I can't see the error codes in the conditions (flow doesn't give me the option of opening the condition to see the input/outputs).
I also tried using "initialize variable" to get rid of the multiple "apply to each" - but I don't know enough about that function to make that work.
Any help is appreciated. Thank you!