This guide provides information about how you can use the REST API Web Services to incorporate AppBase functions into custom applications and integrations with third-party software.

In the examples that follow, we are going to use Postman ( which is a free API Development tool.  You can use other tools like SOAPUI to build your own AppBase API before embedding them into any other third-party application or platform that would be calling the AppBase platform.

After this lesson you will be skilled in:

Getting a Security Token

This practice covers how to make your first call which involves getting a security token. For every web service call to an AppBase solution, you must first generate a security token and use it in any subsequent web service calls to ensure the operation is authorized.

This tutorial also assumes you have a third-party API development tool - such as Postman - installed and ready for use. Though the screenshots below use Postman v9.10, you can use any API development tool of choice.

  1. Open the Postman app and create a new Collection as Training tryDCM.
  2. Create a new Request in the recently created Collection and name it get DCM Security Token.

  3. Click on Save to Training tryDCM.

  4. Configure your new request for a POST method and insert the following URL

  5. In the Body tab, select raw format. Copy and paste the following JSON variables {"Username":"","Password":""}.

  6. Update the fields with your valid credentials.

  7. Click on the Send button to request a token string. Your screen might look like the following:

    The response you receive should be a long GUID that represents the security token that we need to be included in any subsequent call to the REST API.

  8. Copy the token to Notepad or any text editor for further use.

  9. Save your updated Request.

Getting Case Types XML Structure

Each Case Type typically has its own custom form with fields specific to that Case Type. When the user clicks "Save" in DM, the page collects all of the case and custom form data into an XML string.

To get the XML structure of our case, we can use the Developer Tools feature in the Chrome or Firefox web browsers.  The following steps assume you are using Chrome.

The following is the XML structure example of the Auto Loan Case Type:

		<Object ObjectCode="CASE">
		<Object ObjectCode="CDM_AUTO_LOAN">
  1. In Google Chrome press CTRL-SHIFT- I to open the Developer Tools Select the Network tab, Unselect All and select Fetch/XHR. Clean the screen.

  2. In DCM, create a new Auto Loan case as usual and fill the form with values that you can identify later.

  3. After creating the new case, go to the Network tab and filter the view for ‘CreateCase’ you will see the root_DCM_createCaseWithOptions call.

  4. Click on root_DCM_createCaseWithOptions to check the content of the Payload section, scroll down to see the value of the InputXML field .
    This is the XML structure we need to use to insert new cases through REST API.

  5. Copy the InputXML value into Notepad or other editor and save it for later reference.

Creating an Auto Loan Case Using REST API

In situations when an external system needs to integrate with AppBase to create a Case, they can use the default REST rule to create cases called “MDM_CreateCaseWithOptions”.
The next task is to create a case using the default rule with the same data you use to create a sample Auto Loan in the previous task.

  1. Identify the server URL, or IP address, that contains the solution you wish to integrate with.

    In our training, we have a small solution on the server '' called DCM Training that we would like to interface with.

  2. We need to identify the Domain ID of the solution. Navigate to System Setup Home -> Solutions. Click on the blue hyperlinked name of your solution (DCM Production).

  3. Go to the Environment Details tab. The domain code name can be found in the Domain field as shown below (i.e. DCM_TRAINING.TENANT99):

  4. Save the domain ID for further use.
  5. In Postman create a new Request and name it ‘Create MDM Case’ and ‘Save to Training tryDCM’.

  6. Select POST and copy the following URL<<domain>>/root_DCM_createCaseWithOptions?t=

  7. Replace the <<domain>> in the URL with the domain ID obtained in the previous step.
  8. In the Body section selected the x-www-form-urlencoded option insert a new KEY called InputXML, copy the XML structure from the previous task on the InputXML params VALUE.
  9. In the Params section update the token value (t) with the one obtained in the previous task.

  10. Click theSend button. You will get a response like follow:

  11. Identify from the Body section the Case_ID (21) and CaseName (CASE-2022-21).

        "DATA": {
            "root_DCM_createCaseWithOptions": {
                "RETVAL": "-1",
                "ERRORMESSAGE": null,
                "CASENAME": "CASE-2022-21",
                "CASE_ID": "21",
                "ERRORCODE": null,
                "ValidationSummary": {
                    "VALIDATION": null,
                    "IsValid": true
  12. Go back to DCM to check the new case. In Case Management area, navigate to Search Cases and open the case with the ID recently created (81 in our example) using the REST API.

NodeJS Example Code to Call DCM APIs

  1. The DCM REST APIs can be called using NodeJS technology too. The following is an example code to create a new case:

    var https = require('follow-redirects').https;
    var fs = require('fs');
    var qs = require('querystring');
    var options = {
      'method': 'POST',
      'hostname': '',
      'path': '/BDS.WebService/DataServiceRest.svc/post/<<solution_domain>>/root_DCM_createCaseWithOptions?t=<<session_token>>',
      'headers': {
      'maxRedirects': 20
    var req = https.request(options, function (res) {
      var chunks = [];
      res.on("data", function (chunk) {
      res.on("end", function (chunk) {
        var body = Buffer.concat(chunks);
      res.on("error", function (error) {
    var postData = qs.stringify({

Next Steps

23. Customizing Localization