Color Flow Behavior
  • Updated on 06 Jan 2017
  • 4 minutes to read
  • Print
  • Dark
    Light

Color Flow Behavior

  • Print
  • Dark
    Light

This tutorial demonstrates how to use Color Flow in Decisions . Color Flow is a Flow Behavior that is used to dynamically color rows or cells in Reports .
Example:
In this example we are going to create a simple Report . Then, we are going to create a Color Flow to define which colors should be applied to which rows in the Report . Finally, we are going to apply this Color Flow to our Report rows and cells.
We begin in the Designer Folder with clickingCreate New Report on the Start View.
2017-12-21_114240-1024x543.png

Then, we Name the Report and click Ok to proceed to the Report Designer.
2017-12-21_114517-1024x705.png

In the Report Designer we click Add in Data Sources window and add Account Data Source from Common category.
2017-12-21_114830.png

Then, in Data Fields window we click Add and add desirable columns to the Report .
2017-12-21_115018.png

In this example we added Account Id andEmail Address columns.
2017-12-21_115106-1024x453.png

This completes our simple Report . We can save Report and closeReport Designer.
Back in the Designer Folder we click Create Flow on the Folder Actions Panel.
2017-12-21_115213.png

In the resulting window we Name the Flow the Flow Designer will open under Settings pick Color Flow from the Behavior drop-down list.
2017-12-21_115402.png

Our Color Flow should have an Input that will be mapped to Report field later. In the Flow Designer we select Start Step and click Add New Flow Input Data.
2017-12-21_115534.png

In the resulting window we Name Input Data , define Type String and click Ok to save and continue.
2017-12-21_115723.png

Then, we add Create Data step from Favorite Steps category on the outcome from Start Step in our Flow .
2017-12-21_115911.png

With Create Data step selected on the work-space we click Add New under Data Definitions settings.
2017-12-21_120113-1024x864.png

In the Add Definitions window we Name our Data , Pick ColorDetails Type , and click Ok to save and continue.
2017-12-21_120250-1024x827.png

2017-12-21_120337.png

On the outcome from Create Data step we add Equals String – Case Insensitive step from All Steps [Catalog] > Data > Text category.
2017-12-21_120630.png

Next, we are going to map data for Equals String step. In the Inputs settings for the step we locate value1 , pick Select Value Mapping Type , and using Path Picker select emailAddress value of the Flow Input that we defined earlier in this tutorial. For value2 Input we Select Value of the EmailAddress field from Flow Data > Current Account Path .
2017-12-21_121312.png

Then, we Add on ‘True’ Mapping Step from All Steps [Catalog] > Data category.
2017-12-21_121539.png

In the Mapping Step settings we locate Inputs > Color , define Constant Mapping Type and click on Value picker. In Edit window we pick colors for the Background, Foreground, Background Selected and Foreground Selected . Then, click Ok to save and continue.
2017-12-21_121836.png

Then, we add Mapping Step from All Steps [Catalog] > Data category on the False outcome from Equals String step in our Flow .
2017-12-21_125157.png

In the similar manner we define Constant Color in this Mapping Step.
2017-12-21_125525.png

Next, we connect outcomes from both Mapping Steps to the End Step in our Flow . Color Flow Type requires to output ColorDetails value. For Color Flow Input into the End Step we use Select Value Mapping Type and Pick our Color variable defined in Create Data step.
2017-12-21_132504-1024x748.png

This completes our Color Flow . We can save the Flow and close Flow Designer.
2017-12-21_132659.png

Back in the Designer Folder we locate our Accounts Report and Edit it.
2017-12-21_132849.png

In the Report Settings we locate Colors settings and check Use Row Coloring check-box. Row Color Rules setting shows up and we click Add New.
addNewRowColors.png

In the resulting window we pickColor Flow fromRule Source drop-down list.
2017-12-21_133224.png

Then, in Flow Information settings we Pick our Color Flow.
2017-12-21_133912.png

In the Rule/Flow Inputs settings we should see our emailAddress Color Flow Input . We select it and click Edit .
2017-12-21_134049.png

In the resulting window we pickemail_address Report Field and click Ok . Then, we click Ok to save and close Add Row Color Rules window.
2017-12-21_134139.png

In the Report Designer we clickRefresh Preview . Our Report Rows are colored based on our Color Flow.
2017-12-21_141346-1024x387.png

We can also use our Color Flow to color cells in our Report . To do so we pick a column in our Report Data Fields , locate Color Rules , and click Add New.
2017-12-21_141529-1024x643.png

Similarly, we pickColor Flow Rule Source and Pick our Color Flow.
2017-12-21_141721-1024x608.png

Then, we Edit our Rule/Flow Inputs…
2017-12-21_141835-1024x657.png

And our Report Cells are colored based on the Color Flow output.
2017-12-21_142354-1024x487.png

Was this article helpful?