Get Work Item Details

Describes the API specifications for retrieving the details of specific work items requiring approval.

Request

URI: /approvals/module_{moduleID}/{workItemID}/?for_user={username}

HTTP Method: GET

Request Parameters

Parameter

Required

Data Type

Description

Parameter Type

moduleID

Yes

String

Numeric module reference ID of the work item needing to be approved.

Path

workItemID

Yes

String

Specific object ID of the work item needing to be approved.

Path

for_user={username}

No

String

The unique username of the user being impersonated. If not included, the response only returns the work items that need approval for the person who submitted the request.

Query string

offset

No

String

The number of items to skip before starting to collect the result set. Used with limit.

Query string

limit

No

String

The maximum number of results to return. Used with offset. Together, they determine the start index and number of records to return. For example, to return 100 records starting with the 10th record, use the following:

/api/v1/approvals/module_{moduleID}/{workItemID}?for_user={username}&limit=100&offset=10 

By default, the offset is set to 0. The limit is set to 100 or 350 depending on the module. Recommend the use of the limit and offset parameters when a query would result in a large number of records downloaded that would adversely impact performance.

Query string

Request Example

GET https://company.com/api/v1/approvals/module_40/z16052019464862442387902
authorization: Bearer WDXlKj3TTOn3rpg9GHnZpbKmvj1=
x-ApplicationKey: 5c91f4fdb0c6ee9992ff476f89bf6cf25e589350
content-type: application/x-www-form-urlencoded

Response

Response Body

Parameter

Data Type

Description

Scope

ModuleID

String

Numeric module reference ID.

All

*ModuleName

String

Name of module, also type of object to be approved.

All

ID

String

Globally unique database-level identifier of object. The ID is used for the drill-down call. Not visible to end users.

All

Attributes

 

The attributes of the object.

Parameter

Data Type

Description

Scope

*ref

String

Object ID, visible to end users.

All

*uom

String

3-character currency code.

All

*name

String

Name of object as defined by user.

All

startDate

Date (mm/dd/yyyy)

Recorded start date of object to be approved. Logical value is module-dependent.

Module dependent

*amount

String

Amount to be approved.

All

others

various

Additional data captured in SAP Fieldglass for the object. Full list of data is module- and configuration-dependent and consumed/presented as extrinsic.

Module dependent.

refVersion

Numeric

Revision number of object to be approved.

All

refNameKey

String

The key of the object.

All

refName

String

The name of the object.

All

iconType

String

Description of object type: worker, procurement, payment.

All

validObject

Boolean

Always returns “false”.

All

createDate

Date (mm/dd/yyyy)

The date the work item was created.

All

creatorName

String

Name of the user who created the work item.

All

uniqueName

String

The username of the user.

All

emailId

String

The email address of the user.

All

status

String

The status of the work item.

All

 

Status

String

Ok if response is OK.

All

Details

String

All ok if response is OK.

All

Response Example

