Last Successful Login on Contact record - PowerApps Portal Custom Code
Updating the Last Successful Portal Login on Contact record by using Custom Code I understand that this feature is deprecated and should be replaced with Azure Application Insights. However, we still require the ability to search by Last Login date using Advanced Find (e.g., "look for contacts where last login is today"). This worked well with the now deprecated feature but (I think) can't be done using Application Insights because the data isn't stored on the contact record. I have implemented the functionality by using the Portals Content snippet to add jQuery code and calling Power Automate Flow in the Portal Sign-in Page to update the Last Login field to (almost) replicate the old behavior. How it works : In the below content snippet code, we will get username which user enters in the textbox and after clicking on sign in button then it triggers a power automated flow from content snippet and it will update the con