function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rplrpl 

Integration of salesforce data with external application

I am developing a mobile application that gets information from salesforce. There is a field called PRODUCT TYPE in salesforce and while ordering a product user can justpick a value from the valid values in the picklist field.

but when it comes to mobile application we had to change the design such that it shows a list of PRODUCT TYPE values on the screen. when user selects one of the type, he is taken to the next screen where he can enter further information.

CAN SOMEONE PLEASE ADVICE ME ON HOW TO GO ABOUT THIS?
Best Answer chosen by rpl
rplrpl
Schema.DescribeFieldResult fieldResult = OBJECT_NAME.PICKLIST_FIELDNAME.getDescribe();
List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues();

Solves the issue! :)