You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -6,33 +6,178 @@ The team within Salesforce.org have configured Animal, Treatment, Condition, Ado
6
6
7
7
Animal Shelter Starter is built to scale with your organisation, providing you with a foundation to begin managing your animals from rescue to recovery and beyond. Utilising the Salesforce platform, you will be able to take full control of your operations with the power of the world’s leading CRM.
4. Assign the Animal Shelter Starter permission set to users:
56
+
```bash
57
+
sf org assign permset --name "Animal_Shelter_Starter" --target-org production
58
+
```
59
+
60
+
## Post-Installation Configuration
61
+
62
+
1.**Setup Custom Settings**: Configure any custom settings required for your organization
63
+
2.**Data Import**: Use Data Import Wizard or Data Loader to import existing animal data
64
+
3.**User Training**: Ensure users are trained on the new objects and processes
65
+
4.**Testing**: Thoroughly test all functionality in a sandbox before production deployment
66
+
9
67
# Development
10
68
11
-
Please note that you must have access to the managed package namespace before you can work on this package. Please reach out to the team if you internal to Salesforce and want to work on this package.
69
+
Please note that you must have access to the managed package namespace before you can work on this package. Please reach out to the team if you are internal to Salesforce and want to work on this package.
Before you start development of a new fix or feature, ensure you have created a new branch from the master branch and then open that with VSCode. This is best done on the GitHub page.
131
+
1.**Make Changes**: Develop your feature/fix in the scratch org
132
+
133
+
- Add new objects, fields, flows, etc.
134
+
- Update the **Animal Shelter Starter** permission set with any new permissions
135
+
- Test functionality thoroughly
136
+
137
+
2.**Retrieve Changes**:
138
+
139
+
```bash
140
+
sf project retrieve start --source-dir force-app
141
+
```
142
+
143
+
3.**Version Control**:
144
+
145
+
```bash
146
+
git add .
147
+
git commit -m "Description of your changes"
148
+
git push origin feature/your-feature-name
149
+
```
150
+
151
+
4.**Create Pull Request**:
152
+
- Go to GitHub and create a PR from your feature branch to `master`
153
+
- Include detailed description of changes
154
+
- Add screenshots/videos if UI changes are involved
155
+
156
+
### Important Development Notes
157
+
158
+
-**Namespace Awareness**: All custom objects, fields, and components will be automatically namespaced
159
+
-**Permission Sets**: Always update the Animal Shelter Starter permission set when adding new metadata
160
+
-**Testing**: Include appropriate test coverage for any Apex code
161
+
-**Documentation**: Update relevant documentation for new features
162
+
163
+
### Troubleshooting
164
+
165
+
-**Namespace Issues**: Ensure you're using a namespaced scratch org from the correct DevHub
166
+
-**Permission Errors**: Verify the Animal Shelter Starter permission set includes all necessary permissions
167
+
-**Deployment Failures**: Check for missing dependencies or incorrect API versions
168
+
169
+
### Useful Commands
170
+
171
+
```bash
172
+
# Check org info
173
+
sf org display --target-org dev-org
174
+
175
+
# View org limits
176
+
sf org display limits --target-org dev-org
177
+
178
+
# Delete scratch org
179
+
sf org delete scratch --target-org dev-org
31
180
32
-
1. Once you have opened this repo locally within VSCode, start by creating a scratch org. You can use the command pallette for this, on MacOS you can use Cmd + Shift + p within VSCode. Choose the option called "SFDX: Create a default scratch org...". Accept the default options to create the org.
33
-
2. Once created, right-click on the force-app folder and select "SFDX: Deploy Source to Org". This will deploy the current package source to the scratch org.
34
-
3. Make required changes in the scratch org. Remember to add any required permissions for objects, fields etc to the Animal Shelter Starter permission set.
35
-
4. Pull changes back to VSCode by using the command pallette and select "SFDX: Pull Source from Default Org and override conflicts".
36
-
5. Switch to GitHub Desktop and provide details for the changes and then push the changes back to GitHub.
37
-
6. Once you are happy with your changes, re-open the GitHub page and create a Pull Request for your feature branch back to the master branch.
38
-
7. Done
181
+
# Run tests
182
+
sf apex run test --test-level RunLocalTests --target-org dev-org
0 commit comments