• Stars
    star
    161
  • Rank 233,470 (Top 5 %)
  • Language Apex
  • License
    Other
  • Created over 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Tool to help users bulk create and update custom metadata records in salesforce.com from a CSV file.

Using CLI Commands

Salesforce CLI commands for custom metadata types are available in v49. The custom metadata loader is no longer supported or maintained. As such, Salesforce does not guarantee the functionality or performance of the loader.

The CLI commands simplify development and help you build automation and synchronize your source from scratch orgs when working with custom metadata types. CLI commands offer more functionality than the custom metadata loader. You can create custom metadata types, generate fields, create records, bulk insert records from a CSV file, and generate custom metadata types from an sObject. In addition, there's no limit on the number of records that can be loaded.

See the following for more information:

Custom Metadata Loader

Deploy to Salesforce

v 3.0 Custom Metadata tool now supports migration of Custom Settings or Custom Objects to Custom Metadata Types along with migration of records. If you already have Custom Metadata Type, then it can just migrate the Custom Settings/Custom Objects records.

v 2.0 The Custom Metadata loader tool now supports updates of existing custom metadata records. Load the csv file with updates to existing records, and use the tool the import and update the records.

How to use custom metadata loader to update existing records

  1. Please follow the instructions below to first load/create the records for the custom metadata type.
  2. Now create a csv file with record values you want to update
  3. Now select the CSV file and the corresponding custom metadata type.
  4. Click 'Create/Update custom metadata' to bulk update the records from the CSV file into your org.

v 1.0 Custom metadata loader is a tool for creating custom metadata records from a csv file. Create custom metadata types in your Salesforce org using Metadata API and then use custom metadata loader to bulk load the records. Behind the scenes, custom metadata loader uses Metadata API to bulk load up to 200 records with a single call.

Custom metadata loader has a sample custom metadata type CountryMapping__mdt that allows users to map country codes to country names.

How to deploy custom metadata loader

  1. Download the folder custom_md_loader and zip all the files inside this folder. Package.xml should be at the top level of the zipped file.
  2. Log in to your developer organization via workbench and deploy this zip file. (migration -> deploy)

How to use custom metadata loader

  1. Once you have deployed custom metadata loader in your org, assign the permission set 'Custom Metadata Loader' to the users who need to use the tool(See Step 2, 3 on how to assign the perm set) These users also need the 'Customize Application' to create Custom Metadata records. Admin should have this permission by default.
  2. To apply the permission set - CustomMetadataLoader to the user who is using the tool. Go to Administer->Manage Users ->Permission Sets. Click on Custom Metadata Loader. 3 You will be taken to Permission Set page - Click on Manage Assignments. Then click Add Assignments. Choose the user/users. Then click Assign. Then Done. Now the perm set should be successfully assigned.
  3. Create a CSV file with a header that contains the field API names, including the org namespace. Either Label or Developer Name is required. A sample csv for CountryMapping__mdt is in the same folder as this README file.
  4. Next you are ready to use the tool - Select Custom Metadata Loader from the app menu in your org, then go to the Custom Metadata Loader tab.The app will prompt you to create a remote site setting if it is missing.
  5. Select the CSV file and the corresponding custom metadata type.
  6. Click 'Create/Update custom metadata' to bulk load the records from the CSV file into your org.

How to use custom metadata migrator

Use one of the below option to migrate Custom Settings or Custom Objects to Custom Metadata Types. Go to the 'Custom Metadata Migrator' tab

Option 1: Migrate Custom Settings/Custom Objects to new Custom Metadata Type

Input the following:

--Api name of Custom Setting or Custom Object (e.g. VAT_Settings_CS__c)
--Api name of Custom Metadata Types (e.g. VAT_Settings__mdt)

Click on 'Migrate'

Option 2: Migrate Custom Settings/Custom Objects to existing Custom Metadata Type

Input the following:

--Api name of Custom Setting (e.g. VAT_Settings_CS__c)
--Select the name of existing Custom Metadata Types

Click on 'Migrate'

Option 3: Migrate Custom Settings/Custom Objects to existing Custom Metadata Type (using simple mapping)

Input the following:

--Api name of Custom Setting.fieldName (e.g. VAT_Settings_CS__c.Active__c)
--Api name of Custom Metadata Types.fieldName (e.g. VAT_Settings__mdt.Active__c)

Click on 'Migrate'

Option 4: Migrate Custom Settings/Custom Objects to existing Custom Metadata Type (using custom mapping)

Input the following:

--Api Name of Custom Setting (e.g. VAT_Settings_CS__c)
--Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt)
--Json Mapping (Sample below)
{
	"Active__c" : "IsActive__c",
	"Timeout__c" : "GlobalTimeout__c",
}
Please note, key should be the Custom Setting/Object field name and that the value is the CMT field name.

Click on 'Migrate'

