Hii All,
Is it possible to set Labels and Values automatically in the Optionset Field through code? Let me explain with example suppose I have two custom Entity types First is Department, and second is Customer, Now I create some Department records then I have created one department Optionset field in the Customer Entity Type, Now while adding the records in the Customer i am selecting the department values(that i added while creating this field) but my requirements is these values are the records that i previously added in the Department entity? when we create the record it is identify by the name (standard attribute of all entities) most of the time. I want this name should populate as Department Optionset value in the Customer Form? and every time when I add new record in the Department this optionset in Employee should get Updated. Same requirement could be fulfilled using Lookup but my requirement is Optionset?
*This post is locked for comments
It is possible to do this using an UpdateOptionSetRequest or InsertOptionValueRequest. However, there are a couple of things to be aware of:
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
52
Victor Onyebuchi
6