I am creating a workflow that will update information from an Infopath form back to another list. My issue is that the list it updates may have several items that match the criteria but only one is valid.
Here's the scenario. I have a PC Inventory list that has all current and past PCs in it. I have a view setup that only shows current inventory. I have a column checkbox in the list that is named "Reassigned". These do not show up in the current inventory view for obvious reasons. The list itself may have the same computer in there 3 or 4 times, just depending on how many times it has been reassigned.
Fast forward to my new infopath form that I am creating... This is for new hires. There is a drop down that displays the list of available computers in the PC Inventory list to assign them to. I created a workflow to update the PC Inventory list whenever a computer is assigned via the New Hire form. It puts their name as the person it is assigned to. Problem is that it will assign it to the first item in the list that matches the serial number and not necessarily the one that is in current inventory. So since the computer is in the list multiple times it will not "assign" the correct one.
Is there a way in a workflow to have it filter to a view and only update items in that view? Or am I going about this all wrong?