How Can We Help?
< All Topics
Print

Creating an opportunity

call = sf_api_call('/services/data/v59.0/sobjects/Opportunity/', method="post", data={
    'CloseDate': '2018-03-01',
    'Name': 'My big deal',
    'StageName': 'Sales Accepted Lead',
    'Type': 'Initial Subscription',
    'AccountId': '0019E000009WTBVQA4',
})
opportunity_id = call.get('id')

Please suggest edits or add your comments.

Your email address will not be published. Required fields are marked *

Scroll to Top