0 votes
1 view
in Salesforce by (11.9k points)

I am building a system using PHP which interfaces with Salesforce by using the API to add bids/quotes onto Salesforce after they've been completed in the new system. For most fields this is fine however I'm trying to work out how to sync the picklists between the new systems. Whilst you can use the API to retrieve the values of the picklists from what I can see there's no way of obtaining the underlying ID for each picklist entry.

Ultimately I need to sync the picklist options between the two systems, this can be done by syncing the values but as soon as someone changes the value of the picklist field in Salesforce (or adds a new option) then this will no longer correspond with the picklist variables in the external system. Ideally, if we could access the IDs then we can use the same ID/value list within the external system and (ideally) select the required picklist value based on the ID and not the value (which means even if the value has been changed slightly it will still correspond to the same entry). Similarly, we can then easily check if any entries have been added/deleted so these can be added/deleted from the external system as well.

I can't find any reference as to how this can be done but I can't imagine we're the only ones wanting to do it? If this is not possible then how would one go about getting close to this using Salesforce, I presume it's possible in one way or another?

1 Answer

0 votes
by (30.1k points)
If you want to have control over picklist values, then the only solution is to create a new object for storing the picklist values and to transform the existing field to a lookup. You'd then need to have more control over CRUD operations on the picklist values also have the capability to 'disable' some of which have to become antiquated without having to transform existing records which have those values.
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...