This file contains hidden or 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
trigger TriggerAcaoDeMarketing on AcaoMarketing__c (before insert, before update, after update) { | |
if(Trigger.isInsert && Trigger.isBefore){ | |
// Valida o status | |
AcaoMarketingController.validaCriacaoStatus(Trigger.new); | |
} | |
if((Trigger.isInsert || Trigger.isUpdate) && Trigger.isBefore){ |
This file contains hidden or 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 AcaoMarketingController { | |
/** | |
* RF-001 | |
* Não é permitido criar uma nova ação de marketing | |
* com o status diferente de 'Não iniciado'. | |
*/ | |
public static void validaCriacaoStatus(List<AcaoMarketing__c> acoes){ | |
for(AcaoMarketing__c acao : acoes){ |
This file contains hidden or 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
trigger TriggerAcaoDeMarketing on AcaoMarketing__c (before insert, before update) { | |
if(Trigger.isInsert && Trigger.isBefore){ | |
// Valida o status | |
AcaoMarketingController.validaCriacaoStatus((List<AcaoMarketing__c>) Trigger.new); | |
} | |
if((Trigger.isInsert || Trigger.isUpdate) && Trigger.isBefore){ |
This file contains hidden or 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 AcaoMarketingController { | |
/** | |
* RF-001 | |
* Não é permitido criar uma nova ação de marketing | |
* com o status diferente de 'Não iniciado'. | |
*/ | |
public static void validaCriacaoStatus(List<AcaoMarketing__c> acoes){ | |
for(AcaoMarketing__c acao : acoes){ |
This file contains hidden or 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 webToLead(firstName, lastName, email) { | |
var form = document.createElement("form"); | |
form.method = "POST"; | |
form.action = "https://test.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8"; | |
// Your org ID | |
var elementOID = document.createElement("input"); | |
elementOID.name="oid"; | |
elementOID.value=''; | |
elementOID.setAttribute("type", "hidden"); |
This file contains hidden or 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
### Setup Import File and Permission Set | |
# Step 1. Export the RecordTypes | |
-> sfdx force:data:tree:export -q "SELECT ID, Name, DeveloperName, SobjectType FROM RecordType" -o data | |
Wrote 1 records to data/RecordType.json | |
# Here is what the export might look like | |
-> more data/RecordType.json | |
{ |
This file contains hidden or 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
<lightning-button label="Open Visual Force" onclick={openVisualForce}></lightning-button> |
This file contains hidden or 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
Acesso o Cemig Atende | |
www.cemigatende.com.br | |
Fale com a Cemig 116 leernig Torpedo 29810 | |
Cemig Distribuição S.A. CNP...10€ 981.180/W0i-16 Inse. Estadia' 1:á2i22136 0087 Tarifa Sacis) de Energia Elétrica - TSEE foi criada pela | |
Av. Barbatana, 1.200 - 17° andar - Ala Al - CEP 20190-131 - Bolo Jia reonts - MG Lei n' 10.438, de 26 de abril de 20.02 | |
This file contains hidden or 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
/* fallback for non-Flexbox browsers */ | |
display: inline-block; | |
/* Flexbox browsers */ | |
display: -webkit-inline-box; | |
display: -moz-inline-box; | |
display: -ms-inline-flexbox; | |
display: -webkit-inline-flex; | |
display: inline-flex; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Layout Fixo</title> | |
<link href="style.css" rel="stylesheet" /> | |
</head> | |
<body> | |
<div class="container"> |