{"action":"created","issue":{"url":"https://api.github.com/repos/django-salesforce/django-salesforce/issues/105","labels_url":"https://api.github.com/repos/django-salesforce/django-salesforce/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/django-salesforce/django-salesforce/issues/105/comments","events_url":"https://api.github.com/repos/django-salesforce/django-salesforce/issues/105/events","html_url":"https://github.com/django-salesforce/django-salesforce/pull/105","id":87059882,"number":105,"title":"match converted_status to default schema","user":{"login":"hoprocker","id":141057,"avatar_url":"https://avatars.githubusercontent.com/u/141057?v=3","gravatar_id":"","url":"https://api.github.com/users/hoprocker","html_url":"https://github.com/hoprocker","followers_url":"https://api.github.com/users/hoprocker/followers","following_url":"https://api.github.com/users/hoprocker/following{/other_user}","gists_url":"https://api.github.com/users/hoprocker/gists{/gist_id}","starred_url":"https://api.github.com/users/hoprocker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoprocker/subscriptions","organizations_url":"https://api.github.com/users/hoprocker/orgs","repos_url":"https://api.github.com/users/hoprocker/repos","events_url":"https://api.github.com/users/hoprocker/events{/privacy}","received_events_url":"https://api.github.com/users/hoprocker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-10T18:21:42Z","updated_at":"2015-06-11T07:52:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/django-salesforce/django-salesforce/pulls/105","html_url":"https://github.com/django-salesforce/django-salesforce/pull/105","diff_url":"https://github.com/django-salesforce/django-salesforce/pull/105.diff","patch_url":"https://github.com/django-salesforce/django-salesforce/pull/105.patch"},"body":"I've been working against a default Salesforce install. It seems that the default picklist values for the Lead->LeadStatus field only include 'Contacted', 'Open', 'Qualified', 'Unqualified'. The error thrown was a bit cryptic:\r\n\r\n```Lead conversion failed: Statusinvalid convertedStatus: Qualified - convertedINVALID_STATUS, leadId=...```\r\n\r\nI eventually tracked it down as being a default value for the convert_lead() method. I wonder if this should be surfaced more visibly as a configuration parameter?\r\n\r\nBtw, thanks for this library!"},"comment":{"url":"https://api.github.com/repos/django-salesforce/django-salesforce/issues/comments/111034073","html_url":"https://github.com/django-salesforce/django-salesforce/pull/105#issuecomment-111034073","issue_url":"https://api.github.com/repos/django-salesforce/django-salesforce/issues/105","id":111034073,"user":{"login":"tvanesse","id":6845103,"avatar_url":"https://avatars.githubusercontent.com/u/6845103?v=3","gravatar_id":"","url":"https://api.github.com/users/tvanesse","html_url":"https://github.com/tvanesse","followers_url":"https://api.github.com/users/tvanesse/followers","following_url":"https://api.github.com/users/tvanesse/following{/other_user}","gists_url":"https://api.github.com/users/tvanesse/gists{/gist_id}","starred_url":"https://api.github.com/users/tvanesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvanesse/subscriptions","organizations_url":"https://api.github.com/users/tvanesse/orgs","repos_url":"https://api.github.com/users/tvanesse/repos","events_url":"https://api.github.com/users/tvanesse/events{/privacy}","received_events_url":"https://api.github.com/users/tvanesse/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T07:52:42Z","updated_at":"2015-06-11T07:52:42Z","body":"Still, I think it is a good idea to merge this PR already since the problem is likely to affect everyone who is using `convert_lead` today. But to avoid to have to manually adapt the code every time Salesforce decides to change the lead status, one could implement the mechanism described above."}}