Mason Jones
unread,Nov 8, 2011, 1:02:53 AM11/8/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ActiveSalesforce
Hi, I've been playing with the gem and it's doing very nicely. I did
notice one convenience that would be very helpful, and I wanted to
make sure I'm not overlooking something since I haven't exercised the
gem too much yet.
In SFDC we have a custom object, call it "Entry__c", which is related
to another custom object, call it "Related__c". So looking at Entry__c
in the admin, I see:
Field Label: Related ID
API Name: Related_ID__c
Date Type: Master-Detail(Related)
Now, I realize that the naming is not good, but that predates me so...
The relation works fine in SFDC, so each instance of Entry__c is tied
to a Related instance. Looking at an instance of Entry__c via the
databasedotcom gem, I see something like:
@Related_ID__c="a0640000004QgG1ETY"
And of course I can do a find for that Id and it's happy. But
obviously I'd like to be able to say "my_entry.Related" and access the
object, which given that it has the Master-Detail relationship should
be feasible, yes?
If the answer is related to getting the field named correctly, bummer
but I understand.
Thx all...