Skip to content

Instantly share code, notes, and snippets.

View lucasvalhos's full-sized avatar

Lucas Valhos lucasvalhos

  • Linhares, Brazil
  • 16:23 (UTC -03:00)
View GitHub Profile
@lucasvalhos
lucasvalhos / sfdx-push-recordtypes
Created May 26, 2020 23:43 — forked from amphro/sfdx-push-recordtypes
Push RecordTypes and Data using SFDX
### 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
{
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Layout Fixo</title>
<link href="style.css" rel="stylesheet" />
</head>
<body>
<div class="container">