4 Replies Latest reply on Jul 9, 2019 8:03 AM by Neena Ahirrao Guha

    How to Set Contact in Service Request Using REST API

    Lior Lavi
      Share This:

      Hi everyone,

      I'm trying to open a Service Request using BMC Remedyforce's REST API but could find a way to set the Contact field value. If I use the field name client, for example, and give it a valid value it will work just fine. But when I'm trying to set a contact it returns an error as if the value was not populated at all.

       

      Here is my JSON:

       

      {

          "Fields": [

              {

                  "Name": "requestDefinitionId",

                  "Value": "a3H24000000UAJ8EAO"

              },

              {

                  "Name": "ContactId",                              <-- This part is not working

                  "Value": "0032400000QIgzcAAD"

              }

          ],

          "Answers": [

              {

                  "QuestionId": "a3D24000000VqDuEAK",

                  "Values": [

                      "This is a test for REST API created service request. If you can read this, it worked!"

                  ]

              }

          ]

      }

       

      Thank you all in advance,

      Lior.