public.z_wfmscheduledata

public.z_wfmscheduledata

Description

See WFMScheduleData: Data combining schedule and time off information

Table Definition

CREATE VIEW z_wfmscheduledata AS (
 SELECT sc.userid,
    sc.shiftstartdate,
    sc.shiftlengthtime,
    sc.activitystartdate,
    sc.activitystartdateltc,
    sc.activitylengthtime,
    sc.activitydescription,
    sc.activitycodeid,
    ad.category AS activitycategory,
    (sc.activitypaid)::integer AS activitypaid,
    (sc.shiftmanuallyeditted)::integer AS shiftmanuallyeditted,
    ud.name AS agentname,
    ud.managerid,
    ud.managername,
    ad.name AS activitycodedesc,
    bu.name AS businessunit,
    NULL::character varying AS timeoffrequestid
   FROM (((scheduledata sc
     LEFT JOIN vwuserdetail ud ON (((ud.id)::text = (sc.userid)::text)))
     LEFT JOIN activitycodedetails ad ON ((((ad.businessunitid)::text = (sc.buid)::text) AND ((ad.id)::text = (sc.activitycodeid)::text))))
     LEFT JOIN budetails bu ON (((bu.id)::text = (sc.buid)::text)))
UNION
 SELECT td.userid,
    td.businessunitdate AS shiftstartdate,
        CASE
            WHEN ((tdreq.isfulldayrequest)::integer = 1) THEN 86400
            ELSE td.length
        END AS shiftlengthtime,
    td.businessunitdate AS activitystartdate,
    td.businessunitdate AS activitystartdateltc,
        CASE
            WHEN ((tdreq.isfulldayrequest)::integer = 1) THEN 86400
            ELSE td.length
        END AS activitylengthtime,
    'Absent'::character varying AS activitydescription,
    td.activitycode AS activitycodeid,
    'Absent'::character varying AS activitycategory,
    0 AS activitypaid,
    0 AS shiftmanuallyeditted,
    userdet.name AS agentname,
    userdet.managerid,
    userdet.managername,
    td.description AS activitycodedesc,
    businessunit.name AS businessunit,
    tdreq.id AS timeoffrequestid
   FROM ((((timeoffdata td
     LEFT JOIN vwuserdetail userdet ON (((userdet.id)::text = (td.userid)::text)))
     LEFT JOIN activitycodedetails ad ON ((((ad.businessunitid)::text = (ad.businessunitid)::text) AND ((ad.id)::text = (td.activitycode)::text))))
     LEFT JOIN budetails businessunit ON (((businessunit.id)::text = (ad.businessunitid)::text)))
     LEFT JOIN timeoffrequestdata tdreq ON (((tdreq.id)::text = (td.timeoffrequestid)::text)))
)

Columns

Name Type Default Nullable Children Parents Comment
userid varchar(50) true User GUID
shiftstartdate timestamp without time zone true Shift Start Date
shiftlengthtime integer true Shift Length Time in Seconds
activitystartdate timestamp without time zone true Activity Start Date(UTC)
activitystartdateltc timestamp without time zone true Activity Start Date (LTC)
activitylengthtime integer true Activity Length Time in Seconds
activitydescription varchar true Activity Description
activitycodeid varchar(50) true Activity Code GUID
activitycategory varchar true Activity Category
activitypaid integer true Activity Paid or not
shiftmanuallyeditted integer true Shift Manually Edited or not
agentname varchar(200) true Agent Name
managerid varchar(50) true Manager GUID
managername varchar(200) true Manager Name
activitycodedesc varchar true Activity Code Description
businessunit varchar(50) true Business Unit
timeoffrequestid varchar true Time Off Request GUID

Referenced Tables

Name Columns Comment Type
public.scheduledata 16 BASE TABLE
public.vwuserdetail 17 See UserDetail: User Description in detail VIEW
public.activitycodedetails 11 Activity Code Lookup Data BASE TABLE
public.budetails 3 BASE TABLE
public.timeoffdata 10 BASE TABLE
public.timeoffrequestdata 16 WFM Time off requests entered by the Agents / or by proxys on their behalf BASE TABLE

    • Related Articles

    • public.z_vwcallabandonedsummary

      Description See CallAbandonedSummary: Summary of abandoned calls with relevant details Table Definition CREATE VIEW z_vwcallabandonedsummary AS ( SELECT det.conversationid, det.conversationstartdate, (det.conversationstartdate AT TIME ZONE ...
    • README

      Logo Genesys Adapter Data Dictionary Tables Name Columns Comment Type public.tabledefinitions 5 Subscription Detailed Data BASE TABLE public.activeqmembersdata 9 Historical Active Membership of Queues BASE TABLE public.activitycodedetails 11 Activity ...
    • public.participantattributesdynamic

      Description Columns Name Type Default Nullable Children Parents Comment keyid varchar(50) false conversationid varchar(50) false conversationstartdate timestamp without time zone false conversationstartdateltc timestamp without time zone true ...
    • public.evalquestiondata

      Description Columns Name Type Default Nullable Children Parents Comment keyid varchar(50) false evaluationid varchar(50) false evaluationformid varchar(50) false questiongroupid varchar(50) true questionid varchar(50) true answerid varchar(50) true ...
    • public.userpresencedetaileddata

      Description User Presence Detailed Data Columns Name Type Default Nullable Children Parents Comment keyid varchar(255) false Primary Key userid varchar(50) true Agent GUID starttime timestamp without time zone false Start Time (UTC) starttimeltc ...