Example: Opportunity Forecast Application
App Objectives
- The end-user invokes all opportunities, for which they are an owner, from your environment into Excel.
- For each Opportunity includes Name, Amount, Close Date, Stage, and Owner Id.
- Allow the end-user to save modifications to only the Amount and Stage for each Opportunity.
App Components
You will use the following app components to build your new app.
Creating the Opportunity Forecast Application
Application creation is a multi-step process, starting with naming the app and ending with the creation of your end-user menus. The steps are:
To create the Opportunity Forecast App
- In the ribbon menu, click Apps and select New App.
- In the App Name Field, type Opportunity Forecast and in the Select Template section, click the New radio button.
- Click Create.
- Select edition. For example, Enterprise.
To select Objects
To create a Display Map
To create a Save Map
- Click Save Maps and select Create.
- In the Name field, enter Main.
- Click Add Display Map Fields and select Amount and Stage .
- Click Apply and then click Close for the Save Map.
- Click Save App.
To create a Search and Select Action
- Click the arrow under Actions on the menu and select Search and Select.
- Enter Select Account into the Action Name field.
- Choose Account from the Objects list.
- Click the check box next to Name in the Search window.
- Click the check box next to Name in Fields to Display in Search Results and the Sort check box to the right.
- Choose Single from the Results area.
- Click Save.
- Click Save App.
To create a Query Action
To create a Display Action
To create a Save Action
- Click the arrow under Actions and select Save.
- Enter Save Opportunities into the Action Name field.
- Select Main from the Save Map list.
- Click Save.
- Click Save App.
Now that you have created your actions, you need to create Action Flows to retrieve and display data and to save data.
To create a flow to retrieve and display Opportunities
- Click Action Flow and then click Create.
- In the Action Flow Name field, type Retrieve Opportunities and click Apply. The left-hand window is updated.
- Click Add Step.
- In the Step Name field, type Query Opportunities.
- From the Action list, select Query Opportunities .
- Check Persist Data as Output.
- Enter Opps, then click Apply.
- Click Add Step.
- In the Step Name, enter Display Opportunities.
- From the Action list, select Display Opportunities .
- Check Provide Input and choose Opps as default.
- Click Apply and then click Save.
- Click Save App.
To create an action flow to save Opportunities
The final step is to add the end-user menus. Creating menus is a multi-step process.
- You first add a Group and highlight the group to add buttons underneath it.
- For each group or button, you can change the names of each by overwriting the Default Group or Display Item in the right window.
- When you add a button, Order is the order in which the buttons will appear on the end-user menu.
- Action Flow is for associating a menu button to the Action Flow that will be executed by the end-user.
- For icons, X-Author uses the standard Microsoft Office icon list which can be found here: http://www.microsoft.com/en-us/download/details.aspx?id=21103 . Use the icons described in the procedure below or use any other icon from the list. You must enter the icon name, including capitalization, exactly as it is documented in the procedure below.
The steps are described in detail in the following sections.
To create User Menus
- Click User Menus.
- Click Add Group.
- In the Name field, type Opportunities and 1 in the Order field.
- Click Add, and in the Name field, type Retrieve Opportunities.
- In the Icon field, type "GetExternalDataFromOtherSources" and in the Order field enter 1.
- Select Retrieve Opportunities from the Action Flow list.
- Click on Opportunities to highlight the group and then click Add Button.
- In the Name field, type Save Opportunities.
- In the Icon field, type "SaveObjectAs" and in the Order field enter 2.
- From the Action Flow list, select Save Opportunities.
- Click Save.
- Click Save App.
To make the end-user menus look presentable
An App with the name Opportunities Forecast has been created. Now you can run it by clicking the Preview button in the ribbon menu.
The user menus you created now appear in the ribbon. Click the Retrieve Opportunities button and the list of opportunities is displayed. Make a few changes. Click Save Opportunities, and you will see a message that the records were saved. The changes are reflected in your environment.