New answers tagged

0

I suggest you do this to troubleshoot. Save your flow as a new flow (not a new version), in the screen dialogue pick autolaunched flow. Create a resource called recordId and mark it as an input variable. Use this variable to get the record and make necessary adjustments to have your flow run without issues. Copy a recordId from within Salesforce, debug your ...


0

You are mixing CustomSettings and CustomMetadataType in your setup. It looks as if you wish to use CustomMetadataType and I recommend that. Your formula to retrieve the key__c from Weather_api_key (CustomMetadataType) should be: $CustomMetadata.Weather_api_key__mdt.First_Key.key__c Your formula to retrieve the key__c from weatherAPI__c (CustomSetting) ...


0

You do need to specify a SetupOwnerId. I'd recommend the more usual method of getting the (optional) default value and using upsert. // testMethod is deprecated @isTest static void test2(){ HttpRequest req = new HttpRequest(); // SetupOwnerId will be set for you here. Developer_Monitoring__c dm = Developer_Monitoring__c.getOrgDefaults(); dm....


Top 50 recent answers are included