Hello, I have a button called 'Add Step' with the following code:
Collect(colEtapas;{ID:Last(colEtapas).ID+1; nomEtapa: "";Valores:"Valores";NumeroSequencial:CountRows(colEtapas) + 1})

When you click this button, it adds a new line "new step" in a gallery. Each line has two fields, a text entry, and a combobox with the multiple selection function enabled. I need to add a third field in the gallery row, so I can add attachments and send to a list in sharepoint. Could anyone help me with creating this attachment field in the gallery, and how do I send it to my sharepoint list? Here is my code for sending the two fields in the gallery line:
ForAll(Gallery1.AllItems;
With(
{
Id_EtapaCriada:
Patch(AG120SOLETAPA;Defaults(AG120SOLETAPA);
{
nomEtapa: ThisRecord.txtNome_Etapa.Text;
id_Etapa: ThisRecord.lbl_numero_etapa.Text;
id_solProcesso: {Id:varSolicitacaoProcessoCadastro.ID; Value:""}
}
)
};
ForAll(ComboBoxSistemas.SelectedItems;
Patch(AG120SISETAPA;Defaults(AG120SISETAPA);
{
id_Sistema:{Id:ThisRecord.ID;Value:""};
id_Etapa: {Id:Id_EtapaCriada.ID;Value:""}
}
)
)
)
);;