Skip to main content
Hi Members,

I have a picklist field containing Names of User as values in  custom object A , i want to update the value set of that picklist field according to active users name,  if any user is activated , deactivated or first name or last name is changed , so i need to know the solution using both metadata api and tooling api.

 

Ex- A - PicklistField__c , containing values , User1, User2, User 3 ,User 4   

=> Then User1 is deactivated  so PicklistField__c should be automatically updated with User1 deactivated from picklist value set and final value set would be User2, User3 , User 4

Thanks.
2 respuestas
  1. 3 ene 2023, 07:01
    When doing it with metadata api , we need to have access to  MetadataService cls , I am able to get one way which  is  through a git file containing metadataservice cls which is 'https://github.com/financialforcedev/apex-mdapi/blob/master/apex-mdapi/src/classes/MetadataService.cls'. I want to know whether it's the way provided by salesforce too or not.

    Is this standard one which salesforce has provided and if not then what is the standard approach saleforce provide to access Metadata Service?

    Note*- We are lookin for a standard approach for accessing metadata and specifically using metadataservice class.
0/9000