I have an email service handler that parses text and creates a new task for the user (based on the 'from' email). This is similar to the Email2Salesforce feature.
I'm having trouble setting the create user to the user my apex code is creating the task for.
If I specify the
createUserId field in code then I get error that create/update system fields are not editable. But if I don't specify then it defaults to me, who authored the apex code.
By not setting the createUserId and letting default to me then the chatter feeds of my reps' accounts and contacts are full of "Doug Ayers assigned XYZ..." or "Doug Ayers created..." But I'm not actually doing anything. I just happened to write the apex code.