Hi Warren,
I know where i am going wrong. When i create a ticket, the Location and ClientName are not pulling through to Sharepoint.
Can you review the code below and error below that - please
Set(
NumberOfTickets, NumberOfTickets + 1
);
Patch(
HelpDesk,
Defaults(HelpDesk),
{
Title: CreateTicketScreenTitleText.Text,
Priority: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: 1,
Value: CreateTicketScreenPriorityDropDown.SelectedText.Value,
PercentComplete: 0,
Description: CreateTicketScreenTaskDescription.Text,
Category: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: 1,
Value: CreateTicketScreenCategoryDropDown.SelectedText.Value,
LocationName: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: 1,
Value: LocationNameDD.SelectedText.Value,
ClientName: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: 1,
Value: ClientNameDD.SelectedText.Value }}}}}
);
Reset(CreateTicketScreenTitleText);
Reset(CreateTicketScreenTaskDescription);
Reset(CreateTicketScreenCategoryDropDown);
Reset(CreateTicketScreenPriorityDropDown);
Navigate(MyTicketsScreen)
ERROR: Description: Field 'Description is required