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
Tjd440Tjd440 

Creating tasks with no (real) owner.

Is there a way using APEX or the API(s) to create an open task with no legitimate user (ie "nobody")?  We are sharing tasks between two instances over a S2S connection for process visibility between the orgs, however since we don't have the same users on each side, the receiver side needs someone to "own" the forwarded tasks, even though there isn't anyone really assigned to that task at that organization.  Shared tasks by default get assigned to the connection owner, or whomever we assign the parent object owner to.  Other then buying an "Remote User" license for each side to inherit these records, is there anyway to do create this nobody/null reference (in a trigger/etc)?  Alternatively, can we reference the "Connection User" somehow?

 

Thanks

Tanner