 Let's understand one more screen flow scenario. So in this lesson, I'm going to create screen flow that will be creating a related opportunity on account record. And in this scenario, I will be placing the screen flow on account record page. So from here, I'm going to create new flow. So I'm selecting screen flow. So first of all, I'm going to create a new resource it will be a variable and API is record ID. So here in this record ID, I should be capital and others should be small. And it is pre-specified every time whenever you want to receive idea of a record where you will be placing your screen flow. So to receive the idea of that particular record, you need to use this record ID as API. Data type will be text and you need to enable this checkbox because for this flow, we will be receiving record ID from outside. So what we are going to do, we are going to create opportunity related to particular account. And I will be placing this flow on the account record page. So whatever account record you will be opening that account record ID will be automatically available in this record ID variable because here we just enabled this checkbox. Now I'm going to create a screen flow. So it will be having some screen elements and data elements so that we can create related opportunity to account. So I'm going to create my first screen and labeling it as OPP info one. So basically I will be creating two separate screens. So some of the values I will be retrieving in the first screen and some I will be retrieving in the second screen. So on this screen, I'm just placing a text component which will be receiving the opportunity name and I'm making it required. Then I'm just placing one more component that is date. So it will be receiving the close date and it is also required. So these two components, I'm placing on this screen opportunity info one and I'm clicking on done, right? Now if I go to opportunity record or opportunity tab, if I try to create new opportunity, so if I leave it blank and click on save, so you can see three fields are required, opportunity name, close date and stays. And stays is a pick list. So we need to retrieve these pick list values in the flow. So in the first screen, I already placed opportunity name and closed date. Now I'm going to create one more screen and here I'm going to use pick list and I'm going to provide screen label as opportunity info two. Now this pick list, I need to link with the stays field that is available on opportunity object so that we can retrieve all these pick list values which are available here. Right, so what we need to do, first of all, I'm providing the label as stays name. Then in this choice, I'm clicking on new choice resource and from here I'm going to select pick list choice set. So whenever you want to link your pick list component of screen with your pick list field that is available under any object. So you need to use pick list choice set. So API name is stays name, object I'm selecting as opportunity, data type pick list and field I need to select as stays name. If you want to define the sort order so you can choose ascending descending. If you want to have default order of field so you can leave it as is and click on done. So this way the stays field of opportunity object is linked with this screen pick list component. Now whenever like any developer will be updating the stays pick list field under the object. So this flow will be having those updated pick list fields. Sorry, those updated pick list values in this pick list component automatically. So now I'm clicking on done. So this way the second screen is also created. Now I'm going to create one more element that is create record element. So its label is create opportunity. How many records to create? So I need to create only one record. Then use separate resources and literals and from here I'm going to select opportunity. Now I need to provide name equals to. So on screen we have this opportunity underscore name as text component. So I'm aligning opportunity name with this name field. Clicking on add fields. So next I need to map close date. So we created close date on screen as well. So close date is mapped. Then we need to map the stays. So for stays we have two options, pick list choice set and screen component. So pick list choice set is basically having all the pick list values. But the selected pick list value will be available in this screen component. So you need to use this. And if you want to relate this newly created opportunity with account. So on opportunity we have this account look up account ID and you need to map it with record ID. Now I'm clicking on done. So this way this screen flow is created. Now I'm going to save it. So I'm naming it as create opportunity on account and clicking on save. So this flow is created. If you want to debug it, so you can, but in this lesson I'm going to show you like how we can place our flow on record page. So instead of debugging from here, I'm just activating it so that I can place it on the record page. So if you want to place your flow on record page or app page or home page anywhere. So you need to activate it first. Now I'm moving to accounts tab and I'm going to open account record. So you can open any account record. And if you place your flow on any particular account record page, so it will be applied for all the reports those are available under this application. So you just need to click on this gear icon then click on added page. So app builder lightning app builder is opened and here you can see account record page. So if you see here, we have one option. So you can search flow from here as well. And I'm just dragging and dropping it here. So this flow component is placed. Now here you will see the list of available screen flows. Those are activated. So we just created create opportunity on account. So I'm selecting this right now. If you remember, we created one record ID variable that needs input from outside the flow. So what do you need to do? You need to enable this checkbox so that on whatever record, whatever account record you are executing this flow so that account record ID will be automatically passed to this record ID variable. Now I'm just clicking on save. You need to activate this record page for particular application because you modified it. So I'm going to assign it app default for the sales application and clicking on next, next and save. Again, click on save and go back. So now what will happen for the sales application, whatever account record you will open you will see this flow. So right now we are on this test account record. So flow is available. If I open this flow account to here also you can see the flow, right? And I'm going to create the opportunity and right now you can see this record is not having any opportunity. So I'm going to create this. So opportunity 101, close date, let's say I'm selecting 21st April, clicking on next. Here you can see all the pick list values are available and clicking on next. So you can see a related opportunity is created. If I open this opportunity and go to details, so you can verify like opportunity is having name OPP 101, close date, stays and account name is flow account. So this way if you open any account record, so from there you will be able to create opportunity. So if you want to create opportunity for any other account, so here also you can see opportunity is zero. So I'm going to create one more opportunity. So here you can see it is automatically linked to the account. So this way you can create your screen flow and after activation you can place it on particular objects record page.