Skip to main content
HI,

I am looking to get an SOQL which can help to find all service Appointment which are scheduled to Preferred / Requried Service Resources. I am looking for a SOQL including ServiceAppointment, WorkOrder and WorkType.

 
4 answers
  1. Mar 24, 2020, 3:09 PM
    Hi Varun,

     Can you try something like this? 

    SELECT Id, Status, ParentRecordId,ParentRecordType,WorkTypeId FROM ServiceAppointment where Status IN ('Preferred', 'Required Service') AND ParentRecordType = 'Workorder'

    Hi Varun, Can you try something like this?

    Anudeep

     
0/9000