Custom metadata migrator: more details

  1. Custom metadata migrator provides two different options to do the migration:

    • Sync Operation: Migration will happen synchronously. Maximum 200 records can be migrated.
    • Async Operation: Migration will happen asynchronously. Maximum 50000 records can be migrated. To check the status of async migration, go to Deploy -> Deployment Status
  2. Custom Metadata Types label and names

    • Custom Setting/Custom Object record name converted into Custom Metadata Types label and name.
    • Custom Setting name special character replaced with "_" in Custom Metadata Type names
    • If Custom Setting name starts with digit, then Custom Metadata Types name will be prepended with "X"
  3. Custom Settings of type hierarchy not supported.

  4. Custom Objects with field types not supported in Custom Metadata Types not supported.

  5. Currency field on Custom Settings can't be migrated, you can use custom mapping to either avoid mapping or to map to another field.

More Repositories

1

postman-salesforce-apis

Salesforce API Postman Collection
1,071
star
2

salesforcedx-vscode

Salesforce Extensions for VS Code
TypeScript
949
star
3

aura

This project is archived, please see the readme for additional resources.
JavaScript
676
star
4

scrollerjs

A JavaScript library that helps you build performant UI components for the web.
JavaScript
637
star
5

phoenix

Java
560
star
6

SalesforceMobileSDK-iOS

iOS SDK for Salesforce
Objective-C
520
star
7

cli

Salesforce CLI
477
star
8

dataloader

Salesforce Data Loader
Java
440
star
9

SFDX-Data-Move-Utility

SFDMU is a cutting-edge Salesforce data migration tool for seamless org population from other orgs or CSV files. It handles all CRUD operations on multiple related objects in one go.
TypeScript
405
star
10

SalesforceMobileSDK-Android

Android SDK for Salesforce
Java
313
star
11

wsc

Java
266
star
12

mobile-ui-elements

Custom elements to build beautiful mobile applications on salesforce.
JavaScript
247
star
13

idecore

The core plug-ins for the Force.com IDE
Java
238
star
14

sfdx-scanner

HTML
215
star
15

EMP-Connector

A simplified cometd connector for Enterprise Messaging Platform
Java
185
star
16

b2b-commerce-on-lightning-quickstart

Shell
157
star
17

sfdx-core

TypeScript
151
star
18

force-dot-com-esapi

Enterprise Security API for the Apex language on the Force.com platform.
Apex
129
star
19

Analytics-Cloud-Dataset-Utils

Friendly utility to load your on-prem data, whether large or small, to Einstein Analytics Datasets, with useful features such as autoloading, dataflow control and dataset inspection.
JavaScript
129
star
20

SalesforceCanvasFrameworkSDK

Java
122
star
21

LightningTestingService

JavaScript
122
star
22

sfdx-simple

Apex
116
star
23

quiz-host-app

Multiplayer quiz app built on Salesforce technology (host app)
Apex
108
star
24

SalesforcePy

An absurdly simple package for making Salesforce Rest API calls.
Python
106
star
25

dependencies-cli

SFDX plugin for metadata dependencies tooling API
CSS
101
star
26

sfdx-travisci

Apex
98
star
27

Data-Migration-Tool

Java
98
star
28

ConnectApiHelper

Helper class that makes it easier to post Chatter @-mentions, rich text, and inline images with Apex code.
Apex
93
star
29

RecordViewer

Record Viewer - UI API + Node.js Sample App
JavaScript
86
star
30

salesforcedx-templates

Salesforce Templates Node Library
TypeScript
79
star
31

SFDX-Data-Move-Utility-Desktop-App

This repository contains the special Desktop GUI Application, that will help you to prepare and execute data migration packages using the SFDMU Plugin.
TypeScript
77
star
32

sfdx-plugin-generate

TypeScript
73
star
33

salesforcedx-docker

The official Dockerfile for Salesforce DX
JavaScript
72
star
34

ApexUnit

ApexUnit is a powerful continuous integration tool for the Force.com platform
Java
71
star
35

SalesforceMobileSDK-Shared

JavaScript
68
star
36

cinnamon

Cinnamon is a Force.com app that enables you to build and run Selenium tests to validate custom UI pages with Visualforce/Javascript in your Salesforce org.
Apex
67
star
37

commerce-on-lightning-components

Commerce on Lightning out-of-the-box component source code for reference and educational purposes
JavaScript
67
star
38

SalesforceMobileSDK-Samples

Samples for working with the Salesforce Mobile SDK
C
65
star
39

commerce-on-lightning

An SFDX Plugin to setup a B2C or B2B Store
TypeScript
64
star
40

WSDL2Apex

Apex
62
star
41

salesforce-alm

A read-only snapshot of the salesforce-alm plugin known as the "toolbelt".
TypeScript
61
star
42

devops-center-feedback

61
star
43

SlidingCarousel

A tool used to create the onboarding experience for Salesforce1's hybrid application on iOS.
Objective-C
59
star
44

LightningFlowComponents

⚑ A collection of sample Lightning Components that can be used to enhance Salesforce Lightning Flow.
JavaScript
58
star
45

source-deploy-retrieve

JavaScript toolkit for working with Salesforce metadata.
TypeScript
55
star
46

PerlKoans

