hi all,
I am using excel (onedrive for business) as my data source , and I want to record each item's created time and if it has been changed, also record its modified time ;
I use the patch function when the Editform1 's onsucess, here is my code:
If( EditForm1.Mode = FormMode.New, Patch(datasource,EditForm1.LastSubmit,{createdwhen: Now()}),
Patch(datesource,EditForm1.LastSubmit,{'modified when': Now()}))
but when i actually create a new record ,I hope the time is put in the createdwhen column, but it goes to the modified when column. I have tried several times , the results goes the same.
I think maybe the reason is because: once the editform1 has been submitted, its formmode has been changed to edit (not new) ?
I dont know and hope you guys can kindly help me, Thank you !