+ Start a Discussion

Inserts into approval object

Through the web interface, you can assign Contract Approval requests to other users. I am trying to do a similar thing throught the API, but am encountering a problem.
    The problem is that I am not allowed by the API to set the OwnerId field, when using a standard user, but this field controls who the request is assigned to. I can set this field if I log in as an administrator, but the "created by" information then doesn't reflect who actually initiated the request (I can't set the createdbyID even as an administrator.) We can find no way to change the behaviour of the OwnerId field on the Approval object. The describe information confirms these restrictions.
    On most objects, it is reasonable not to be able to set the ownerId, but on the Approval object it has a different purpose and the default (creator id) is not useful.
Any suggestions on a work round or a change to the API in this area?
We are adding the ability to set the owner field as a non-admin user in the winter release.

The only workaround today is to change/assign the owner as a admin user