Open andrenarchy opened 3 years ago
in theory this should work. Pretty sure I've done something similar several times. Does the parent relationship get generated?
If not, can you check FLS? If you're an Admin profile with "see all data", you can query fields you don't have read access to, but they won't show up in the tooling API
On the
Opportunity
object I have a custom fieldRenewed_From_Opportunity
that is a lookup relationship to anOpportunity
(thus linking opportunities to each other). The child relationship onOpportunity
is calledRenewed_In_Opportunities
but it does not show up when generating the types withts-force-gen@3.0.2
(while the lookup field shows up asRenewed_From_Opportunity__r
andRenewed_From_Opportunity__c
).When I manually add the following to
Opportunity.ts
everything works as expected:Is
ts-force
treating this particular relationship differently because it's linking the same object types? In any case, it would be great if it would just support this setting as well!