Hi All,
In my app, I have a questionnaire built in a gallery.
My goal is upon successfully answering all the required questions, patching those questions that have been answered.
As I have a few different types of questions in my gallery, such as date or text, I am saving the answers in a hidden Answers_lbl of each gallery Item, then for all the gallery items where Answers_lbl is not Blank, I am creating a collection. In a next screen the user needs to confirm their answers and I want to patch the items of the collection. I am using a dataverse as my data source to save all of my answers.
My current formula for Patching the collection items is the following:
ForAll(
ColAnsweredQuestions,
Patch(
'Questionnaire answers',
Defaults('Questionnaire answers'),
{
Answer: CAnswer
}
)
);
I get an error that my ForAll and Patch functions have some invalid arguments. Any ideas on where am I making a mistake?