0% found this document useful (0 votes)
56 views4 pages

Patch 1

The document describes using the Patch function in Power Automate to update multiple fields in a ticket table by looking up values from other tables based on user selections and lookups. The patch updates several reference fields by looking up IDs and values from other tables based on selections.

Uploaded by

Sushant kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views4 pages

Patch 1

The document describes using the Patch function in Power Automate to update multiple fields in a ticket table by looking up values from other tables based on user selections and lookups. The patch updates several reference fields by looking up IDs and values from other tables based on selections.

Uploaded by

Sushant kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Patch(

tbl_ticket,
Defaults(tbl_ticket),
{
ticket_id: textinput_Id.Text,
Incident_Title: 'textinput Incident Title'.Text,
Description: 'Textinput Description'.Text
},
{
ref_repoter_Id: {
'@odata.type':
"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: LookUp(
tbl_employee,
User().Email = Email_Address
).ID,
Value: LookUp(
tbl_employee,
User().Email = Email_Address,
User_Name
)
}
},
{
Ref_Department_Id: {
'@odata.type':
"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: LookUp(
tbl_ITSM_department_table,
Department_Name = 'Dropdown_
Department'.SelectedText.Value
).ID,
Value: LookUp(
tbl_ITSM_department_table,
Department_Name = 'Dropdown_
Department'.SelectedText.Value,
Department_Name
)
}
},
{
Ref_Category_Id: {
'@odata.type':
"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: LookUp(
tbl_Incident_Category,
Category = Dropdown_Category.SelectedText.Category
).ID,
Value: LookUp(
tbl_Incident_Category,
Category = Dropdown_Category.SelectedText.Category,
Category
)
}
},
{
Ref_Subcategory_Id: {
'@odata.type':
"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: LookUp(
tbl_Incident_Subcategory,
Incident_Subcategory =
Dropdown_Subcategory.SelectedText.Incident_Subcategory
).ID,
Value: LookUp(
tbl_Incident_Subcategory,
Incident_Subcategory =
Dropdown_Subcategory.SelectedText.Incident_Subcategory,
Incident_Subcategory
)
}
},
{
ref_support_person: {
'@odata.type':
"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: LookUp(
tbl_support_person,
Ref_Department_Id.Value = LookUp(
tbl_ITSM_department_table,
Department_Name = 'Dropdown_
Department'.SelectedText.Value,
'Department_ID '
) And ref_Supportperson_type.Value = LookUp(
tbl_supportperson_type,
SPT_Name = "Senior",
SPT_Id
)
).ID,
Value: LookUp(
tbl_support_person,
Ref_Department_Id.Value = LookUp(
tbl_ITSM_department_table,
Department_Name = 'Dropdown_
Department'.SelectedText.Value,
'Department_ID '
) And ref_Supportperson_type.Value = LookUp(
tbl_supportperson_type,
SPT_Name = "Senior",
SPT_Id
),
Support_Employee
)
}
},
{
Ref_Urgency_Id: {
'@odata.type':
"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: LookUp(
tbl_urgency,
Urgency_Type = DropdownUrgency.SelectedText.Value
).ID,
Value: LookUp(
tbl_urgency,
Urgency_Type = DropdownUrgency.SelectedText.Value,
Urgency_Type
)
}
},
{
Ref_Priority_Level_Id: {
'@odata.type':
"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: LookUp(
tbl_priority_level,
Priority_Level_of_Incident = Priority.Text
).ID,
Value: LookUp(
tbl_priority_level,
Priority_Level_of_Incident = Priority.Text,
Priority_Level_of_Incident
)
}
},
{
Ref_Incident_Status_Id:{
'@odata.type':
"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id:LookUp(tbl_Incident_status,Status_Name="In
Progress").ID,Value:LookUp(tbl_Incident_status,Status_Name="In
Progress",Status_Name)
}
},
{
Ref_Impact_Id:{
'@odata.type':
"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",Id:LookU
p(tbl_Impact,Impact=DropdownImpact.SelectedText.Impact).ID,Value:LookUp(t
bl_Impact,Impact=DropdownImpact.SelectedText.Impact).Impact
}
}

);

You might also like