Patch(
'Flight Bookings (Test)',
{RecordID:Plane_RecordID},
{
Title: Plane_Title.Text,
'Name of Requester': Plane_Requester.Text,
'Contact Number': Plane_ContactNumber.Text,
'Ward / Department': Plane_WardDept.Text,
'Cost Centre': Plane_CostCentre.Text,
'Authorising Manager': Plane_AuthMgr.Text,
'Authorising Manager email': Plane_AuthMgrEmail.Text,
'Who is Booking For?': Plane_WhoBookingfor.SelectedItems.Value,
'Departure Airport': Plane_DeptAirport.Text,
'Departure Flight Date & Time': Plane_DeptDate.SelectedDate + Time(
Value(Plane_DeptHour.Selected.Value),
Value(Plane_DeptMin.Selected.Value),
0
),
'Destination Airport': Plane_DestAirport.Text,
'Name of Travellers': Plane_Travellers.Text,
'Ticket Allocation': Plane_TktAllocation.Text,
'Airline to be Booked': Plane_BookedAirline.Text,
'Return Flight Date & Time': Plane_RtnDate.SelectedDate + Time(
Value(Plane_RtnHour.Selected.Value),
Value(Plane_RtnMin.Selected.Value),
0
),
'Same People Returning?': Plane_RtnPeople.Value,
'Additional Information': Plane_AddiInfo.Text,
'Ticket Price': Plane_TktPrice.Text,
'Booking Status': Plane_Status.Selected,
Comments: Plane_Comms.Text
}
)
If I make any changes to the record it creates another record in the SharePoint list???