Announcement

Collapse
No announcement yet.

findRelatedOne not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • findRelatedOne not working

    Can anyone help me figure out what I am doing wrong?

    I have a workflow with this action on a custom entity (has a many-to-many relationship with contacts):
    $zips = entity\attribute('assignmentsAddressPostalCode')
    $assid = entity\attribute('id')
    $contactid = record\findRelatedOne('Contact', entity\attribute('id'), 'assignments', 'createdAt', 'desc', 'id=', $assid, 'zipcodes=', $zips)

    record\relate('Assignment', $assid, 'contacts', $contactid)

  • #2
    You missed a semicolon after every line. The rest looks correct.

    Comment

    Working...
    X