I have been working on a workflow to Insert Data every time a new work order line in a table is filled in. I was hoping I could get it to check first and only Insert Data if the date was today and then I realized that I also need to make sure it doesn't insert the same data twice.
DESIGN: This form process has a User Task that loops around until the individual overseeing the process decides everything is complete. He can order additional tasks by adding a new line to the Work Order table any time by opening the assigned form that is still on the looping User Task.
PROBLEM: A user might open the User Task and add a line for a new Work Order at 10am and then later in the same day open up the same User Task and add another new Work Order. This would kick off the workflow a second time and it would Insert the data for BOTH lines that have today's date! Not wanted.
HOPING FOR: Can workflow be programmed to check the SQL db first, to see if that ROW ID is already in the db and then only insert new data if it did not find that ROW ID?