SWAPI - Schedule Query by JobNo or CallID

ScheduleQuery

Two parameters are now available:

·         JobNo

·         CallID

 

This will allow you to query the Schedule information for a particular call or job.  You can combine this with Assignment_ActualTimeDate to query all assignment for a call or job for a particular day.

Request

<SessionRequest Version="string" SessionID="{E1457F2E-C6ED-4C5A-AB27-E23F1E792F66}" RequestID="string">

  <ScheduleQuery Filter="string" Max="string" OrderBy="string" StyleNo="string" StyleOptions="string">

    <Assignment_ActualTimeDate>dateTime</Assignment_ActualTimeDate>

    <EmployeeCode>JOE</EmployeeCode>

    <Job_Department>string</Job_Department>

    <JobClass>string</JobClass>

    <JobType>string</JobType>

    <Location_Zone>string</Location_Zone>

    <CallDate>dateTime</CallDate>

    <CallID>int</CallID>

    <JobID>int</JobID>

  </ScheduleQuery>

</SessionRequest>

Response

<?xml version="1.0"?>

<ScheduleQueryData RequestID="string">

  <ScheduleQueryRecord>

    <JobProgress>string(11)</JobProgress>

    <CallProgress>string(11)</CallProgress>

    <AssignmentID>integer</AssignmentID>

    <ScheduledDT>dateTime</ScheduledDT>

    <ScheduledDate>dateTime</ScheduledDate>

    <ActualDuration>dateTime</ActualDuration>

    <EmployeeCode>string(6)</EmployeeCode>

    <Notified>dateTime</Notified>

    <Dispatched>dateTime</Dispatched>

    <Onsite>dateTime</Onsite>

    <Completed>dateTime</Completed>

    <CallID>integer</CallID>

    <Status>string(6)</Status>

    <PriorityLevel>integer</PriorityLevel>

    <JobID>integer</JobID>

    <JobNo>string(10)</JobNo>

    <JobClass>string(15)</JobClass>

    <IsSaleEst>boolean</IsSaleEst>

    <JobType>string(6)</JobType>

    <Department>string(2)</Department>

    <PrimaryEmp>string(6)</PrimaryEmp>

    <UnitType>string(50)</UnitType>

    <UnitAge>integer</UnitAge>

    <AgreementType>string(60)</AgreementType>

    <WarrantyType>string(60)</WarrantyType>

    <Contact>string(40)</Contact>

    <CustomerPONum>string(12)</CustomerPONum>

    <CallbackJobNo>string(10)</CallbackJobNo>

    <LocationID>integer</LocationID>

    <LastName>string(35)</LastName>

    <FirstName>string(25)</FirstName>

    <CompanyName>string(35)</CompanyName>

    <Address1>string(35)</Address1>

    <Address2>string(35)</Address2>

    <City>string(20)</City>

    <State>string(2)</State>

    <Zip>string(10)</Zip>

    <Zone>string(6)</Zone>

    <Phone1>string(12)</Phone1>

    <Phone1Ext>string(6)</Phone1Ext>

    <AR_BillingCustomerID>integer</AR_BillingCustomerID>

    <AccountCompanyName>string(35)</AccountCompanyName>

    <AccountCustTitle>string(12)</AccountCustTitle>

    <AccountFirstName>string(25)</AccountFirstName>

    <AccountLastName>string(35)</AccountLastName>

    <AccountAddress1>string(35)</AccountAddress1>

    <AccountAddress2>string(35)</AccountAddress2>

    <AccountCity>string(20)</AccountCity>

    <AccountState>string(2)</AccountState>

    <AccountZip>string(10)</AccountZip>

    <AccountPhone1>string(12)</AccountPhone1>

    <AccountPhone1Ext>string(6)</AccountPhone1Ext>

    <CustomerRating>string(6)</CustomerRating>

    <CurrentBalance>float</CurrentBalance>

    <BillingCustomerID>string(10)</BillingCustomerID>

    <CallScheduledDT>dateTime</CallScheduledDT>

    <CallScheduledDate>dateTime</CallScheduledDate>

    <CallType>string(6)</CallType>

    <AssignedCount>short</AssignedCount>

    <Instructions>string</Instructions>

    <Phone2>string(12)</Phone2>

    <Phone2Ext>string(6)</Phone2Ext>

    <EmailAddress>string(150)</EmailAddress>

    <LeadSource>string(6)</LeadSource>

    <Subdivision>string(20)</Subdivision>

    <CProgress>integer</CProgress>

    <JProgress>integer</JProgress>

    <ClaimNo>string(10)</ClaimNo>

    <ContractNo>string(20)</ContractNo>

    <LeadSourceType>string(16)</LeadSourceType>

  </ScheduleQueryRecord>

</ScheduleQueryData>