- Salesforce Platform Developer I Certification Guide
- Jan Vandevelde Gunther Roskams
- 487字
- 2021-08-20 10:02:24
Testing the workflow
To test our flow, we have a couple of ways to start it (as we learned in Chapter 1, Salesforce Fundamentals). We'll put a flow component on our home page so that we can quickly create new movie records straight from our home page:
- Navigate to our BIM DB app, and, on the home page, click the wheel icon and select Edit Page. In the App Builder, remove all the components from the page, so you have a clean canvas.
- Drag a flow component (from the standard components side menu) into the top section of the page. On the right-hand side, a sidebar will appear in which you can set flow attributes.
- As flow, select our FastCreateMovieWizard flow and choose the One Column layout (our flow screen elements are not ordered properly to use the two-column layout).
- Now that we are adjusting our home page, drag two List View components in the right section of the page. Set the Attributes for the first list view to Object = Movie, Filter = All, Records To Show = 5, and check the Enable Inline Edit checkbox. For the second list view, set Object = Person, Filter = All, Records To Show = 5, and check the Enable Inline Edit checkbox.
- Now, click the Activate button in the top-right corner (assign as org default) and then click Save and then Back. You should now see this as your home page:

- To test your flow, fill in all the fields with movie details (you can find movie details at www.imdb.com) and, as the director's full name, specify a name for which you know there isn't a record in our database yet.
- After you have clicked the Next button, a second screen will appear asking for the director's biography and birthdate. Then, hit Finish. Check out the new movie record you just created and it's director lookup (which should correctly be related to a new Person record you just created).
- On the Related tab of the movie, you should also see a new review. When you open that review in the related Approval History list, you should also see that our Process Builder submitted your review automatically for approval.
- As a second test, fill in new details of another movie, but from the same director. This time, you shouldn't receive a second step asking for director's details (as this director already exists in the database). Your flow should have immediately created the new movie, linked to the same director, and also have a review that is awaiting approval.
I know there were a lot of steps to follow, but what kind of amazing things will you be able to create to make processes easier for your users?
You did a great job and, as a Salesforce Platform Developer, it's super important to understand and leverage all the declarative tools and features provide by Salesforce.
推薦閱讀
- PERFORM-3D基本操作與實例
- 快·易·通:2天學會Office辦公應用(2016版)
- Excel公式與函數從入門到精通
- Salesforce Platform Developer I Certification Guide
- Word/Excel 2010辦公應用實戰從入門到精通
- 微軟辦公軟件國際認證(MOS)Office 2010大師級通關教程(第2版)
- PPT制作事半功倍
- Excel技術與應用大全
- 文秘辦公自動化培訓教程
- ChatGPT+Excel高效數據計算與處理(視頻教學版)
- Excel VBA應用案例速查手冊
- BIOS與注冊表完全自學手冊
- MATLAB 8.X實戰指南
- Excel VBA實戰應用一本通
- Excel在會計日常工作中的應用(第二版)