Perl
51
star
47

go-soql

Golang tag library to generate SOQL queries
Go
51
star
48

java-sdk

NO LONGER MAINTAINED: Database.com SDK for Java
Java
47
star
49

SalesforceMobileSDK-Templates

Kotlin
46
star
50

SalesforceMobileSDK-ReactNative

Objective-C
46
star
51

user-access-visualization

Apex
46
star
52

AuraEnabledScanner

JavaScript
45
star
53

SalesforceMobileSDK-CordovaPlugin

Cordova plugin for the Salesforce Mobile SDK
Java
45
star
54

sfdx-analytics

Einstein Analytics sample application templates
JavaScript
44
star
55

sfdx-jenkins-org

Jenkins example with org development
Apex
44
star
56

cli-packages

TypeScript
43
star
57

lwc-dev-server-feedback

LWC Local Development
43
star
58

LWC-Mobile-Samples

Mobile sample applications and code for LWC development
JavaScript
42
star
59

isvte-sfdx-plugin

TypeScript
42
star
60

SalesforceCanvasJavascriptSDK

A JavaScript SDK used to integrate applications with the Force.com Canvas framework
JavaScript
42
star
61

OrgMonitor

JavaScript
41
star
62

Salesforce1-Dev-Guide-Setup-Package

40
star
63

sfdx-bitbucket-package

Bitbucket Pipelines examples with Package development
Apex
39
star
64

project-force

Reference implementation app for Feature Management.
Apex
37
star
65

schemas

Salesforce DX Schemas
JavaScript
36
star
66

Einstein-GPT-for-Developers

Einstein GPT For Developers
36
star
67

salesforcedx-actions

(Unofficial) GitHub Actions for SalesforceDX using the Salesforce CLI
Shell
34
star
68

aura-note

JavaScript
34
star
69

lightning-language-server

LWC and Aura Language Servers - shipped as part of the Salesforce VSCode Extensions
JavaScript
33
star
70

distributions

Low-level primitives for collapsed Gibbs sampling in python and C++
C++
33
star
71

apex-tmLanguage

Salesforce Apex Language syntax grammar used for colorization
TypeScript
32
star
72

Salesforce-CDP-jdbc

JDBC driver to connect to Salesforce CDP.
Java
32
star
73

sfdx-dev-packages

TypeScript
30
star
74

sfdx-gitlab-org

GitLab Pipelines example with org development
Apex
30
star
75

code-builder-feedback

This repository is used to collect feedback for the Code Builder beta.
29
star
76

eslint-plugin-aura

Salesforce Lightning (Aura) specific linting rules for ESLint
JavaScript
27
star
77

git2gus

A Github application to keep issues in sync with Agile Accelerator
JavaScript
27
star
78

salesforcedx-vscode-slds

TypeScript
26
star
79

sfdx-bitbucket-org

Bitbucket Pipelines examples with org development
Apex
26
star
80

lwc-builder

VSCode Extension to kickstart Lightning Web Component development.
TypeScript
26
star
81

sfdx-circleci

Apex
24
star
82

ServiceSDK-iOS

Salesforce Embedded Service SDK for iOS
23
star
83

dx-empty

Template repository representing the empty file system structure for a new Salesforce DX project.
JavaScript
23
star
84

SalesforceMobileSDK-Package

JavaScript
22
star
85

soql-tooling

SOQL Language Tooling features including the Language Server and Query Builder UI.
TypeScript
22
star
86

RecordViewerNative

Record Viewer Native - UI API + React Native Sample App
JavaScript
21
star
87

salesforce-deskcom-api

A lightweight, flexible library for desk.com APIv2, it supports basic auth and OAuth as authentication methods and is written to be auto discoverable.
Ruby
21
star
88

sfdx-gitlab-package

Apex
20
star
89

lwc-builder-ui

JavaScript
20
star
90

almond

Native Force.com Learning Management Application
Apex
20
star
91

SiteCrawler

This is a Java library which can be used to crawl the content of some of web properties (www.salesforce.com, blogs.salesforce.com for example). It supports dynamic scaling (depending on available machine power (CPU, RAM) and network capacity) out of the box. It also has a Plugin structure, which allows others to write code (plugins) that act on the crawled pages.
Java
20
star
92

devops-center-roadmap

19
star
93

lwc-dev-mobile

TypeScript
19
star
94

sfdx-jenkins-package

Apex
19
star
95

source-tracking

JavaScript library for tracking local and remote Salesforce metadata changes.
TypeScript
19
star
96

df17-ant-to-sfdx

Metadata repository demonstrating move from Ant Migration Tools to the Salesforce CLI
Apex
19
star
97

salesforce-datacom-api-java-client

Easy-to-use and efficient Java client library for accessing Data.com APIs using JSON[XML] and OAuth 2.0
Java
19
star
98

commerce-extensibility

Apex
18
star
99

codey-midnight

Dark theme for VS Code configured for accessibility and Salesforce development
18
star
100

salesforcedx-apex

Salesforce Apex Node Library
TypeScript
18
star