{
  "HEADER": {
    "AppVersion": "FieldglassAPIServer/1.0",
    "OSUAStr": "FieldglassAPIServer/1.0",
    "NumRecs": 1,
    "Status": "ok",
    "Details": "all ok"
  },
  "PAYLOAD": [
    {
      "ModuleID": "40",
      "ModuleName": "Job Posting",
      "ID": "z16042611572049752170918",
      "Attributes": {
        "ref": "CSCOJP00037008",
        "uom": "INR",
        "name": "QA-Engineer-Software Test I(India Monthly)",
        "startDate": "01/05/2016",
        "amount": "685,243.65",
        "others": {
          "[GROUP_ID]label.details": "Details",
          "Job Posting Number of Positions": "1",
          "Job Posting Start Date": "01/05/2016",
          "Description": "• Job Seekers must meet the minimum requirements outlined. Use the comments section on the Job Seeker profile to document how each meet or exceed these requirements:\r\n\r\n• Minimum Requirements:\r\n• 1. \r\n• 2. \r\n• 3. \r\n\r\n• Desired Skills: \r\n• 1. \r\n• 2. \r\n\r\n• Additional role, initiative and group information: \r\n\r\nFind bugs, defects, and regressions.  Design, implement, execute and debug information technology test cases and scripts.  Validate and document completion of testing and development.  Automate test cases.  Verify fixes. 3 years of experience are required.",
          "Company Code/Entity": "855.IND.ABC Video Technology India Private Limited",
          "Primary Work Site": "INDIA.KARNATAKA.BANGALORE",
          "Maximum Submissions Per Supplier": "3",
          "Buyer": "ABCD",
          "Cost Center List": "Client Eng Evo - APAC (India)",
          "Job Posting Title": "QA-Engineer-Software Test I(India Monthly)",
          "Job Posting End Date": "31/07/2016",
          "Job Posting Distribution Level": "1",
          "Job Posting Duration (Days)": "65",
          "Primary Location": "INDIA.KARNATAKA.BANGALORE",
          "Job Posting Service Type": "Temp",
          "Logged User Name": "Pp, Deepa",
          "Physical work site address": "Block 9A 9B, Pritech Park, SEZ Sarjapur Outer Ring Road Bellandur",
          "<b>Business Function: (required)</b>": "Services",
          "Compliance Statement": "By Selecting Yes below, I certify that, as an employee, I have reviewed and understand the policies and training related to non-employee (contingent workers), and that I will comply with all policies and guidelines related to this transaction.",
          "Certification": "Yes, I agree to comply with policy and guidelines.",
          "Training Help": "If you have not completed the C-Worker Training, please click the Log Out link above, and navigate to the Training tab on the C-Worker WebEx Social Page. After completion of the training, you can submit your transaction.",
          "[GROUP_ID]label.accounting": "Accounting",
          "Rates": "ST|MO|INR /Mo  228,414.55 INR\r\nST|DAY|INR /Day  (Calculated) INR",
          "Job Posting Average Rate": "228,414.55 INR",
          "Cost Allocation %": "Client Eng Evo - APAC (India) (855024838)  100.000%",
          "Estimated Spend": "685,243.65 INR",
          "Target Bill Rate": "228,414.55",
          "iProc Deliver To Location": "855|IN-PRITECH PARK-BGL43",
          "<b>Hiring Managers PLEASE NOTE:</b>": "<b>For renewal transactions, please provide Proof of Prior Purchase information for the Prior PO Amount and the Prior FG Transaction ID fields.<br><br> If the transaction is new, please enter 'New' for the Prior FG Transaction ID field, and enter \"0.00\" for the Prior PO Amount field. If you have any questions, please contact your C-Worker representative.</b>",
          "Prior PO Number:": "N/A",
          "Prior PO Amount: (if not applicable, enter zero).": "0.00",
          "Prior FG Transaction ID:": "N/A",
          "Is this transaction a Renewal?": "(No Value)",
          "Rebate Exception": "No",
          "Exception Required": "(No Value)",
          "Is this worker from a reclassified SOW?": "(No Value)",
          "Previous SOW Transaction ID": "(No Value)",
          "GBW escalation required?": "(No Value)",
          "[GROUP_ID]label.postingInformation": "Posting Information",
          "Job Posting Creator": "Nandita Agarwal",
          "Job Posting Owner": "Nandita Agarwal",
          "Reason for Job Posting/Use of Temporary Worker": "Increased or peak workload requires additional resourcing",
          "Will an interview be required?": "No",
          "Work Hours": "8",
          "Job Posting Category": "TEMPORARY PERSONNEL",
          "HRMS Job Title": "Engineer - Test/QA|QA-Engineer-Software Test I"
        },
        "refVersion": 0,
        "refNameKey": "label.jobPostingId",
        "refName": "Job Posting ID",
        "iconType": "procurement",
        "validObject": true,
        "createDate": "26/04/2016",
        "creatorName": "Agarwal, Nandita",
        "uniqueName": "nandita_agarwal",
        "emailId": "nagarwal@acme.com",
        "status": "Pending Approval"
      },
      "Status": "ok",
      "Details": "all ok"
    }
  ]
}