Entity_type and Entity_id Values

External Approval API for Sourcing and Supplier Management queries use entity_type and entity_id values to get details about a specific approval task or item being approved. The data is retrieved based on the visibility conditions specified in the questionnaire or form.

entity_type Values

Clients can retrieve details about an approval task or item being approved (document, event, or project) using the GET /{entity_type}/{entity_id} method with one of the following entity_type values:

To Get Details About A...

Specify This entity_type

Task

Task

Sourcing event (RFI, RFP, auction)

RFXDocument

Project Workspace

Workspace

Project Folder

WSFolder

Questionnaire

RFXDocument

Contract

ContractDocument

Contract line items document (CLID)

ContractContentItem

Contract Request

Task

Project documents

Document

Folder (including all child folders and documents in the hierarchy)

Folder

entity_id Values

The method for determining the value to specify for the entity_id parameter varies according to the entity type.
  • Task

    The entity_id values for tasks in a GET /changes response are contained in approvableUniqueName name/values pairs. For example:
    "approvableUniqueName": "TSK999999"
    The entity_id values for tasks in a GET /pendingApprovables response are contained in uniqueName name/values pairs. For example:
    "uniqueName": "TSK101395"
  • Document, folder, or project

    To determine the entity_id value for a document, folder, or project, a client first retrieves the details for the approval task ( GET /Task/{entity_id}). In the response for the task details, the path to the entity_id for the document, folder, or project is:

    document/id

    For example:
    {
    	"id":"Task1234",
    	"title":"Approval for Folder",
    	...
    	"document":{
    		"id":"Folder1234",
    		...
    		}
    }
  • Sourcing events (RFXDocument entity types)

    To determine the entity_id value for an event, a client first retrieves the details for the approval task ( GET /Task/{entity_id}). In the response for the task details, the path to the entity_id for the event is:

    document/content/documents/id

    The element in the documents array for the event also contains the following name/value pairs:

    "type": "Event"
    "entityType": "RFXDocument"

    In the following example, the document ID for the event is Doc33333:

    {
        "id": "TSK11111",
        "title": "Approval for RFP Award1",
        "description": "",
    ...
    "document": {
            "id": "WS22222",
            "aribaType": "ariba.sourcing.rfx.SourcingProject",
            "entityType": "SourcingProject",
            "content": {
    ...
                "documents": [
                    {
                        "id": "Doc33333",
                        "name": "RFP Award1",
                        "type": "Event",
                        "entityType": "RFXDocument",
    ...