Hi,
Idea:
User provides a start date and a period (number of months). For each month, a record should be added to an SP list. I.e. start date = 1/1/2022; period = 3, I wish 3 records, namely for the following dates:
1) 1/1/2022 ...
2) 1/2/2022 ...
3) 1/3/2022 ...
I created a ClearCollect (ClearCollect(Loop, {Ind:0}, {Ind:1}, ...) in the OnStart of the App. Subsequently, on the OnSelect in the submit button I wrote:
Set(i, 0);
ForAll(
Filter(
Loop,
Ind <= Max(period),
Ind >= i
),
monthYear.SelectedDate = DateAdd(startDate.SelectedDate, Ind, Months);
SubmitForm(Form1)
)
This does not do anything (I also do not receive an error).
Hope someone can be of help 🙂