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>EC_Event__c.EC_Is_Participant_Added__c</members> | |
<members>EC_Event__c.EC_Event_Completed__c</members> | |
<members>EC_Event__c.EC_Zoom_Meeting_URL__c</members> | |
<members>EC_Event__c.EC_Folder_Name__c</members> | |
<members>EC_Event__c.EC_Is_Presenter_Selected__c</members> | |
<members>EC_Event__c.EC_Type__c</members> | |
<members>EC_Event__c.EC_No_Of_Surveys__c</members> |
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
<template> | |
<lightning-card variant="Narrow" title="Current Location" icon-name="standard:account"> | |
<p class="slds-p-horizontal_small"> | |
<lightning-map map-markers={mapMarkers} zoom-level="10"></lightning-map> | |
</p> | |
</lightning-card> | |
</template> |
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
<apex:page controller="LexSessionController"> | |
Start{!$Api.Session_ID}End | |
</apex:page> |
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
<template> | |
<lightning-card title="My Available Contacts" variant="narrow" icon-name="standard:custom57":wq> | |
<div class="slds-m-around_medium"> | |
<template for:each={contacts} for:item='contact'> | |
<lightning-layout vertical-align="center" key={contact.Id} class="slds-m-vertical_medium"> | |
<lightning-layout-item> | |
<img src={contact.Picture__c} alt="Profile photo" /> | |
</lightning-layout-item> | |
<lightning-layout-item padding="around-small"> |
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
<design:component label="Custom Three Column Layout"> | |
<flexipage:template> | |
<flexipage:region name="left" defaultWidth="SMALL" /> | |
<flexipage:region name="center" defaultWidth="LARGE" /> | |
<flexipage:region name="right" defaultWidth="SMALL" /> | |
</flexipage:template> | |
</design:component> |
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
@RestResource(urlMapping='/Accounts/*') | |
global with sharing class AccountManager { | |
@HttpGet | |
global static Account getAccountById() { | |
RestRequest request = RestContext.request; | |
String accountId = request.requestURI.substring( | |
request.requestURI.lastIndexOf('/')+1); | |
Account result = [SELECT Name,AccountNumber,Type,BillingAddress | |
FROM Account |
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
function filterOptionSet(parentOptionSet, childOptionSet, maxOptionRange) { | |
//Gets the parent option set control from the CRM page context | |
var primaryOptionSet = Xrm.Page.getAttribute(parentOptionSet); | |
//Reads the currently selected option in the parent option set | |
var selectedOption = primaryOptionSet.getSelectedOption(); | |
//In other way, reads the control of the child option set | |
//where the dependent values to be populated | |
var dependentOptionSet = Xrm.Page.ui.controls.get(childOptionSet); | |
//calls the interal function for filter the child optionset values. | |
filterDependentOptionSet(selectedOption, dependentOptionSet, maxOptionRange); |
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 implements="flexipage:availableForAllPageTypes" access="global" > | |
<lightning:card title="Detect Your Device" class="slds-m-around_large"> | |
<aura:set attribute="actions"> | |
<lightning:button label="Browser Info" onclick="{!c.browse}" /> | |
</aura:set> | |
<div class="slds-p-horizontal_medium"> | |
<aura:if isTrue="{!$Browser.formFactor == 'DESKTOP'}"> | |
<p>You are using Desktop <lightning:icon iconName="utility:desktop" alternativeText="Desktop!" variant="error"/> Browser </p> | |
</aura:if> |
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 implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global" > | |
<aura:attribute name="contactFields" type="String[]" default="Course_Name__c,Course_Fee__c,Course_Start_Date__c,Completion_Date__c,Course_Description__c"/> | |
<lightning:recordForm | |
objectApiName="Course__c" | |
fields="{!v.contactFields}" | |
columns="2" | |
mode="edit" | |
onsubmit="{!c.handleSubmit}" /> | |
</aura:component> |
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
sobject obj = null; | |
switch on obj { | |
//checks whether the obj is an instance of Account. | |
//if yes, obj is casted to acc with relevant values | |
when Account acc { | |
System.debug('account ' + acc); | |
} | |
//checks whether the obj is an instance of Contact. | |
//if yes, obj is casted to con with relevant values |
NewerOlder