Hello,
I am using patch to create a data that is to generate a unique ID for each of my entry.
// Update ticket number
UpdateContext({item_newTicket: Patch(Ticket, item_newTicket, {'Ticket No.':Text(item_newTicket.ID,"[$-en-US]000000")})});
and here is to update/save the status for the entry:
//Update ticket status and assign PIC
UpdateContext({item_newTicket: Patch(Ticket, Defaults(Ticket),{PIC:LookUp('Sub Category',ID=ddlSubCategory.Selected.Id).PIC,Substatus:LookUp(Choices(Ticket.Status),Value="New"),Status:LookUp(Choices(Ticket.Status),Value="Open")})});
At first, I figured to just patch all of the input fields but I realized Attachments is not supported in Patch function. So now I have to use submitForm but in order to create a ticket ID is to use patch.
Is it possible to submit and patch with only one button? I tried it but unfortunately it creates double entries in my SP list. And none of the patch fields is showing up.
Really appreciate if anyone can help me and thank you.. 🙂