Wrong owner of created record

Jan 25, 2012 at 10:25 AM

Hi,

I am working with the first example from 'Writing CRUD Operations' page. Even I set user credentials in a config file the created records are under ownership of the current user. How to achieve that the records will be owned by the user which I set in the config file?

Thanks,

Yury

Coordinator
Mar 5, 2012 at 7:21 PM

Hi Yury,

Sorry for the late response, I was not notified of the question and just came across it.  The user set in the config file is primarily used for authentication to CRM.  Can you tell me which user the owner is being set to and is it the same owner every time?  If you are trying to set the owner during creates, please create the record and then perform an AssignRequest as documented - http://mytechlifedays.wordpress.com/2011/12/27/how-to-set-ownerid-of-any-record-in-crm-2011/