The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Answers
- Get the attribute you need (the ID of your source table)
- If the attribute is a nominal quote it using the replace functions so myID1 becomes "myID1". If it is numeric you can skip this step.
- Next use the aggregate operator and concatenate your field, now you get something like "myid1"|"myid2"|"myid3" and so on
- Replace the pipe (|) with a comma so you get "myid1","myid2", "myid3"
- store your field as a macro and call it for instance ids
Finally call Mongo like {_id:{$in:[%{ids}]} but with using the fields you need