@venkat.polisetti/crm-sfdx-plugin
Sfdx CLI plugin for automating mundane tasks such as setting FLS etc.,
Last updated 8 months ago by venkat.polisetti .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @venkat.polisetti/crm-sfdx-plugin 
SYNC missed versions from official npm registry.

crm-sfdx-plugin

Version Downloads/week License

$ sfdx plugins:install @venkat.polisetti/crm-sfdx-plugin

sfdx crm:permset:assign

Assign a permset to one or more users

USAGE
  $ sfdx crm:permset:assign

OPTIONS
  -c, --checkonly                                 Just display details, no updates are made, defaults to false.

  -f, --filter=filter                             Analogous to SOQL where clause to pull usernames from Standard User
                                                  Object. Any queryable field in User Obect can be used.
                                                  Examples:

                                                  "Profile.Name LIKE 'System Admin%' AND Department = 'IT'

  -n, --permsetlabel=permsetlabel                 (required) A single Permission Set. Use Label of the Perm set

  -o, --onbehalfof=onbehalfof                     Comma-separated list of usernames. if --filter is also specified, this
                                                  flag is combined in the where clause with an OR

  -u, --targetusername=targetusername             username or alias for the target org; overrides default target org

  -v, --verbose                                   Output to screen in csv format, defaults to false unless --checkonly
                                                  flag is set

  --apiversion=apiversion                         override the api version used for api requests made by this command

  --json                                          format output as json

  --loglevel=(trace|debug|info|warn|error|fatal)  logging level for this command invocation

EXAMPLE
  $ sfdx crm:permset:assign
             -u myalias
             --permsetlabel="Dreamhouse"
             --filter="Profile.Name = 'Lightning Sales'
  $ sfdx crm:permset:assign
             -u myalias
             --permsetlabel="Dreamhouse"
             --o='myuser@testorg.com'

See code: src/commands/crm/permset/assign.ts

sfdx crm:profile:fieldpermissions:set

Sets Field Level Security of fields for a list of profiles.

USAGE
  $ sfdx crm:profile:fieldpermissions:set

OPTIONS
  -c, --checkonly
      Just display details, no updates are made to profiles, defaults to false.

  -e, --editaccess=editaccess
      edit permission, defaults to 'true'. Valid values are 'true' or 'false'.

  -f, --filter=filter
      Analogous to SOQL where clause to pull fields from SObjects. Allowed fields: CreatedDate, CreatedBy, 
      LastModifiedDate, LastModifiedBy and DeveloperName. DeveloperName here referes to the SObject custom field.

      Examples:

      LastModifiedBy.LastName='Doe' AND lastModifiedDate = TODAY AND DeveloperName like 'MyCustom%'

  -o, --sobjects=sobjects
      (required) List of SObjects separated by commas.

  -p, --profiles=profiles
      (required) List of profiles separated by commas. You can also use wildcards as part of this parameter to match on 
      profile names (only ^,$,* are supported, ^ matches start of the profile name, $ matches end of the profile name and 
      * matches one or more characters anywhere in a profile name).

  -r, --readaccess=readaccess
      read permission, defaults to 'true'. Valid values are 'true' or 'false'.

  -u, --targetusername=targetusername
      username or alias for the target org; overrides default target org

  -v, --verbose
      Output to screen in csv format, defaults to false unless --checkonly flag is set

  --apiversion=apiversion
      override the api version used for api requests made by this command

  --json
      format output as json

  --loglevel=(trace|debug|info|warn|error|fatal)
      logging level for this command invocation

EXAMPLE
  $ sfdx crm:profile:fieldpermissions:set
             -u myalias
             --sobjects="Account,MyCustomObject__c"
             --profiles="Standard*"
             --filter="LastModifiedBy.LastName='Doe' AND LastModifiedDate=TODAY"
             --readaccess=true --editaccess=false

See code: src/commands/crm/profile/fieldpermissions/set.ts

sfdx crm:profile:objectpermissions:set

Sets SObject Level Security for a list of profiles.

USAGE
  $ sfdx crm:profile:objectpermissions:set

