- 2 Minutes to read
- Print
- DarkLight
- PDF
Creating, Editing, and Filtering External Source Model Formulas
- 2 Minutes to read
- Print
- DarkLight
- PDF
This option is available for Power and Contributor users. Reviewer users cannot modify ESM formulas.
For a complete list of formulas available, see External Source Model Field Types, Expressions, and Formulas.
Viewing Existing ESM Formulas
In Practice
Login to Spotlight Web.
Select the Model task.
Scroll to find the External Source Model you want to view.
Click the gray text that says External Source Model.
The list of existing fields appears. Scroll to find the fields with a formula associated with them.
Click a field to view its definition. The right pane refreshes to show the formula.
Editing Existing ESM Formulas
Before you can edit existing Source Model Fields with Formulas:
- You cannot modify existing fields if a Source Model Map exists because an existing Source Model Map contains mappings from the current list of fields.
- You cannot modify existing fields if the Source Model contains data. You must clear the model first.
In Practice
Login to Spotlight Web.
Select the Model task.
Scroll to find the External Source Model you want to view.
Click the gray text that says External Source Model.
The list of existing fields appears. Scroll to find the fields with a formula associated with them.
Click a field to view its definition. The right pane refreshes to show the formula.
You can edit the existing formula by clicking inside of it and making changes. You can also select all the text, press Del, and then use the Functions and Operators drop-downs to create a new formula.
When done, click Set Formula. You can make changes to other fields and formulas before doing a final save on the list of fields.
When done making all changes to fields, click the Save button.
Creating New ESM Formulas using Model Manager
If your Source Model contains fields of type Formula, you can create the formulas using Model Manager's interactive formula builder.
In Practice
- Login to Spotlight Web.
- Select the Model task.
- Scroll to find the External Source Model you want to view.
- Click the gray text that says External Source Model.
The list of existing fields appears.
The right pane displays the formula builder options and editor. You can type in a formula where it says "Enter formula here..." or you can select from the drop-down list of functions and operators.
Example
In this example, we will create a unique Customer # by combining other fields together:
Customer # Preface - State - Phone Number
From the Functions list, select Concatenate. The basic syntax for this function is inserted into the editor.
To ensure that the formula will be assigned to the correct field, enter the field name before "Enter Formula."
Select the text Field 1 and press Del. Type @ to see a list of field names to insert. Select Customer # Preface.
Select the text Field 2 and replace it with the second field name to use: State.
Select the ... after Field 2 and replace it with the third field name to use: Phone Number. Clean up excess brackets as needed.
Now the formula looks like this:
To add the dashes between each field in the formula, add a comma and " - " as follows:
Click Set Formula.
Click Saved Formulas to see the list of formulas created and saved so far.
When done making all changes to fields and formulas, click the Save button.