Forum Post: How to if {!id} has relationship with R108123321?

  • Thread starter Thread starter matman
  • Start date Start date
Status
Not open for further replies.
M

matman

Guest
Hey guys, yesterday I set a trigger on one of my Employee objects. I set it to 'before update' when relationship with the Employer (One to Many relationship) object changes. Since I have access to the API documentation it's a smooth ride. Unfortunately I did bump into a little problem I haven't found a fix to yet. I'm trying to run some code to check if the Employee is the default contact person for the Employer. If this is true, the Employee cannot be detached from the relationship. I have used rbv_api.isFieldEmpty() and rbv_api.getFieldValue() to somehow check if the Employee ID ( {!id} ) is in the relationship field. This didn't work out for me though. Does anyone know how I could check this? Thanks a bunch!

Continue reading...
 
Status
Not open for further replies.
Back
Top