function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Fenil Suthar 007Fenil Suthar 007 

How to create opportunity Using Connected App Callback URL

I have used bellow URL to get opportunity list using SOQL Query in .net Web application :

token.instance_url +"/services/data/v33.0/query?q=SELECT+Id,Name+FROM+Opportunity"

In SQL Query we can write Insert,Update,Delete,Select Statement. But, SOQL Only Support Select Statement.

Can i create opportunity using URL like Above.?

Or Any other way to create opportunity using .net web application.
Daniel BallingerDaniel Ballinger
Since you are going the query via the REST API. You can also create a record by making a POST request with a JSON body - See Create a Record (https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_create.htm). 

If you want to update a record you can use a PATCH request instead - See Update a Record (https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_update_fields.htm).