Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Salesforce by (13.1k points)
I was trying to update the case owner using simple salesforce, but whenever I try to change it, it gets into Assignment Error Queue. I want to update the case owner with that owner id only. Can anyone help me resolved this error?

1 Answer

0 votes
by (26.7k points)

You can resolve this error by using python beatbox.

Below code can help you to update the case owner:

import beatbox

sf_username = "username"

sf_password = "password"

sf_api_token = "token"

sf_client = beatbox.Client()

sf_client.serverUrl = 'https://test.salesforce.com/services/Soap/u/20.0'

password = str("%s%s" % (sf_password, sf_api_token))

sf_client.login(sf_username, password)

object_dict = {'OwnerID': 'ownerid','type':'Case','Id': 'caseid'}

results = sf_client.update(object_dict)

results

I hope this will work.

Want to become a Salesforce Expert? join Salesforce certification now!

Browse Categories

...