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)
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)
Comment