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
IvarIvar 

Trigger on one object that changes a picklist field on another.

Hi.

 

I was wondering if anyone had any experience on using Apex and the Metadata API.

 

The task I am faced with is creating a trigger on the User object that modifies the available values in a picklist on another object, and I was wondering if I could access such "metadata" from an apex trigger.

 

Regards,

Ivar

bob_buzzardbob_buzzard

I think you are out of luck here. This is something that crops up regularly in our implementations - we'd like to have a way for regular users to add options to a picklist rather than needing admin privileges.  Unfortunately this isn't something that we've been able to find a solution for as yet.

IvarIvar

Well, thanks for your help Bob