Is there a way to get a list of all related ids using client-side API (similar to the way rbv_api.getRelatedIds (relName, id) works)? I'm using rbf_selectQuery but it only returns the first related record.
That's how it works. Please use getRelatedIds API.
You may achieve better results by querying IDs on the other side of relationship:
select id from (other side) where (define relationship etc)
Is there a getRelatedIds API that I can use on Portal Pages (ie. client-side)? The only one I found in the documentation was for server-side: rbv_api.getRelatedIds (relName, id)..
I can't query the other side of the relationship because it's a Many to Many cardinality. The same thing would happen - I would only be able to get the first ID.
You can use
rbf_getFields (objName, id, fields, callback, true);
It will return comma-separated list of ids for lookup field.
Ok that works. Thanks!