Hi,
I have the following situation: simple SP form with a customised PowerApp form. In certain situations, a mail will have to be send, so I created a Mail field (text field, no drop down) in the list, which can have value Yes or No. When creating a new item in the list, the field has to be set to "Yes". In some cases this field wil be manually reset to "No" afterwards.
I want to use this value in a later stage to start a mailflow.
In Powerapps, I set the DefaultValue of the Mail field to a global variable called SendMail
In the OnNew of the SharepointIntegration Object I set this variabla: Set(SendMail;"Yes")
In the OnEdit / OnView of the SharepointIntegration Object I lookup the current value of the record: Set(SendMail;LookUp('Registratie Reservaties';'Id (ID)'= SharePointIntegration.SelectedListItemID;Mail))
Still I can not thrust on the value that is shown when I edit or view a certain item. Sometimes it gives me the correct value, sometimes the wrong one.
The strange thing is I that did the exact same thing with another field, and there everything is behaving just fine there.
Any ideas or suggestions?