Skip to main content
added 74 characters in body
Source Link
Keith C
  • 137.3k
  • 29
  • 218
  • 458

Note that this is an answer to an earlier version of the question.

You are making the field describe call on:

... Business_Unit__c.name ...

which is not a picklist field and so will return a zero length array of PicklistEntry which in turn will result in no select list options.

Use the API name of your picklist field:

DescribeFieldResult result = Business_Unit__c.ApiNameOfPicklistField__c.getDescribe();

You are making the field describe call on:

... Business_Unit__c.name ...

which is not a picklist field and so will return a zero length array of PicklistEntry which in turn will result in no select list options.

Use the API name of your picklist field:

DescribeFieldResult result = Business_Unit__c.ApiNameOfPicklistField__c.getDescribe();

Note that this is an answer to an earlier version of the question.

You are making the field describe call on:

... Business_Unit__c.name ...

which is not a picklist field and so will return a zero length array of PicklistEntry which in turn will result in no select list options.

Use the API name of your picklist field:

DescribeFieldResult result = Business_Unit__c.ApiNameOfPicklistField__c.getDescribe();
Source Link
Keith C
  • 137.3k
  • 29
  • 218
  • 458

You are making the field describe call on:

... Business_Unit__c.name ...

which is not a picklist field and so will return a zero length array of PicklistEntry which in turn will result in no select list options.

Use the API name of your picklist field:

DescribeFieldResult result = Business_Unit__c.ApiNameOfPicklistField__c.getDescribe();