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> | |
<div lwc:dom="manual" class="slds-hide"></div> | |
</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
String sObjectName = 'FlowInterview'; // change this | |
Map<String, SObjectField> fields = Schema.getGlobalDescribe().get(sObjectName).getDescribe().fields.getMap(); | |
for(String key : fields.keySet()) { | |
System.debug(fields.get(key)); | |
} |
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 class Request { | |
@InvocableVariable(label = 'Template Name' required=true) | |
public String templateName; | |
@InvocableVariable(label = 'To Number' required=true) | |
public String toNumber; | |
@InvocableVariable(label = 'whoId' required=true) | |
public Id whoId; |
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 class createPublicPDF { | |
private static String getMediaUrl(Id distributionId) { | |
ContentDistribution distribution = [SELECT DistributionPublicUrl FROM ContentDistribution WHERE Id = :distributionId LIMIT 1]; | |
return distribution.DistributionPublicUrl; | |
} | |
public static Id createFaxPDF(Id recordId, Integer formId) { | |
ContentVersion content = new ContentVersion(); |
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 abstract class ChainedQueueable implements Queueable, Database.AllowsCallouts { | |
private Set<String> records; | |
public ChainedQueueable(Set<String> records) { | |
this.records = records; | |
} | |
public abstract void processRecord(String record); |
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 NetworkUtils { | |
public static String WhatIsMyIPAddress() { | |
HttpRequest request = new HttpRequest(); | |
// Don't forget to add http://icanhazip.com as a remote site. | |
request.setEndpoint('http://icanhazip.com/'); | |
request.setMethod('GET'); |
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 class Thread { | |
public static void sleep(integer milliseconds) | |
{ | |
Long timeDiff = 0; | |
DateTime firstTime = System.now(); | |
do { | |
timeDiff = System.now().getTime() - firstTime.getTime(); | |
} | |
while(timeDiff <= milliseconds); |
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 abstract class AbstractChainedQueueable implements Queueable { | |
private Set<Id> recordIds; | |
public AbstractChainedQueueable(Set<Id> recordIds) { | |
this.recordIds = recordIds; | |
} | |
public abstract void processRecord(Id 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
public without sharing class ChainedQueueable implements Queueable { | |
private Set<Id> ids; | |
public ChainedQueueable(Set<Id> ids) { | |
this.ids = ids; | |
} | |
public void execute(QueueableContext context) { |
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
import { FlexPlugin } from 'flex-plugin'; | |
//import React from 'react'; | |
//import CustomTaskListComponent from './CustomTaskListComponent'; | |
const PLUGIN_NAME = 'RingerPlugin'; | |
export default class RingerPlugin extends FlexPlugin { | |
constructor() { | |
super(PLUGIN_NAME); | |
} |
NewerOlder