Create relationship between 2 fields on the same custom table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 09:43 AM
Hello I am having a hard time wrapping my brain around this one. We have a custom table with 2 fields we would like to compare.
Order Number and Original Order Number
We would like a related list that shows the following:
If Order Number and Original Order Number Match OR If Order Number and Order Number match
Any help is appreciated!
Nic

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 09:49 AM
You can do Order Number 'Same As' Original Order Number in the query.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 12:46 PM
I got this to kind of work.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 01:45 PM
You can try something like this for the OR statement
gr.addQuery('priority', 1).addOrCondition('priority', 2);
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 11:53 AM