Create an equipment request custom object with Item and Status fields and a list view that shows both. Define them in a Rippling project, add them to a sandbox with the Rippling CLI, and find them in the Rippling UI.
Requirements
- Get access to the Developer Program closed beta.
- Install the latest beta Rippling CLI and sign in.
- Install Node.js LTS and pnpm.
- Choose a development sandbox. Set up a sandbox if you don't have one, then find its CLI context with
rippling config context list. The commands below usesandbox-devas the context name. Replace it with yours.
Define the components
Create a project with a starter custom object:
rippling project init --name equipment-requests-demo --with custom-object:equipment-request
cd equipment-requests-demo
The CLI creates a custom object and list view in custom-objects/equipment-request.ts and lists both in the manifest:
import { defineManifest } from '@rippling/rippling-sdk';
import { EquipmentRequest, EquipmentRequestListView } from './custom-objects/equipment-request';
// rippling:imports
export default defineManifest({
components: [
EquipmentRequest,
EquipmentRequestListView,
// rippling:components
],
});
Edit custom-objects/equipment-request.ts to add the Item and Status fields and show them in the list view:
import { defineCustomObject, defineListView, fields } from '@rippling/rippling-sdk';
export const EquipmentRequest = defineCustomObject({
apiName: 'equipment_request__c',
name: 'Equipment Request',
pluralLabel: 'Equipment Requests',
description: 'A record of equipment requested by an employee.',
fields: {
item__c: fields.text({ label: 'Item', description: 'Equipment being requested.' }),
status__c: fields.text({ label: 'Status', description: 'Current status of the request.' }),
},
});
export const EquipmentRequestListView = defineListView(EquipmentRequest, {
apiName: 'equipment_request_all__c',
name: 'All equipment requests',
description: 'Equipment requests and their current status.',
fields: [EquipmentRequest.fields.item__c, EquipmentRequest.fields.status__c],
isPublic: true,
});
defineListView selects which of the object's fields appear as columns.
Keep the export names, EquipmentRequest and EquipmentRequestListView, so that rippling.manifest.ts continues to work.
API names for custom objects and custom fields end in __c.
Validate and deploy to the sandbox
From equipment-requests-demo, preview the changes:
rippling --context sandbox-dev project validate
In a new sandbox, the plan adds the object, its fields, and the list view. If the plan shows other changes or removals, check the CLI context and the API names.
Then deploy:
rippling --context sandbox-dev project deploy
Review the plan at the confirmation prompt, then confirm.
Verify the components in the sandbox
In the Rippling UI, sign in to your Developer account. Navigate to Developer > Developer Sandbox and click Log in next to your sandbox. Then find the Equipment Request object and the All equipment requests list view.
Next steps
- Package and publish your components so that other companies can install them.
- Pull components into your project when you build or change a component in the Rippling UI.