Loading a picklist from a custom function?

Loading a picklist from a custom function?

Hello,

I was wondering if I could load a picklist in the Accounts module with values from a custom function? I have a picklist field statically populated with a list of our facilities. Is there a way that I could populate this data via the api or a webhook that will fill it with the information from our database?

Also is there a way to have list item pairs in the picklist? Such as an id value is behind the scenes of the display value?

Thanks,
David