Keeping an Enum Field Updated using API to get source from external system

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeffreysgrossman
    Member
    • Jan 2025
    • 71

    Keeping an Enum Field Updated using API to get source from external system

    Is it possible to keep enum fields updated from an external system using the API? I want to be able to keep Espo in synce with our ERP and having certain fields just get updated from the source ERP system when a new option is added to the source ERP. I am trying to figure out if you can actually update the values for enum fields from the API? If this is possible can anyone point me to some instructions on what end point we would be hitting?

    We have some long lists of drop down fields in the source ERP that I dont want to maintain by hand. Hoping someone can point us in the right direction..

    Thank You,
    Jeff
  • yuri
    Member
    • Mar 2014
    • 8884

    #2
    Hi,

    Updating the enum field option list requires admin access level and metadata rebuilding. I'd recommend to write a simple API entry point that will perform the needed metadata update based on the posted option list. Avoiding using an admin user.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...