I appreciate you work towards project management tool for Salesforce. I installed the Unmanaged package in my dev org. However I got error while initializing the same.
I found an Issue while getting the filed description(no name space for the given field) for "Project" object trough debug logs. I rectified the same temporally through following way, which anyway not so advisable.
Class : Milestone1_Security_Utility
Method : fieldsCreateable
public static void fieldsCreateable(DescribeSObjectResult dsr, Set fields)
{
Map<String, Schema.SObjectField> fieldMap = dsr.fields.getMap();
for (String field : fields) {
System.debug('$$$ field '+field );
// This is the place where I made a change
field = (!field.contains('LTEST1') && field.contains('c') )? 'LTEST1'+field : field ;
DescribeFieldResult fdr = fieldMap.get(field).getDescribe();
System.debug('$$$ fdr '+fdr );
System.debug(field + ': ' + fdr.isCreateable());
fieldCreateable(fdr);
}
}
I am attaching the above code for you reference. Place look into the same
Hi Milestones-PM Team,
I appreciate you work towards project management tool for Salesforce. I installed the Unmanaged package in my dev org. However I got error while initializing the same.
I found an Issue while getting the filed description(no name space for the given field) for "Project" object trough debug logs. I rectified the same temporally through following way, which anyway not so advisable.
Class : Milestone1_Security_Utility Method : fieldsCreateable public static void fieldsCreateable(DescribeSObjectResult dsr, Set fields)
{
Map<String, Schema.SObjectField> fieldMap = dsr.fields.getMap();
for (String field : fields) {
System.debug('$$$ field '+field );
// This is the place where I made a change
field = (!field.contains('LTEST1') && field.contains('c') )? 'LTEST1'+field : field ;
DescribeFieldResult fdr = fieldMap.get(field).getDescribe();
System.debug('$$$ fdr '+fdr );
System.debug(field + ': ' + fdr.isCreateable());
fieldCreateable(fdr);
}
}
I am attaching the above code for you reference. Place look into the same