Retrieve Net Changes for Team Segments

This operation returns Team Segments. Required parameters include select, lastRunDateTime and endDateTime.

Service limit

A service limit constrains the number of team definitions and duration that can be processed in a single request.

  • The Number of Team Definitions cannot exceed 50.

  • The Duration in seconds cannot exceed 86400.

Refer to the Limits topic for more information.

The associated Access Control Point is WFA_WORK_INTEGRATION_API.

Example call

Example request

{
  "select": [
    "SEGMENTS_WITH_RESULTS"
  ],
  "where": {
    "teams": {
      "ids": [
        33,
        34
      ],
      "qualifiers": [
        "Team 1",
        "Team 2"
      ],
      "refs": [
        {
          "id": 34,
          "qualifier": "Team 2"
        },
        {
          "id": 33,
          "qualifier": "Team 1"
        }
      ]
    },
    "activities": {
      "ids": [
        101,
        151
      ],
      "qualifiers": [
        "101-22",
        "Activity Name"
      ],
      "refs": [
        {
          "id": 101,
          "qualifier": "101-22"
        },
        {
          "id": 151,
          "qualifier": "Activity Name"
        }
      ]
    },
    "lastRunDateTime": "2021-09-24T12:11:36",
    "endDateTime": "2021-09-24T12:12:00"
  }
}

Example response

[
  {
    "team": {
      "id": 34,
      "qualifier": "Team 2"
    },
    "teamSegments": [
      {
        "current": {
          "segment": {
            "id": 34,
            "activity": {
              "id": 101,
              "qualifier": "101-22"
            },
            "dataSource": {
              "id": 5640,
              "qualifier": "Princeton, Charles",
              "displayName": "Team Segment Editor",
              "functionalAreaName": "CharlesPrinceton/Team Segment Editor",
              "name": "Princeton, Charles"
            },
            "startDateTime": "2021-09-24T09:10:00",
            "endDateTime": "2021-09-24T17:00:00",
            "startTimezone": "(GMT -05:00) Eastern Time (USA; Canada)",
            "endTimezone": "(GMT -05:00) Eastern Time (USA; Canada)",
            "hoursAllocatedType": "EVEN",
            "direct": true,
            "eventType": 0,
            "updatedDateTime": "2021-09-24T12:11:44",
            "orgJob": {
              "id": 84,
              "qualifier": "Organization/Australia/Metropolitan Plant/Administration/Manufacturing Manager"
            },
            "workRule": {
              "id": 67,
              "qualifier": "Admin Assistant"
            },
            "laborCategory": [
              {
                "laborCategoryDef": {
                  "id": 9,
                  "qualifier": "Contract Code"
                },
                "laborCategoryEntry": {
                  "id": 57,
                  "qualifier": "Fed-201"
                }
              },
              {
                "laborCategoryDef": {
                  "id": 10,
                  "qualifier": "Project Code"
                },
                "laborCategoryEntry": {
                  "id": 59,
                  "qualifier": "SS Minnow 1"
                }
              },
              {
                "laborCategoryDef": {
                  "id": 11,
                  "qualifier": "Shift"
                },
                "laborCategoryEntry": {
                  "id": 155,
                  "qualifier": "Night Shift"
                }
              }
            ],
            "costCenter": {
              "id": 1,
              "qualifier": "CC_Production"
            },
            "accepted": false,
            "closable": false,
            "results": [
              {
                "id": 196,
                "fieldDefinition": "_Quantity Complete",
                "decimalResult": 2.0,
                "createdDateTime": "2021-09-24T12:11:24",
                "updatedDateTime": "2021-09-24T12:11:44",
                "dataSource": {
                  "id": 5640,
                  "qualifier": "Princeton, Charles",
                  "displayName": "Team Segment Editor",
                  "functionalAreaName": "CharlesPrinceton/Team Segment Editor",
                  "name": "Princeton, Charles"
                },
                "effectiveDateTime": "2021-09-24T12:11:24",
                "status": "UPDATED",
                "activityTeamSegmentId": 34
              },
              {
                "id": 197,
                "fieldDefinition": "Coating Color",
                "resultCode": "Green",
                "createdDateTime": "2021-09-24T12:11:24",
                "updatedDateTime": "2021-09-24T12:11:24",
                "dataSource": {
                  "id": 5640,
                  "qualifier": "Princeton, Charles",
                  "displayName": "Team Segment Editor",
                  "functionalAreaName": "CharlesPrinceton/Team Segment Editor",
                  "name": "Princeton, Charles"
                },
                "effectiveDateTime": "2021-09-24T12:11:24",
                "childResultSegments": [
                  {
                    "id": 198,
                    "fieldDefinition": "_Quantity Reworked",
                    "decimalResult": 2.0,
                    "createdDateTime": "2021-09-24T12:11:24",
                    "updatedDateTime": "2021-09-24T12:11:44",
                    "dataSource": {
                      "id": 5640,
                      "qualifier": "Princeton, Charles",
                      "displayName": "Team Segment Editor",
                      "functionalAreaName": "CharlesPrinceton/Team Segment Editor",
                      "name": "Princeton, Charles"
                    },
                    "effectiveDateTime": "2021-09-24T12:11:24",
                    "status": "ADDED",
                    "activityTeamSegmentId": 34
                  }
                ],
                "status": "UPDATED",
                "activityTeamSegmentId": 34
              }
            ]
          },
          "status": "UPDATED"
        },
        "previous": {
          "segment": {
            "id": 34,
            "activity": {
              "id": 101,
              "qualifier": "101-22"
            },
            "dataSource": {
              "id": 5640,
              "qualifier": "Princeton, Charles",
              "displayName": "Team Segment Editor",
              "functionalAreaName": "CharlesPrinceton/Team Segment Editor",
              "name": "Princeton, Charles"
            },
            "startDateTime": "2021-09-24T09:00:00",
            "endDateTime": "2021-09-24T17:00:00",
            "startTimezone": "(GMT -05:00) Eastern Time (USA; Canada)",
            "endTimezone": "(GMT -05:00) Eastern Time (USA; Canada)",
            "hoursAllocatedType": "EVEN",
            "direct": true,
            "eventType": 0,
            "updatedDateTime": "2021-09-24T12:11:24",
            "orgJob": {
              "id": 84,
              "qualifier": "Organization/Australia/Metropolitan Plant/Administration/Manufacturing Manager"
            },
            "workRule": {
              "id": 67,
              "qualifier": "Admin Assistant"
            },
            "laborCategory": [
              {
                "laborCategoryDef": {
                  "id": 9,
                  "qualifier": "Contract Code"
                },
                "laborCategoryEntry": {
                  "id": 57,
                  "qualifier": "Fed-201"
                }
              },
              {
                "laborCategoryDef": {
                  "id": 10,
                  "qualifier": "Project Code"
                },
                "laborCategoryEntry": {
                  "id": 59,
                  "qualifier": "SS Minnow 1"
                }
              },
              {
                "laborCategoryDef": {
                  "id": 11,
                  "qualifier": "Shift"
                },
                "laborCategoryEntry": {
                  "id": 155,
                  "qualifier": "Night Shift"
                }
              }
            ],
            "costCenter": {
              "id": 1,
              "qualifier": "CC_Production"
            },
            "accepted": false,
            "closable": false,
            "results": [
              {
                "id": 196,
                "fieldDefinition": "_Quantity Complete",
                "decimalResult": 1.0,
                "createdDateTime": "2021-09-24T12:11:24",
                "updatedDateTime": "2021-09-24T12:11:24",
                "dataSource": {
                  "id": 5640,
                  "qualifier": "Princeton, Charles",
                  "displayName": "Team Segment Editor",
                  "functionalAreaName": "CharlesPrinceton/Team Segment Editor",
                  "name": "Princeton, Charles"
                },
                "effectiveDateTime": "2021-09-24T12:11:24",
                "status": "ADDED",
                "activityTeamSegmentId": 34
              },
              {
                "id": 197,
                "fieldDefinition": "Coating Color",
                "resultCode": "Green",
                "createdDateTime": "2021-09-24T12:11:24",
                "updatedDateTime": "2021-09-24T12:11:24",
                "dataSource": {
                  "id": 5640,
                  "qualifier": "Princeton, Charles",
                  "displayName": "Team Segment Editor",
                  "functionalAreaName": "CharlesPrinceton/Team Segment Editor",
                  "name": "Princeton, Charles"
                },
                "effectiveDateTime": "2021-09-24T12:11:24",
                "childResultSegments": [
                  {
                    "id": 198,
                    "fieldDefinition": "_Quantity Reworked",
                    "decimalResult": 1.0,
                    "createdDateTime": "2021-09-24T12:11:24",
                    "updatedDateTime": "2021-09-24T12:11:24",
                    "dataSource": {
                      "id": 5640,
                      "qualifier": "Princeton, Charles",
                      "displayName": "Team Segment Editor",
                      "functionalAreaName": "CharlesPrinceton/Team Segment Editor",
                      "name": "Princeton, Charles"
                    },
                    "effectiveDateTime": "2021-09-24T12:11:24",
                    "status": "ADDED",
                    "activityTeamSegmentId": 34
                  }
                ],
                "status": "ADDED",
                "activityTeamSegmentId": 34
              }
            ]
          },
          "status": "ADDED"
        }
      }
    ]
  }
]

Language
Credentials
Bearer
JWT
URL