I think I have the syntax down now, but just a few questions. How do I pass a DATE value? I thought it would be datecontrol.SelectedDate, but it throws an exception that the data is expected to be a date value. To bypass this, I am just using NOW(), but I would like to use the date that is entered by the user. Also two of the fields are Person lookups (name and job title). I am going to assume I can just use the text that is in the field, but I also see where the syntax is different for lookup columns.
One of my columns is a possible multi-select. Is this also possible using the PATCH statement and how would that work?
This is the syntax of Patch I am using right now:
Patch('OSHA Respirator Medical Evaluation Questionnaire',
Defaults('OSHA Respirator Medical Evaluation Questionnaire'),
{
Title: txtYourName.Text&dateToday.Text,
Todays_Date: Now(),
Your_Name: txtYourName.Text,
Your_Age: txtYourAge.Text,
Sex: txtSex.Text,
Your_height: txtHeight.Text,
Your_weight: txtWeight.Text,
Your_job_title: txtJobTitle.Text,
Your_Phone: txtPhone.Text,
Phone_Time: txtPhoneTime.Text,
Contact_HCP_Reviewer: ynContactHCPReviewer.Text,
Respirator_Type: cmbRespTypes.Text, <---Possible multiselection
.
.
.
Talk_to_HCP: ynTalkToHCPREviewer.Text,
Digital_signature: txtSignature.text
}
)
There are a total of 72 data points that make one record in the SharePoint list