You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: