I have a BO called Contact
Contact can be related to many Contacts
So...When i'm Viewing a Contact i have to option to "See All Related Contacts"
I tried using this, but it was REALLY REALLY SLOW:
FIND Contact WHERE (Contact IN ThisContact.REL_CONTACTS OR ThisContact in Contact.REL_CONTACTS) AND Contact<>ThisContact
Then i changed this and created a process to "addRelationship". This process add the "related1" to the REL_CONTACTS of "related2" and the related2 to the REL_CONTACTS of "related1" so the query would be like this
FIND Contact WHERE Contact IN ThisContact.REL_CONTACTS AND Contact<>ThisContact
Now it's almost perfect. It's fast and it shows all related contacts, but there is a problem:
In the Related Contacts Query i have a button next to the item that call a process called EDITCONTACT(i can't use the Edit Object behavior), but when i call this process, the process tries to open BOTH Contacts... The original and the related.
I thought i was doing something wrong so i created another process called AlertContactName and called from the same button next to the item.
And it shows 2 alerts calling the related1.contactName and the related2.contactName
What i did wrong? it is my query? i spent all day trying to figure this out and i can't.
Hope some one helps me.