I'm working in Python and trying to use the SOAP Api to update ApexTrigger statuses. I keep getting the following error:
[{'errors': [{'fields': [], 'message': 'insufficient access rights on cross-reference id', 'statusCode': 'INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY'}], 'id': '', 'success': False}]
I am using the beatbox library and my code looks something like this;
svc.login('XXXX', 'XXXX')
print svc.serverUrl
query = ("SELECT Id,Status,ApiVersion FROM ApexTrigger")
res = svc.query(query)
print 'Updating Trigger...'
test_trigger = res[0]
test_trigger['Status'] = 'Inactive'
res = svc.update(test_trigger)
print res
I am not sure if my code is wrong or if salesforce allows you to update this field?
Thanks in advanced.