Enable work.com settings in Scratch Org Definition File with SalesforceDX

I am trying to enable work.com Thanks and Skills Settings in Scratch Org. Do you know is it possible to put the configuration/settings in scratch org’s definition file?

Answer

Starting Winter ’20 release, WorkDotComSettings are supported both in the Metadata API and in the Scratch Org source tracking. You can see it in the Metadata Coverage Report.

The documentation for WorkDotComSettings is here.

You can either deploy the metadata settings via the Metadata API, or add the same settings in the scratch definition file:

{
  "orgName": "My Org",
  "edition": "Developer",
  "settings": {
    "workDotComSettings": {
        "enableWorkThanksPref": true,
        "enableProfileSkills": true
     }
  }
}

You can then enable the other Work.com settings you need by adding them according the documentation name.

Attribution
Source : Link , Question Author : Sudipta Deb , Answer Author : Fabien Taillon

Leave a Comment