Forum Post: RE: Get Related Field Values

  • Thread starter Thread starter Gian Torralba
  • Start date Start date
Status
Not open for further replies.
G

Gian Torralba

Guest
Hello, Unfortunately, there is no way to achieve this using a single step unless you are using the LOOP token inside the formula body in a trigger which is not recommended. You need to use rbv_api.getRelatedIds() to loop thru each record's ID and then do a rbv_api.selectQuery() to get the fields of that record. There are also two ways to achieve this. You can use the IN condition inside the rbv_api.selectQuery to avoid the loop on each ID or use a javascript loop if you aren't expecting the records to increase drastically. Thank you, Gian

Continue reading...
 
Status
Not open for further replies.
Back
Top