Skip to main content
I have an Event Object that assigns tasks to a user through the "AssignedTo" Lookup field. The Event object also contains a read-only field called ContractedHours_Events.

 

 

 

In my Contact Object, I create an Employee record that is linked to a User through the "User" Lookup field. Also in this Contact Object, I have a field called ContractedHours_Contact.

 

 

 

I want to copy the value on the ContractedHours_Contact to ContractedHours_Events whenever the "AssignedTo" and "User" Lookup fields are the same.

 

Thanks!
2 answers
  1. Jan 8, 2018, 10:04 AM
    Hi Rishi,

     

    ​It seems that the sample code you gave does not apply to my current scenario.

     

    1. When copying the field from the contact object to the event object, how will it indicate that I am copying the correct field value based on the user id (contact User = Event User)?

     

    2. There is only a lookup from client to user but there is no lookup link from user to client.

     

    3. Ex: Contact1 has a User = A and Hours = 10. Event is assigned to User = A and needs to copy the Hours from the Contact object where the Users are the same.

     

    Thanks!

     

     
0/9000