Hello,
I have a custom form built using powerapps which I'm configuring notifications for. When a user submits a new item, I need an email to go out alerting people that a new item is created. I also want to capture data from that form, such as the item's due date, project number, etc. The email code is run on an item's OnSuccess property. I thought I could collect this information by just using the form data card values, but it turns out that the notifications sent out are always one submission behind. That is, after a user clicks Save, the due date, project number, and rest of the data stored, is from submission before them.
I thought maybe I could get around this by invoking ThisItem.[thefield], but that too does not appear to work. I've thought of setting variables to items OnChange properties and then using the variables instead, but that doesn't seem to be working well either. I'm starting to think that the only way around this particular issue is to create a new Save button inside the form, but if that is the workaround I'll have to teach all my users not to click the save button that the SharePoint list puts on it by default... not ideal.
Any advice?
My guess is that this is because of the fact that the SharePoint integrated "Save" button