Retrieving Modular and Inherent Risk Screening Questionnaires Using the Supplier Risk Engagements API

Use these steps to retrieve modular and inherent risk screening questionnaire data, including data on questionnaires used as engagement risk assessments from SAP Ariba Supplier Risk.

Prerequisites

If not already done, a member of the Customer Administrator group configures your site for use of control-based engagement risk assessment projects. Refer to Workflow for Setting Up Control-Based Engagement Risk Assessment Projects for more information on setting up control-based engagement risk assessment projects.

Procedure

  1. The client application uses the GET /questionnaires endpoint to retrieve a list of modular and inherent questionnaires. The endpoint uses the last updated date or last updated date range for the desired questionnaires. Use the query parameters to search and filter the results. If you already know the project IDs for the questionnaires (workspace IDs), or you previously got the IDs as part of the engagement details using the GET /engagements endpoint, you can skip to the GET /questionnaires/{workspaceId} endpoint in step 2 to retrieve the questionnaire details.
    GET {{runtime_url}}/questionnaires&realm=mySite

    On success, the response includes a 200 success code.

    The response returns a JSON with the results that match the criteria in the QuestionnaireSearchResponse block.

    {
      "questionnaires": [
        {
          "workspaceId": "string",
          "title": "string",
          "status": "string",
          "sentDate": "string",
          "smVendorId": "string",
          "updatedDate": "string"
        }
      ]
      "count": 1
    }

    On failure, the response includes an error message. See Supplier Risk Engagements API Error Messages for a list of possible errors.

  2. The client application uses the GET /questionnaires/{workspaceId} endpoint to retrieve the details for the modular and inherent risk screening questionnaires.
    Provide the workspace ID of either modular questionnaire or inherent questionnaire to retrieve the appropriate details. To retrieve both modular and inherent screening questionnaires, provide the engagement workspace ID

    On success, the response includes a 200 success code.

    The response returns a JSON with the results that match the criteria in the QuestionnaireResponse block.

    [
      {
        "workspaceId": "string",
        "title": "string",
        "status": "string",
        "sentDate": "string",
        "dueDate": "string",
        "approvedDate": "string",
        "deniedDate": "string",
        "expirationDate": "string",
        "updatedDate": "string",
        "supplier": {
          "smVendorId": "string",
          "name": "string",
          "legalName": "string",
          "telephone": "string",
          "fax": "string",
          "contactFirstName": "string",
          "contactMiddleName": "string",
          "contactLastName": "string",
          "contactTelephone": "string",
          "contactEmail": "string"
        },
        "questionsAndAnswers": [
          {
            "question": "string",
            "answerType": "string",
            "answer": "string"
          }
        ]
      },
       {
        "workspaceId": "string",
        "title": "string",
        "status": "string",
        "sentDate": "string",
        "dueDate": "string",
        "approvedDate": "string",
        "deniedDate": "string",
        "expirationDate": "string",
        "updatedDate": "string",
        "supplier": {
          "smVendorId": "string",
          "name": "string",
          "legalName": "string",
          "telephone": "string",
          "fax": "string",
          "contactFirstName": "string",
          "contactMiddleName": "string",
          "contactLastName": "string",
          "contactTelephone": "string",
          "contactEmail": "string"
        },
        "questionsAndAnswers": [
          {
            "question": "string",
            "answerType": "string",
            "answer": "string"
          }
        ]
      }
    ] 
     }

    On failure, the response includes an error message. See Supplier Risk Engagements API Error Messages for a list of possible errors.