Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

  • The Assignment action serves the essential purpose of storing information in a workflow. It works by assigning a specific value to a variable, which can then be referenced or manipulated throughout the entire workflow.

  • Variables are placeholders for data, and the assignment process allows you to control and utilize this data in various operations.

Panel
panelIconId1f5e8
panelIcon:speech_left:
panelIconText🗨️
bgColor#F4F5F7

For example, if you need to store a value that will be used in calculations or conditions the Assignment action is the first step.

  • This action is fundamental in most automation processes, as it allows for dynamic data handling.

  • Let’s explore the screens that follow, after drag-n-drop of Assignment action on workflow canvas.

Config

...

After clicking on 'the +' button, the following screen for specifying assignment condition conditions opens up.

...

It is specifically operator value such as Set, Equals, Greater than, Equals than.

Note: It is Note: It is disabled until you fill above 3 condition fields

.

Condition

Description

Destination Type

It specifies defines the destination where the assignment is to be done.

info

target location where values will be stored or displayed.

Note: By default, the Destination Type is model.

You can explore more about Destination Type

Other options include variable, cookie key, and local storage key.

Info

Reference: Destination Type

Model

When you select Model as the Destination Type, the Model field allows you to specify the exact model (such as a Salesforce Object) where the value will be assigned. This ensures precise targeting for your data assignment, allowing you to control where and how the data is applied within your application.

Note:

  • It is specifically dependent on

Destination Type
  • the destination type one chooses.

  • If you choose another Destination Type, you will get that field label here.

Field

It defines the exact field or variable where values will be stored after assignment.

Note:

  • After choosing the second condition field, you will get this field visible in modal.

  • If you chose Model as second condition field, this will be field, and if you chose variable as second field, there will be variable.

Operator

Info

Note: The following fields, namely Operator, Source Type, and Value, are disabled until you fill in the above 3 condition fields.

Source Type

In this option, you can select various sources from which you want to display values.

info

Operator

It is specifically an operator value, such as Set and Merge.

Source Type

It defines the origin of the data to be used for assignment.

Note: By default, the Source Type is Static.

Info

Note: It is disabled until you fill above 3 condition fields.

You can explore Source Type

Other options include Model, Variable, Cookie Key, Local Storage Key, User, Null, and Blank.

Info

Reference: Source Type

Value

The available options will change depending on the selected source type. For example, if you choose "Static" as the source, you can provide a fixed static value.

Info

Operators

Operator

Supported Destination types

Description

Set

  • Single Record Models

  • Multi-record Models

  • Non-Array Variable

This operator allows you to set or assign all data from the source to the selected destination.

Append

  • Multi-record models

  • Array type Variables

This operator enables you to append data sequentially from the source to the selected destination.

Remove

  • Multi-record models

  • Array type Variables

This operator removes data sequentially from the selected destination based on the source.

Merge

  • Single Record Models

This operator merges data from the source into the selected destination.

...

Panel
panelIconId1f5e8
panelIcon:speech_left:
panelIconText🗨️
bgColor#F4F5F7

For example, If you are assigning a value to the "First Name" field for a contact, then the "First Name" field would be the Destination. This means that the value you provide for the first name will be stored or displayed in that specific field, ensuring that the contact's information is correctly recorded.

  • Multiple Options: You can select from various destinations based on your needs, ensuring flexibility in how and where data is assigned.

  • Value Assignment: Determines the target location for assigning values, which could include fields from models , or other data storage points within the application.

Destination Type

Description

Model

From this source, users can select a Model (Salesforce Object) field to be displayed as the label name.

Variable

Here, users can select the label name from variables such as Record ID, Is Disabled, Is Read only, or Is Visible.

cookie key

By using the Cookie Key, the result is fetched by the value that has been added under the Cookie Key. But , we have to make sure that the value that we are adding is from the Cookie Key value.

Local Storage Key

By using the Local Storage Key, the result is fetched by the value that has been added under the Local Storage Key. But , we have to make sure that the value that we are adding is from the Local storage value.

...

Source Type

Description

Static

Use this option to provide a fixed static value.

Field

Select the field from the chosen object in the model whose value you want to include.

Model

Choose the field from other models whose value you want to include.

Variable

Select from the variables created in the layout whose value you want to use.

Cookie Key

Choose the available cookie key whose value you want to include from your browser.

Local Storage Key

Select the available Local Storage Key whose value you want to include from your browser.

User

You can also select fields from the current logged-in user in your organization to include in the merge.

info

Note: The User source refers to the currently logged-in user in your organization. This means that if you include the First Name field from the user, each time a different user logs in, they will see their own First Name displayed.

Null

It enables us to assign null value to the Destination Type field we chose.

Blank

It enables us to assign blank value to the Destination Type field we chose.

...

Include Page
Manage Input Variable
Manage Input Variable
Panel
panelIconId1f5e8
panelIcon:speech_left:
panelIconText🗨️
bgColor#F4F5F7

For example, if a user wants to automatically update the "Status" field of a Case object to "Closed" when the "Resolution" field is populated with a resolution note, indicating the issue has been resolved and not manual intervention in between, basically automate the process through workflow. For this the user must assign the Closed value to Status field. For this we can use Assignment Action like this:

image-20240904-141018.pngImage Addedimage-20240904-141051.pngImage Added