Message and inventory block examples
These are examples of messages and inventory blocks.
Inventory block examples
Deinstall inventory
<external_id>{resource_external_id}</external_id>
<cust_number>{activity_customer_number}</cust_number>
<appt_number>{activity_number}</appt_number>
<aid>{aid}</aid>
<astatus>{activity_status}</astatus>
<ETA>{activity_start_time}</ETA>
<aworktype>{activity_worktype_label}</aworktype>
<deinstalled_inventory>
<inventory>
<invsn>{inventory_serial_number}</invsn>
<invtype>{inventory_type}</invtype>
<eta_inventory_id>{invid}</eta_inventory_id>
<status>{invpool}</status>
</inventory>
</deinstalled_inventory>
Install inventory
<external_id>{resource_external_id}</external_id>
<cust_number>{activity_customer_number}</cust_number>
<appt_number>{activity_number}</appt_number>
<aid>{aid}</aid>
<astatus>{activity_status}</astatus>
<ETA>{activity_start_time}</ETA>
<aworktype>{activity_worktype_label}</aworktype>
<installed_inventory>
<inventory>
<invsn>{inventory_serial_number}</invsn>
<invtype>{inventory_type}</invtype>
<status>{invpool}</status>
<resource_id>{inv_pid}</resource_id>
<eta_inventory_id>{invid}</eta_inventory_id>
</inventory>
</installed_inventory>
Message examples
Start Activity
<acoord_x>{activity_coordx}</acoord_x>
<acoord_y>{activity_coordy}</acoord_y>
<appt_number>{activity_number}</appt_number>
<aid>{aid}</aid>
<astatus>{activity_status}</astatus>
<aworktype>{activity_worktype_label}</aworktype>
<caddress>{activity_address}</caddress>
<cphone>{activity_phone}</cphone>
<ccity>{activity_city}</ccity>
<cemail>{activity_email}</cemail>
<date>{destination_date}</date>
<eta>{activity_start_time|%F %H:%M}</eta>
<external_id>{resource_external_id}</external_id>
<activity_time_slot_label>{activity_time_slot_label}</activity_time_slot_label>
<user_name>{user_name}</user_name>
Delay Activity
<appt_number>{activity_number}</appt_number>
<aid>{aid}</aid>
<astatus>{activity_status}</astatus>
<aworktype>{activity_worktype_label}</aworktype>
<caddress>{activity_address}</caddress>
<ccity>{activity_city}</ccity>
<date>{destination_date}</date>
<eta>{activity_start_time|%F %H:%M}</eta>
<external_id>{resource_external_id}</external_id>
<delay_comments>{pr_delay_comments}</delay_comments>
<delay_reason>{pr_delay_reason}</delay_reason>
<user_name>{user_name}</user_name>
Cancel Activity
<appt_number>{activity_number}</appt_number>
<aid>{aid}</aid>
<astatus>{activity_status}</astatus>
<aworktype>{activity_worktype_label}</aworktype>
<caddress>{activity_address}</caddress>
<ccity>{activity_city}</ccity>
<cphone>{activity_phone}</cphone>
<cemail>{activity_email}</cemail>
<date>{destination_date}</date>
<external_id>{resource_external_id}</external_id>
<cancel_reason>{pr_cancel_reason}</cancel_reason>
<cancel_notes>{pr_cancel_notes}</cancel_notes>
<user_name>{user_name}</user_name>
Notdone Activity
<appt_number>{activity_number}</appt_number>
<aid>{aid}</aid>
<astatus>{activity_status}</astatus>
<aworktype>{activity_worktype_label}</aworktype>
<cname>{activity_customer_name}</cname>
<caddress>{activity_address}</caddress>
<ccity>{activity_city}</ccity>
<czip>{activity_zip}</czip>
<cstate>{activity_state}</cstate>
<cphone>{activity_phone}</cphone>
<date>{destination_date}</date>
<eta>{activity_start_time|%F %H:%M}</eta>
<end_time>{activity_end_time|%F %H:%M}</end_time>
<external_id>{resource_external_id}</external_id>
<work_skills><BLOCK type="activity_workskills">{activity_workskill_label},</BLOCK></work_skills>
<not_done_notes>{pr_not_done_notes}</not_done_notes>
<not_done_reason>{pr_not_done_reason}</not_done_reason>
<activity_time_slot_label>{activity_time_slot_label}</activity_time_slot_label>
<user_name>{user_name}</user_name>
Suspend Activity
<appt_number>{activity_number}</appt_number>
<aid>{aid}</aid>
<astatus>{activity_status}</astatus>
<aworktype>{activity_worktype_label}</aworktype>
<caddress>{activity_address}</caddress>
<ccity>{activity_city}</ccity>
<date>{destination_date}</date>
<eta>{activity_start_time|%F %H:%M}</eta>
<end_time>{activity_end_time|%F %H:%M}</end_time>
<external_id>{resource_external_id}</external_id>
<suspend_notes>{pr_suspend_notes}</suspend_notes>
<suspend_reason>{prnum_suspend_reason}</suspend_reason>
<activity_time_slot_label>{activity_time_slot_label}</activity_time_slot_label>
<user_name>{user_name}</user_name>
Complete Activity
<MessageItem>
<ActivityId>{aid}</ActivityId>
<LegacyServiceId>{activity_number}</LegacyServiceId>
<CustomerId>{activity_customer_number}</CustomerId>
<CustomerZip>{activity_zip}</CustomerZip>
<ActivityStatus>{activity_status}</ActivityStatus>
<ActivityType>{activity_worktype_label}</ActivityType>
<ScheduleDate>{route_date}</ScheduleDate>
<BeginTime>{activity_start_time|%F %H:%M}</BeginTime>
<EndTime>{activity_end_time}</EndTime>
<DurationInMinutes>{activity_duration}</DurationInMinutes>
<PositionInRoute>{activity_position_in_route}</PositionInRoute>
<TechnicianId>{user_login}</TechnicianId>
<ResourceId>{resource_external_id}</ResourceId>
<ResourceType>{resource_type}</ResourceType>
<EventDateTime>{message_time_of_creation}</EventDateTime>
</MessageItem>
Complete Activity
: different format
<values>
<appt_number>{activity_number}</appt_number>
<external_ID>{resource_external_id}</external_ID>
<date>{route_date}</date>
<site_id>{pr_SITEID}</site_id>
<p>
<l>astatus</l>
<v>{activity_status}</v>
</p>
<p>
<l>TECH_DEPARTURE_TIMESTAMP</l>
<v>{pr_TECH_DEPARTURE_TIMESTAMP}</v>
</p>
<p>
<l>JOURNAL_ENTRY_DATE</l>
<v>{message_time_of_creation}</v>
</p>
<p>
<l>JOURNAL_ENTRY_TYPE</l>
<v>Work Log</v>
</p>
<p>
<l>JOURNAL_ENTRY_DESCRIPTION</l>
<v>{pr_JOURNAL_ENTRY_DESCRIPTION}</v>
</p>
<p>
<l>JOURNAL_NOTE_ENTRY</l>
<v>{pr_JOURNAL_NOTE_ENTRY}</v>
</p>
<p>
<l>INCIDENT_CASE_ID</l>
<v>{pr_INCIDENT_CASE_ID}</v>
</p>
<p>
<l>SITEID</l>
<v>{pr_SITEID}</v>
</p>
<p>
<l>INVOICE</l>
<v>{pr_INVOICE}</v>
</p>
<p>
<l>CABLE_FOOTAGE</l>
<v>{pr_CABLE_FOOTAGE}</v>
</p>
<p>
<l>DROP_DIRECT_BURY</l>
<v>{pr_DROP_DIRECT_BURY}</v>
</p>
<p>
<l>CLOSURE_CODE</l>
<v>{prnum_CLOSURE_CODE}{prnum_CLOSURE_CODE1}</v>
</p>
</values>