I am trying to access financial goal object from my financial cloud using apex command as follows:
Map<String, Schema.SObjectType> allSObjects = Schema.getGlobalDescribe();
for (String sObjectName : allSObjects.keySet()) {
if (sObjectName.startsWithIgnoreCase('fi')) {
System.debug('[LOG] SObjects inside getSalesforceFields:'+ sObjectName);
}
}
The FinancialGoal object is fetched successfully when we run these commands in anonymous Apex. However, when we run these commands in VS Code and deploy them, the FinancialGoal isn't fetched. I have tried changing the sharing settings for this object, but nothing seems to work for me. Additionally, there are some other objects that are missing. If I am doing anything wrong, kindly correct me. Any help would be appreciated. Thank you.