New answers tagged

0

You need to delete the field with Developer Name A and create a field with Developer Name B. If you working with Salesforce Scratch Orgs, you just need either manually delete field Object__c.A__c from the source code base or make this change on scratch org and then pull this change to source code base. Finally you just do push to push the change to the ...


1

I suspect your issue is that you are trying to copy and paste file content into the Setup UI for Apex classes, one class at a time. This would be difficult to do as you must start at the bottom of the class dependency tree and work your way up. Instead, you need to have all the code (all the relevant Apex class files) on your local file system and use one ...


0

We can use UI API to get picklist values based on record type id. Use the below javascript code in Visualforce page. uiApi.getSObject("Contract").getPicklistValuesPerRecordType("PicklistfieldAPIName", "recordTypeId", function(err, res) { if (err) return; optionscontrats = JSON.parse(res).values; ...


0

@Sarvesh : I dug a little deeper into your solution and replaced let tempPickList = this.pfList with let tempPickList = JSON.parse(JSON.stringify(this.pfList)); I am able to update pfList now! Yeayy! Updated code-snippet: let tempPickList = JSON.parse(JSON.stringify(this.pfList)); tempPickList.map(e =>{ if(e.Id === uniqueKey){ e....


1

This type of error(Cannot assign to read-only property) generally occurs on update of public property @api decorator variable value. As I see from your code you are trying to update pfList property, Check if this public property(@api), If So change into @track or clone the pfList into a new variable. EDIT let tempPickList = this.pfList tempPickList.map(...


0

check this snippet try to modify according your requirement. contactObject = null; contactObject = (Contact)Contact.sObjectType.newSObject(RecordTypeId,true); //you will get the Default values, only if you have set the default values, for each picklist field under each recordType. System.debug('contactObject:'+contactObject.PicklistField__c);


1

You don’t need to deactivate the picklist MN rather change the value of MN to Mentor, just editing the picklist. Otherwise, from translation workbench change the translation of MN for English language to Mentor. It will work.


0

The parameter name doesn't match: action.setParams({"dcns": JSON.stringify(i) }); public static List<RIM_Item__c> saveDcn(String stat){ You need to change one or the other so they match. Side note: you'll want to fix the format of the parameter data, too. You're calling the server once per item, which will be inefficient, and you'll have ...


1

Stumbled up on this old thread. If somebody needs to set up a dynamic Dropdown menu with a collection today, then use this Flow component: https://unofficialsf.com/quick-choice-improved-picklists-and-radio-buttons-for-flow/


0

As your method passing list and updating and getting a single object that's the problem Try below code APEX method. //================================================================== @auraEnabled public static List<RIM_Item__c> saveDcn(List<RIM_Item__c> dcns){ UPDATE dcns; RETURN dcns; } //==============================================...


Top 50 recent answers are included