1

Lead.ConvertedOpportunityId is a static reference to an sObjectField token that represents that field. You need to get the value from leadMap somehow. Your current logic will assign every case in the database to a lead when it is converted, which is probably not what you want to do. You're going to need additional logic to figure out which case should be ...


1

You can use the ui-api to retrieve both a record and general object information at once. That is found in the Get Record Data and Object Metadata resource, accessed by /ui-api/record-ui/{recordId}.


1

Sure, you're almost there, but instead of record Id, you should reference sObject describe: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_describe.htm https://yourInstance.salesforce.com/services/data/v43.0/sobjects/Account/describe/ -H "Authorization: Bearer token" You can field fields API names, labels and ...


1

trigger OpportunityTrigger on Opportunity(before update){ if(Trigger.isbefore ) { if(Trigger.isUpdate ) { List<Opportunity> opps = new List<Opportunity>(); for(Opportunity o : Trigger.new){ if(o.AccountId == NULL){ opps.add(o); } } ...


Only top voted, non community-wiki answers of a minimum length are eligible