Hello,
I have a many to many relationship between two objects (A & B) and I am trying to get the ID's of the related field B from the view page of record A using the token (lets say: {!R12345#id}). However when I do this, its only giving me the first value and not the others. When I try to get the value i.e. {!R12345#value}, it returns all the values (text). Is this a known issue? Is there any other way I can get all the ID's using the token?
PS: Don't want to use rbf_getRelatedIds2() :)
Cheers.
Iram
Unfortunately there is no token-based way to retrieve the related IDs list. We have added a requirement for a new token to give the list of ids (most probably {!R12345#ids} ) which will return comma-separated ids that can be passed to an array in javascript. Should be available in the next major release.
rbf_getRelatedIds2 is the workaround until then.
When is this major release expected? 4.2.0.0. => February 2016?
Cheers.
Iram
Q1 2016 :)
Next one will be called V4.1 and tentatively for end of February.
Hello Santosh,
This hasn't been fixed. I have an account that has multiple contacts and I am trying to get all the contact ID's using the token. It just returns the first contact. Could you confirm that it has been fixed please?
Iram
Hello,
Is there any update on a fix for this?
Iram
Hi [mention:c6ad25f95bb84e839bc6845bc8789e44:e9ed411860ed4f2ba0265705b8793d05] ,
Is there an update on this?
Cheers.
No update for now.
rbf_getRelatedIds2() is a pain to use on the client-side. I suggest using another method where you can create a formula field and use rbv_api.getRelatedIds2() as your return value.
e.g.
Field: relatedObjBs
Return type: String
code:
var x = rbv_api.getRelatedIds2(param,param,param);
return x.join(',');
This would minimize your AJAX calls on the client-side and you may access the data in a token-like manner.
Hope this helps and makes it a bit easier to use on the view page.