function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Swiderski, ErikSwiderski, Erik 

DocuSign trigger to update "Created By" on a task

I have a trigger in place that automatically creates a new task when a DocuSign envelope is completed. My problem is that on the "Created by" field for this task, it always says the task is created by one user -the salesforce user account that I used to connect DocuSign to Salesforce. What can I add to the trigger that updates the created by field with the user that sent the DocuSign envelope?
Prafull G.Prafull G.
Hi Erik - Standard field "Created By" is and Audit field and it is read only. In case you want to to maintain this on Task then go for new custom field and populate this via trigger.