Hello! Im creating a shopping cart app and sending the users selected items as an HTML table. I have followed Shane Young's video Power Apps Shopping Cart new for 2021 - YouTube and I am seeming to have issues submitting due to a 'Network Error when using patch function'. In the video at "35:23" he creates a variable to create an Order ID to the patch so you can store order #'s as the app was used. I'm also trying to create an order ID and use it in the HTML table and I get an error when trying to submit after I add the VarRecord into the HTML text. When I removed the varRecord I was able to submit and send an email. Is there a workaround this error?
This is what I have in the HTMLText
"<h3>Invenory Order</h3>" &
"<table width='100%'> " &
"<tr>
<td> Order ID: </td> <td>" & varRecordID2 & "</td>" &
"</tr>" &
"<tr>
<td> User: </td> <td>" & TitleTxt.Text & "</td>" &
"</tr>" &
"<tr>
<td> Date: </td> <td>" & Today() & "</td>
</tr>" &
"<tr>
<td> Date Needed: </td> <td>" & DatePicker1 & "</td>
</tr>" &
"</table> <br>" &
"<strong> Items: </strong>" &
"<table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" &
"<tr style='background-color:#efefef'>
<th>Id</th> <th> Name </th> <th> Description </th><th> Accessories </th>
</tr>
<tr>" &
Concat(Gallery3.AllItems,
"<td>" & ID & " </td>
<td>" & Description & " </td>
<td>" & Qty & " </td>","</tr><tr>") &
"</table>"
And This in my submit button onselect
Set(varRecordID2, Patch(Table3, Defaults(Table3), {Title: User().FullName, 'Item ID': ItemIDTxt, Description: ItemDesTxt, 'Order Qty': OrderQTYTxt, 'Date Needed': DatePicker1, Comments:CommentsBox.Text}).'Order ID');
Office365Outlook.SendEmailV2("IT@apadex.com","Inventory",HtmlText1.HtmlText,{Importance:"High"})
thanks to anyone who can help!