+ 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).