I have an issue I'm trying to work through and any help would be appreciated.
I have a situation where only one user can change the status to Confirmed, but other users can come in and update the record after it has been Confirmed. I need to change the status from Confirmed to Pending, if a Confirmed record is updated by any user.
I think I need this on the Save OnSelect before the actual submitform command. I'm trying the unsaved keyword and using that to switch the status, or at least that is what I'm thinking. I can't get anything to work so I'm coming here for advice. Thank you so much.
This is what I am trying right now, but I'm sure I am wrong. I have email notifications and submitform after this, as I want the new status to change first and trigger emails.
If(User().Email<>"email1" Or "email2" & DataCardValue17_1.Selected.Value = "4 - Confirmed",
Patch(
BIS_CUSTOMER,
{ID: Gallery7.Selected.ID},
{Request_x0020_Status:{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value:"3 - Pending"
}
}
),"");