OPTIONS
  -a, --createaccess=createaccess                 Create SObject permission, defaults to 'true'. Valid values are 'true'
                                                  or 'false'.

  -c, --checkonly                                 Just display details, no updates are made to profiles, defaults to
                                                  false.

  -e, --editaccess=editaccess                     Edit SObject permission, defaults to 'true'. Valid values are 'true'
                                                  or 'false'.

  -m, --modifyallaccess=modifyallaccess           Modify All SObject permission, defaults to 'false'. Valid values are
                                                  'true' or 'false'.

  -o, --sobjects=sobjects                         (required) List of SObjects separated by commas.

  -p, --profiles=profiles                         (required) List of profiles separated by commas. You can also use
                                                  wildcards as part of this parameter to match on profile names (only
                                                  ^,$,* are supported, ^ matches start of the profile name, $ matches
                                                  end of the profile name and * matches one or more characters anywhere
                                                  in a profile name).

  -r, --readaccess=readaccess                     Read SObject permission, defaults to 'true'. Valid values are 'true'
                                                  or 'false'.

  -s, --viewallaccess=viewallaccess               View All SObject permission, defaults to 'true'. Valid values are
                                                  'true' or 'false'.

  -u, --targetusername=targetusername             username or alias for the target org; overrides default target org

  -v, --verbose                                   Output to screen in csv format, defaults to false unless --checkonly
                                                  flag is set

  -x, --deleteaccess=deleteaccess                 Delete SObject permission, defaults to 'false'. Valid values are
                                                  'true' or 'false'.

  --apiversion=apiversion                         override the api version used for api requests made by this command

  --json                                          format output as json

  --loglevel=(trace|debug|info|warn|error|fatal)  logging level for this command invocation

EXAMPLE
  $ sfdx crm:profile:objectpermissions:set
             -u myalias
             --sobjects="Account,MyCustomObject__c"
             --profiles="Standard*"
             --readaccess=true --createaccess=false --editaccess=true --deleteaccess=false --viewallaccess=true 
  --modifyallaccess=false

See code: src/commands/crm/profile/objectpermissions/set.ts

sfdx crm:profile:recordtypevisibilities:set

Sets Record Type Visibilities for a list of profiles.

USAGE
  $ sfdx crm:profile:recordtypevisibilities:set

OPTIONS
  -c, --checkonly                                 Just display details, no updates are made to profiles, defaults to
                                                  false.

  -p, --profiles=profiles                         (required) List of profiles separated by commas. You can also use
                                                  wildcards as part of this parameter to match on profile names (only
                                                  ^,$,* are supported, ^ matches start of the profile name, $ matches
                                                  end of the profile name and * matches one or more characters anywhere
                                                  in a profile name).

  -r, --recordtypes=recordtypes                   (required) JSON Array of Record Type visibility details. Example:
                                                  [{"name":"CustomObj__c.DevelperName_of_RecordType1", "default":true",
                                                  "visible":true}, {"name":"CustomObj__c.DeveloperName_of_RecordType2",
                                                  "visible":false},...]

  -u, --targetusername=targetusername             username or alias for the target org; overrides default target org

  -v, --verbose                                   Output to screen in csv format, defaults to false unless --checkonly
                                                  flag is set

  --apiversion=apiversion                         override the api version used for api requests made by this command

  --json                                          format output as json

  --loglevel=(trace|debug|info|warn|error|fatal)  logging level for this command invocation

EXAMPLE
  $ sfdx crm:profile:recordtypevisibilities:set
             -u myalias
             --profiles="Standard*"
             --recordtypes='[{"name":"CustomObj__c.CustomRecType1", "default":true, 
  "visible":true},{"name":"CustomObj__c.CustomRecType2", "visible":false}]'

See code: src/commands/crm/profile/recordtypevisibilities/set.ts

Current Tags

  • 2.0.9                                ...           latest (8 months ago)

10 Versions

  • 2.0.9                                ...           8 months ago
  • 2.0.8                                ...           9 months ago
  • 2.0.7                                ...           10 months ago
  • 2.0.6                                ...           10 months ago
  • 2.0.5                                ...           10 months ago
  • 2.0.4                                ...           10 months ago
  • 2.0.3                                ...           10 months ago
  • 2.0.2                                ...           10 months ago
  • 2.0.1                                ...           10 months ago
  • 2.0.0                                ...           10 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (8)
Dev Dependencies (16)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |