Skip to content

Instantly share code, notes, and snippets.

View dilipkrish's full-sized avatar

Dilip Krishnan dilipkrish

View GitHub Profile
@dilipkrish
dilipkrish / sfdx-push-recordtypes
Created January 4, 2019 14:40 — 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
{
import static com.google.common.base.Strings.isNullOrEmpty;
import java.util.ArrayList;
import java.util.List;
import org.springframework.core.MethodParameter;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;