Hello.
I want to Patch my text Inputs to a Sharepoint List and after that i want to attach a file to the recently created list entry.
I have made a custom form with text inputs/dropdown/datepickers/choices for company needs.
I am useing Patch to write all the text inputs. And i have a Single Form for the Attachments that i want to submit too.
As far as i can get it to work the formula is creating 2 records 1 with the data and 1 empty with just the attachment.
How can i solve this or do i need to use a edit form control? My Formula..
Patch(
'Training Request',
{
Title: Title_Input.Text,
Costcenter: Costcenter_input.Text,
Organizer: Organizer_Input.Text,
From_Date: From_Date_Input.SelectedDate,
Till_Date: Till_Date_Input.SelectedDate,
Employee: Employee_Input.Text,
Location: Location_Input.Text,
Costs_Choice: Costs_Choice_Input.Selected,
Costs: Costs_text_Input.Text,
Purpose: Purpose_Input.Text
}
);
SubmitForm(Attachments_Form);