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
ksparkspar 

updating lookup field in custom object thru sforce API?

I created a custom object that will instantiated with various
metrics through the sforce API. My users will then be able to
craft their own report views on that data.

One of the fields is a related list (lookup) of Users (i.e.,
our Sales folks). Is there a way to update that field when
I'm creating the object through sforce? I'm storing the
salesforce user ID in database, but it doesn't appear I can
stick it anyway in the custom object (in a meaningful way
for report gen...)

I'm taking a look at WebLink to see if that's what I'm looking
for, but it seems to be hardcoded to existing (non-custom)
pages.

thanks, David
xmlguyxmlguy

David.  Did you try updating it as a custom field with the '__c' appended? I use custom objects with references to Lead and Account.  I need the __c to access them. 

I haven't done this with the User object.

Mark