The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi
I have created a PowerApp write back that works well, but now i am trying to make it better with error or success messages. I am not a coder, i cut paste and try different actions.
I have a function that allows selection to recognize if an item exists on the Sharepoint table to use an "update form" or if no record exist use a "create Form"
I use a standard Update Form if a record exist on my sharpoint Table, with Success Message, this works fine
I created a form to address "if no record exist on sharepoint", so it creates a new record
The "Invoice _No" which is the "Unique key" will create an error if it already exists, this happens if you press Create Record button multiple times or go to update the same record before a scheduled refresh occurs (Hourly).
Because i have the unique key activated in sharepoint an error occurs that doesnt show on the Dashboard, i would like to create a success or error messgae for this function.
Base code that works is .
Patch('ACTION_&_COMMENT_LIST2',Defaults('ACTION_&_COMMENT_LIST2'),{Invoice_Number:TextCanvas2_6.Text,COMMENT:CommentTXT.Value,FILTER:FilterTXT.Value,ACTION:ActionCombo.SelectedItems}),
Navigate(('Comment List Dispaly')
Code that has an error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.