Skip to content
Synchronous Custom Metadata operations
Apex JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CustomMetadataClientSync/main/default
submodules
.gitmodules
LICENCE
README.md

README.md

CustomMetadataClientSync

Synchronously manipulate Custom Metadata records from Lightning components.

Usage

component
    .find('CustomMetadataService')
    .upsert([{
        sobjectType: 'Custom__mdt',
        DeveloperName: 'Foo_is_Name',
        MasterLabel: 'Baz is label' }])
    .then(function(res){
        // do something
    })
    .catch(function(err){
        // do something
    })

Full example: https://github.com/metacursion/CustomMetadataClientSync/tree/master/CustomMetadataClientSync/main/default/aura/CustomMetadataExample

Depends on lax: https://github.com/ruslan-kurchenko/sfdc-lax

Credit to bigassforce: https://gist.github.com/bigassforce/295eefa237841d0296d2dd1e35ecdfa7/revisions

You can’t perform that action at this time.