This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){window.open('/ltng/switcher?destination=classic%27,%27_blank%27);})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class MapDataController { | |
@AuraEnabled(cacheable=true) | |
public static List<Opportunity> getAllLocations(){ | |
List<Opportunity> oppList; | |
try { | |
Map_data__c settings = Map_data__c.getInstance(); | |
String filters = settings.QueryFilters__c; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SUBSTITUTE( Account.BillingStreet ,SUBSTITUTE($Label.linebreak, "-", "")," ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// set email address where to recieve extracted ids in csv format | |
String emailAddress = 'junaid.iqbal@u-blox.com'; | |
// Collect accounts without related records | |
Set<Id> accountsWithoutRelatedRecords = new Set<Id>(); | |
for(Account acc : [SELECT Id FROM Account WHERE Id NOT IN (SELECT AccountId FROM Opportunity) AND Id NOT IN (SELECT AccountId FROM Contact)]) { | |
accountsWithoutRelatedRecords.add(acc.Id); | |
} | |
system.debug('==Total=Acc=from=opportunity=AND=contact=======>'+accountsWithoutRelatedRecords.size()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class SyncLineItemandOppProduct { | |
public static Boolean triggeredFromLineItem = true; | |
public static Boolean isOppProductUpdateCall = true; | |
public static Boolean syncRecursion = true; | |
private List<Schema.FieldSetMember> lineItemFieldSetMemberList; | |
private List<Schema.FieldSetMember> opProductFieldSetMemberList; | |
public static List<Schema.FieldSetMember> readFieldSet(String fieldSetName, String ObjectName) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:component description="CaseFeedComments" access="global" controller="CaseFeedCommentsCtrl" implements="flexipage:availableForAllPageTypes,forceCommunity:availableForAllPageTypes,force:hasRecordId,force:LightningQuickAction"> | |
<aura:attribute name="filetype" type="List" default="['.png', '.jpg', '.jpeg', '.pdf']" /> | |
<aura:attribute name="fileContentVersionId" type="String"/> | |
<aura:attribute name="fileContentDocumentId" type="String"/> | |
<lightning:fileUpload label="Supported files (.png, .jpg, .jpeg, .pdf)" | |
name="fileUploader" | |
multiple="true" | |
accept="{!v.filetype}" | |
recordId="{!v.recordId}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
sendEmail : function(component, event, helper) { | |
component.set("v.loaded", false); | |
var recordId = component.get("v.recordId"); | |
var recordIdStr = recordId.toString(); | |
let action = component.get("c.updateSubscriptionField"); | |
action.setParams({ "contactId" : recordId }); | |
// Callback | |
action.setCallback(this, function(response) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* BatchRecordUpdate will update any 1 field on any 1 object. | |
* | |
* String values must be set to Object, Field and Value to be added to Field. | |
* | |
* Query can be modified to limit records updated. | |
* Example below excludes records for which Degree Offering already equals the new value. | |
* | |
* All 4 strings' values must be set to operate when executed. | |
* | |
* Execute in Anonymous Apex. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Package xmlns="http://soap.sforce.com/2006/04/metadata"> | |
<types> | |
<members>*</members> | |
<name>ActionLinkGroupTemplate</name> | |
</types> | |
<types> | |
<members>*</members> | |
<name>AnalyticSnapshot</name> | |
</types> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class SFileHandler { | |
// Integration with Salesforce Opportunity Object | |
@future(callout=true) | |
public static void createFolder(Id opId) { | |
Opportunity opp = [select id, name, fileforcem1__Sharepoint_Folder_Id__c from opportunity where id=:opId Limit 1]; | |
//get auth info from the Settings MDT | |
fileforcem1__SharePoint_Settings__mdt orgSettings = [SELECT fileforcem1__Named_Credential__c,fileforcem1__Document_Library_Id__c,fileforcem1__Site_Id__c FROM fileforcem1__SharePoint_Settings__mdt WHERE Developername = 'Default' limit 1]; | |
//get the root folder id for the account object | |
fileforcem1__SharePoint_Object_Settings__mdt objectSettings = [SELECT fileforcem1__Root_Folder_Id__c,fileforcem1__Site_Id__c,fileforcem1__Document_Library_Id__c FROM fileforcem1__SharePoint_Object_Settings__mdt WHERE MasterLabel ='Opportunity' LIMIT 1 ]; | |
//Initialize the client object |
NewerOlder