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
Sebastian RoederSebastian Roeder 

Update lookup field with releated Objects lookup field value

Hi,

I have a lookup field on my "Case" object and im trying to Update "lookupfield__c" with values from a releated Objects lookup fields value.

I tryed with the Processbuilder but i never was able to get the value or the Process didnt run.:(

Do you have any ideas?

When iam using Formula i only get the SF ID back in my field (and dont have a lookup) and its not linked to the record.

Thanks.
regards
Sebastian
 
Sebastian RoederSebastian Roeder
I also tryd this as a Trigger  but no success....
trigger updateproject on case (before insert, before update)
 { for (case a : Trigger.new)
  { a.Project__c = a.nlookup2__c;
  }
  }
JeffreyStevensJeffreyStevens
So - if you have a lookup field on Case - than that means you have a many-to-one relationship from the case up-to your other object.  Meaning - you have multiple Case Records that could be pointing to the same custom object record. - Correct?

If that's the situation - then how do you know which custom object record id is suppose to go into the Case lookup field?  The first one found?  The last one?  Some other criteria?