Retrieving CDM Data for Joule

You can use the SAP Build Work Zone CDM Content API for Procurement to get the data regarding access to deep links in Joule based on user role, in the CDM format.

Prerequisites

Context

You can use the GET /cdmForJoule endpoint to retrieve the data.

Procedure

To get the data in CDM format, use the GET /cdmForJoule endpoint as follows:
GET {{base_url}}/cdmForJoule

Where base_url is the desired runtime URL from the Environment Details table on the SAP Ariba Developer Portal discovery page for this API.

The endpoint returns the CDM data. The following code sample is a portion of the response that the API returns:

{
      "_version": "3.2.0",
      "identification": {
        "id": "Executive_Approver",
        "title": "Executive Approver",
        "entityType": "role"
      },
      "payload": {
        "apps": [
          {
            "id": "sap.ariba.gb.req.view"
          },
          {
            "id": "sap.ariba.gb.favorites"
          },
          {
            "id": "sap.ariba.gb.myrequests"
          },
          {
            "id": "sap.ariba.gb.myapprovals"
          },
          {
            "id": "sap.ariba.gb.catalogsearch"
          },
          {
            "id": "sap.ariba.gb.adhocCheckout"
          },
          {
            "id": "sap.ariba.gb.checkoutPage"
          }
        ]
      }
    },

    {
      "_version": "3.2",
      "identification": {
        "id": "sap.ariba.gb.req.view",
        "title": "Requisition view event",
        "entityType": "businessapp"
      },
      "payload": {
        "targetAppConfig": {
          "sap.app": {
            "crossNavigation": {
              "inbounds": {
                "sap.ariba.gb.req.view.display.inbound": {
                  "semanticObject": "GBViewReq",
                  "action": "display",
                  "signature": {
                    "parameters": {
                      "DOCUMENTID": {
                        "required": true
                      }
                    },
                    "additionalParameters": "ignored"
                  }
                }
              }
            }
          },
          "sap.integrations": [
            {
              "navMode": "inplace",
              "urlTemplateId": "sap.ariba.deeplink.urltemplate.pathstyle",
              "urlTemplateParams": {
                "path": "/gb/viewRequisition"
              }
            }
          ]
        }
      }
    }