@daveguderian is that field deprecated in Salesforce? I don't have any field filters now, but it could be easily added. I'm curious what is different about that specific field that makes it ineligible to query.
Tyler - I believe its because of the child relationship. For example, in order to return values I have to query:
select id, (Select id from RenewedInsurancePolicies) from insurancepolicy
@daveguderian the screenshot you sent doesn't match up to the error? The errors says it's an issue with a field named "CoverageCode".
What's the api name for that field? I have a similar field setup and it works fine. Here is my field from the describe lookup call. Can you do the describe call for this object and send me what the metadata for that field looks like?
{
"aggregatable": true,
"aiPredictionField": false,
"autoNumber": false,
"byteLength": 18,
"calculated": false,
"calculatedFormula": null,
"cascadeDelete": false,
"caseSensitive": false,
"compoundFieldName": null,
"controllerName": null,
"createable": true,
"custom": true,
"defaultValue": null,
"defaultValueFormula": null,
"defaultedOnCreate": false,
"dependentPicklist": false,
"deprecatedAndHidden": false,
"digits": 0,
"displayLocationInDecimal": false,
"encrypted": false,
"externalId": false,
"extraTypeInfo": null,
"filterable": true,
"filteredLookupInfo": null,
"formulaTreatNullNumberAsZero": false,
"groupable": true,
"highScaleNumber": false,
"htmlFormatted": false,
"idLookup": false,
"inlineHelpText": null,
"label": "Contact",
"length": 18,
"mask": null,
"maskType": null,
"name": "ContactCustom__c",
"nameField": false,
"namePointing": false,
"nillable": true,
"permissionable": true,
"picklistValues": [],
"polymorphicForeignKey": false,
"precision": 0,
"queryByDistance": false,
"referenceTargetField": null,
"referenceTo": [
"Contact"
],
"relationshipName": "ContactCustom__r",
"relationshipOrder": null,
"restrictedDelete": false,
"restrictedPicklist": false,
"scale": 0,
"searchPrefilterable": true,
"soapType": "tns:ID",
"sortable": true,
"type": "reference",
"unique": false,
"updateable": true,
"writeRequiresMasterRead": false
}
Will this work? I used a little different method.... not as pretty I know. Let me know, and I can do the describe call if not.
All available metadata for "RenewedFromPolicyId"
|
|
---|---|
|
true |
|
false |
|
false |
|
18 |
|
false |
|
(Blank) |
|
false |
|
false |
|
(Blank) |
|
(Blank) |
|
true |
|
false |
|
(Blank) |
|
(Blank) |
|
false |
|
false |
|
false |
|
0 |
|
false |
|
false |
|
false |
|
(Blank) |
|
true |
|
(Blank) |
|
false |
|
true |
|
false |
|
false |
|
false |
|
(Blank) |
|
Insurance Policy ID |
|
18 |
|
(Blank) |
|
(Blank) |
|
RenewedFromPolicyId |
|
false |
|
false |
|
true |
|
true |
|
false |
|
0 |
|
false |
|
(Blank) |
|
InsurancePolicy |
|
RenewedFromPolicy |
|
(Blank) |
|
false |
|
false |
|
0 |
|
true |
|
tns:ID |
|
true |
|
reference |
|
false |
|
true |
|
false |
|
EntityParticle |
|
/services/data/v60.0/tooling/sobjects/EntityParticle/InsurancePolicy.RenewedFromPolicy |
|
RenewedFromPolicyId |
|
Insurance Policy ID |
|
reference |
|
InsurancePolicy |
|
18 |
|
0 |
|
0 |
|
false |
|
false |
|
false |
|
false |
|
false |
|
false |
|
true |
|
false |
|
false |
|
(Blank) |
|
FieldDefinition |
|
/services/data/v60.0/tooling/sobjects/FieldDefinition/InsurancePolicy.RenewedFromPolicy |
|
InsurancePolicy.RenewedFromPolicy |
|
EntityDefinition |
|
/services/data/v60.0/tooling/sobjects/EntityDefinition/InsurancePolicy |
|
InsurancePolicy |
@daveguderian can we cover in office hours next week? I'm not too sure here.