Skip to content

salesforce/service-catalog-item-samples

Repository files navigation

Sample Service Catalog Items

A collection of easy-to-digest sample Service Catalog items that can be used as a baseline for items in your service catalog. Sample items in this package include ordering a new laptop, relocating your work desk, resetting your password, and more.

Table of Contents

  • Assign Necessary Permissions: Before you install a catalog with the unlocked package or deploy the contents of a catalog to your org, you must first assign the necessary permissions.

  • Install a Catalog with the Unlocked Package: RECOMMENDED. This option lets you customize a catalog in a sandbox before promoting it to your production org. Ideal for admins with zero development knowledge.

  • Deploy the Sample Catalog Items to an Org: This option lets you deploy the contents of a catalog, including these sample items, into your production org. You can then retrieve and customize these sample items via the Metadata and Tooling APIs. Ideal for developers and advanced admins.

Assign Necessary Permissions

Before you install a catalog with the unlocked package or deploy the contents of a catalog to your org, you must first assign the necessary permissions.

Permission details coming soon.

Install a Catalog with an Unlocked Package (RECOMMENDED)

These instructions deploy a catalog to a sandbox. You can then customize the catalog before promoting it to your production org.

  1. Log in to your org.

  2. Install the Sample Service Catalog Items package into your org.

  3. Select Install for All Users.

  4. From Setup, in the Quick Find box, enter Service Catalog and click Get Started.

  5. In the Builder, explore the sample items available in the package. You can use these sample items as a reference for the items you create in your catalog.

Deploy the Sample Catalog Items to an Org

These instructions deploy the contents of a catalog, including these sample items, into your production org. Once deployed, you can retrieve and customize the catalog and these sample items via the Metadata and Tooling APIs.

  1. From the GitHub Salesforce Deploy Tool, click Login to Salesforce.

  2. If asked, click Allow to let the Deploy to Salesforce tool perform the requested actions.

  3. Enter your org credentials.

  4. When you're redirected back to the Salesforce page, click Deploy.

(Draft) sfdx Environment

These instructions let you set up a local sfdx environment with a scratch org by cloning the repo and creating a catalog in a sfdx project.

  1. If you haven't done so yet, authorize your hub org and provide it with an alias. (We use myhuborg in this example.)

    sfdx auth:web:login -d -a myhuborg
    
  2. Clone the Sample Service Catalog Items repository.

    git clone https://github.com/CovidBackToWork/service-catalog-recipes
    cd service-catalog-recipes
    
  3. Create a scratch org and provide it with an alias. (We use service-catalog-recipes in this example.)

    sfdx force:org:create -s -f config/project-scratch-def.json -a service-catalog-recipes
    
  4. Assign the ServiceCatalogBuilder permission set to the scratch org user.

    sfdx force:user:permset:assign -n ServiceCatalogBuilder
    
  5. Assign the EmployeeExperience permission set license to the scratch org user.

    echo "insert new PermissionSetLicenseAssign(AssigneeId = UserInfo.getUserId(), PermissionSetLicenseId = [SELECT Id FROM PermissionSetLicense WHERE DeveloperName='EmployeeExperiencePsl']?.Id);" | sfdx force:apex:execute
    
  6. Deploy a permission set to access Employee objects.

    sfdx force:source:deploy -p force-app/unpackaged/permissionsets
    
  7. Assign the EmployeeObjectsAccess permission set to the scratch org user.

    sfdx force:user:permset:assign -n EmployeeObjectsAccess
    
  8. Push the app to your scratch org.

    sfdx force:source:push -f
    
  9. Assign the ServiceCatalogRecipesAccess permission set for the dev recipes use cases to the scratch org user.

    sfdx force:user:permset:assign -n ServiceCatalogRecipesAccess
    
  10. Open the scratch org.

    sfdx force:org:open
    

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published