Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while initializing the Project #137

Open
naveenila1221 opened this issue Mar 20, 2017 · 0 comments
Open

Error while initializing the Project #137

naveenila1221 opened this issue Mar 20, 2017 · 0 comments

Comments

@naveenila1221
Copy link

naveenila1221 commented Mar 20, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant