Discussions
Best method of retrieving jobs, allocations and schedules
over 6 years ago by Chad
Hey guys,
Just wanting to know how you guys at Servicem8 go about retriving jobs, allocations and schedules.
as perspective I am creating a job list similar to on MySchedule on servicem8 ios app
Since I can only filter a single parameter it makes it hard to narrow down the options often leaving long waits before retrieving the users jobs/allocations/schedules.
Currently I search allocations by active=1 then filter staff_uuid=user
Activities I search end date is gt current/date/time then filter on my end user_uuid=user, active=1, activity_was_scheduled=1
Jobs I search status ne Completed, then filter on my end status <> unsuccessful, active=1
It's really not that efficient