I am trying to do a CREATE FOR EACH process where the loop is WEEKEND_DAY between two dates input by the user but the thing I need to create must include the date itself. So something like
CREATE Duties FOR EACH WEEKEND_DAY between UserInput.Start_Date and UserInput.End_Date WITH Duties.StartDate=[The date we've got to in the loop]
UserInput is a non persistent BO and the gap between start and end could be up to 6 months - but I don't know how to grab the date we are at in the loop - Will that be in WEEKEND_DAY or is this a job for LOOP_ITERATION
My other problem is - I don't see any reference to WEEKEND_DAY in any of the manuals
Edit: Found an example in Programmers Reference so can now confirm that FOR EACH DAY BETWEEN..... With Duties.StartDate=DAY syntax works but whenever I swap it for EACH WEEKEND_DAY, I get a syntax error (like somebody forgot to do the code for WEEKEND DAY - which is a shame).
So how can I create a process that only creates records for weekend days