Skip to main content
How to create an Opportunity using Rest API with a particular Record type - when the user has access to multiple Record Types.

Below is the sample to create opportunity:

URI: services/data/v39.0/sobjects/Opportunity

Http Method: Post

Input: {"Name":"Opp1","CloseDate":"2018-08-01","StageName":"New","Probability":"10","Amount":"2000"}
18 respuestas
  1. 4 jul 2017, 13:15

    Okey - It was not straight. Input should be as below:

    {

      "Name": "Test1",

      "CloseDate": "2018-08-01",

      "StageName": "New",

      "Probability": "10",

      "Amount": "2000",

      "RecordType": {

        "Name": "TEST Record Type"

      }

    }

0/9000