Hello everyone,
I've read planty content about the trouble i'm facing and even though i couldn't solve it.
I have an app made from a Sharepoint List working offline that stores data locally and when the devide is connected the data is sent to the SharePoint List. But my field that sents the attachment is no working.
I Have a button to store data that ON SELECT runs this code:
if(Connection.Connected;SubmitForm(EditForm1);Collect(arrtemp;{tempTítulo:DataCardValue9.Text;tempObs:DataCardValue16.Text;tempAttachment:DataCardValue27.attachments;tempnovo:varNovo});;SaveData(arrtemp;"Localtemp"));;ClearCollect(arrHistóricos;Históricos);;Back()
Then, to send it to the server i have the code below:
ForAll(arrtemp;If(tempnovo = true;Patch(Históricos;{};{Título:tempTítulo;Observação:tempObs;Attachment:tempAttachment;});Patch(Históricos;LookUp(Históricos;Título=tempTítulo);{Título:tempTítulo;Observação:tempObs;Attachment:tempAttachment)));;Clear(arrtemp);;SaveData(arrtemp;"Localtemp");;ClearCollect(arrHistóricos;Históricos)
I don't have an idea how to solve this. if someone could help me i would appreciate.
Thanks,