[Old version] Add email sending function to single screen

Add mail sending function to sheets created in single sheet format.
In the example, when the "Save" button of the "Parental Leave Application" application is clicked,
If a value is entered in the "End date of holiday" item, an email will be sent.

Tip

App types that correspond to the explanations on this page are shown below.

  • Report Type (Single Form Type)

See also

See "Check App type" for more information on app types.

Attention

This document describes how to set up CELF 3.6.1 and earlier.

For CELF 4.0.0 and later versions, see Add email sending function.

Put 'TO' email address on the sheet.

  1. Login to CELF and click the "Manage"button to open the Management screen.
../../../../../../_images/img_01.en83.png

Tip

The "Manage" button appears when you are logged in as anadministrator.

  1. Double-click the app you want to customize.
../../../../../../_images/img_02.en83.png
  1. Double-click the main sheet.
../../../../../../_images/img_03.en68.png
  1. Click the img_sheet_setting_button button in the sheet setting category.
../../../../../../_images/img_04.en62.png
  1. Add one more column of sheet.
../../../../../../_images/img_05.en58.png

Tip

The number of columns displayed on the sheet is increased by one.

../../../../../../_images/img_06.en45.png
  1. Enter the email address to be sent to in the first line of the rightmost column of the sheet.
../../../../../../_images/img_07.en43.png

Hint

If you have more than one email address to send to, separate the addresses with a semicolon ( ; ).

../../../../../../_images/img_08.en36.png
  1. Click on the column heading in the rightmost column of the sheet.
../../../../../../_images/img_09.en31.png
  1. Click Hide from the menu.
../../../../../../_images/img_10.en27.png

Tip

The column will be hidden.

../../../../../../_images/img_11.en25.png
  1. Save the sheet. Click the img_sheet_save_button button in the sheet category.
../../../../../../_images/img_50.en.png
  1. Click "Save".
../../../../../../_images/img_51.en.png

Hint

You can also press the following shortcut keys to save the sheet.

  • Ctrl key + S key

Add email sending function to app

Add the ability to send an email to the "Save" action in the input form.
The "Save" action has the following process flow to customize the additions and modifications.
../../../../../../_images/img_53.en.png

Details of the customization are as follows

[1] When a specific item is updated, it will record the update in a cell.
[2] When a specific item is registered, the registration is recorded in the cell.
[3] If the registration or update result is recorded in the cell, the email is sent.
[4] Clears the cell in which the registration and update results are set.

Tip

The reason for "Clear cell" in [4] is that if the save action is performed a second time, the previous data will not be left behind.
If the previous data remains, it may cause problems.
Whenever you set a value to a cell temporarily, you should also add a process to clear the cell.
Now, the steps below will show you how to actually edit an action set.

Open the "Save" action on the target input form screen

  1. Login to CELF and click the "Manage"button to open the Management screen.
../../../../../../_images/img_01.en83.png

Tip

The "Manage" button appears when you are logged in as anadministrator.

  1. Double-click the app you want to customize.
../../../../../../_images/img_02.en83.png
  1. Double-click the main sheet.
../../../../../../_images/img_03.en68.png
  1. Click the img_edit_action_button button.
../../../../../../_images/img_12.en20.png
  1. Double-click on the "Save" action set.
../../../../../../_images/img_13.en19.png

Customize the action when you register the data

  1. Add the "Determine condition" action from the "Control" tab by dragging and dropping it under the "Register data in table" action.
../../../../../../_images/img_15.en17.png

Hint

Look for an action that comments, "Register the contents of the header in the table and number the header ID. "

  1. Enter '=[Item Address] <> ""' as a branching condition for the "Determine condition" action you added.
../../../../../../_images/img_16.en17.png

Hint

In the example, set the cell address for the "End date of holiday" entry field in the [Item Address] field.

../../../../../../_images/img_17.en15.png

Hint

This formula determines whether or not a value is entered in the "End date of holidau" entry field.

  1. Select the "Set value into cell" action from the "Cells" tab and drag and drop it onto the "If ~ then" part of the "Determine condition" action you added.
../../../../../../_images/img_18.en15.png
  1. Set the cell address of the added "Set value to cell" action to the second row of the column with the email address in the 'Put 'TO' email address on the sheet.' column.
../../../../../../_images/img_19.en15.png

Hint

Here, it’s the "Z" column that we’ve added and the cell in "Z1" that contains the email address.

  1. Set the "Registration ID output cell address" of the previous "Register data in table" action in the cell input field of the added "Set value to cell" action.
../../../../../../_images/img_20.en14.png
  1. Select the "Set value into cell" action from the "Cells" tab and drag and drop it under the action you added in step 3 to add it.
../../../../../../_images/img_21.en12.png
  1. Set the cell address of the added "Set value into cell" action to the third row of the column with the email address in the Put 'TO' email address on the sheet. column.
../../../../../../_images/img_22.en11.png

Hint

Here, it’s the "Z" column that we’ve added and the cell in "Z1" that contains the email address.

  1. Set "Register" in the value entry field of the added "Set value into cell" action.
../../../../../../_images/img_23.en9.png

Customize the action when the data is updated

  1. Add the "Determine condition" action from the "Control" tab by dragging and dropping it under the "Update table data" action.
../../../../../../_images/img_24.en10.png

Hint

Look for the action commented as "Update the table with the contents of the header".

  1. Enter '=[Item Address] <> ""' as a branching condition for the "Determine condition" action you added.
../../../../../../_images/img_56.en.png

Hint

In the example, set the cell address for the "End date of holiday" entry field in the [Item Address] field.

../../../../../../_images/img_17.en15.png

Hint

This formula determines whether or not a value is entered in the "End date of holidau" entry field.

  1. Select the "Set value into cell" action from the "Cells" tab and drag and drop it onto the "If ~ then" part of the "Determine condition" action you added.
../../../../../../_images/img_25.en9.png
  1. Set the cell address of the added "Set value to cell" action to the second row of the column with the email address in the 'Put 'TO' email address on the sheet.' column.
../../../../../../_images/img_26.en6.png

Hint

Here, it’s the "Z" column that we’ve added and the cell in "Z1" that contains the email address.

  1. Set the values to be set in the added "Set value into cell" action to the same formula as the update condition of the previous "Update tabledata" action.
../../../../../../_images/img_27.en8.png
  1. Select the "Set value into cell" action from the "Cells" tab and drag and drop it under the action you added in step 3 to add it.
../../../../../../_images/img_28.en8.png
  1. Set the cell address of the added "Set value into cell" action to the third row of the column with the email address in the Put 'TO' email address on the sheet. column.
../../../../../../_images/img_29.en8.png

Hint

Here, it’s the "Z" column that we’ve added and the cell in "Z1" that contains the email address.

  1. Set "Update" in the value entry field of the added "Set value into cell" action.
../../../../../../_images/img_30.en8.png

Add the "Send email" action.

  1. Select the "Determine condition" action from the "Control" tab and drag and drop it to the bottom of the action set to add it.
../../../../../../_images/img_31.en6.png
  1. Enter "=[Registration ID output cell address] <> """ as a branching condition for the "Determine conditino" action you added.
../../../../../../_images/img_32.en6.png

Hint

In our example, we would set [Registration ID output cell address] to the second row of the column containing the email address in the Put 'TO' email address on the sheet. column.

Hint

The formula in the figure determines if the current time is being output or not.

  1. From the "Data operation" tab, select the "Retrieve 1 case from the table" action and drag and drop it into the "If ~ then" part of the "Determine condition" action you added.
../../../../../../_images/img_33.en7.png
  1. Select the source table of the "Retrieve one item from the table" action. Click the img_edit_data_action_button button.
../../../../../../_images/img_34.en7.png
  1. Double-click the table you are using in the input form screen.
../../../../../../_images/img_35.en4.png

Hint

The name of the table you double-clicked will be displayed in the table from which you want to retrieve data for the "Retrieve one item from the table" action.

../../../../../../_images/img_36.en3.png

Hint

You can see the table you are using from the "Register data in table" action in the same action set.

../../../../../../_images/img_37.en2.png
  1. Set the data to be retrieved and the data output destination for the "Retrieve one item from the table" action. Click on the "Setting of columns and display destination" link button.
../../../../../../_images/img_54.en.png
  1. Click on the "(Select column)" part of the "Setting edit of columns and display destination" dialog, and then click on "[Table name used in the app].LAST_MODIFIED".
../../../../../../_images/img_55.en.png

Hint

In the example, [table name used in the app] is "bzc_childcare_leave_notification_header".

Hint

"[Table name used in the app].LAST_MODIFIED" is the data of the data’s update date.

  1. Set the data output destination for the "Setting edit of columns and display destination" dialog to the second rowof the column with the email adress in Put 'TO' email address on the sheet. .
../../../../../../_images/img_39.en2.png

Hint

Here, it’s the "Z" column that we’ve added and the cell in "Z1" that contains the email address.

  1. Set the search condition of "Retrieve one item from the table" action. Click the "Search condition" link button.
../../../../../../_images/img_40.en2.png
  1. For the "XX" part of "XX matches YY" from the search condition setting screen, select "[Table name used by the app].ID".
../../../../../../_images/img_41.en2.png

Hint

In the example, [table name used in the app] is "bzc_childcare_leave_notification_header".

  1. For the "XX" part of "XX matches YY" from the search condition setting screen, enter "= [The second row of the column containing the email adress in Put 'TO' email address on the sheet. ]".
../../../../../../_images/img_42.en2.png

Hint

Here, it’s the "Z" column that we’ve added and the cell in "Z1" that contains the email address.

  1. Click the "OK" button.
../../../../../../_images/img_43.en2.png

Hint

The search condition is set for the action.

../../../../../../_images/img_44.en1.png
  1. From the "Data operation" tab, select the "Send email" action and drag and drop it under the "Retrieve one item from the table" action you’ve added.
../../../../../../_images/img_45.en1.png
  1. Set a cell with an email address in 'Put 'TO' email address on the sheet.' to the destination of the "Send email" action you added.
../../../../../../_images/img_46.en1.png

Hint

In the example, the email address is listed in the cell in "Z1".

  1. Set the subject line of the "Send email" action you added to "[App Name] & [Work Category] & "Saved transaction completion notification"".
../../../../../../_images/img_47.en1.png

Hint

In our example, we will set "Parental Leave Application" in the [App Name].

Hint

In our example, we will set the third line of the column with the email address in Put 'TO' email address on the sheet. in the [Work Category].
The Work Category will be displayed as "Update" or "Register".
  1. Set the body of the added "Send email" action to '"Updater:" & USER.ID() & "Update Date:" & [Updated date time output destination cell]'.
../../../../../../_images/img_48.en1.png

Hint

"USER.ID()" obtains the ID of the user currently logged in to CELF.

Hint

In our example, we will set [Updated date time output destination cell] to the second line of the column with the email address in Put 'TO' email address on the sheet. .

Tip

The body of this email will contain the following information

  • ID of user who updated
  • Last Updated

Initializing Data Update Information

  1. Select the "Clear cell" action from the "Cells" tab and drag and drop it onto the "Output error information" action to add it.
../../../../../../_images/img_14.en17.png

Hint

Look for the action commented "If the header update fails, abort the updateprocess".

  1. Set the second row of the column containing the email address in the cell entry field of the "Clear cell" action you added with Put 'TO' email address on the sheet. .
../../../../../../_images/img_52.en.png

Hint

Here, it’s the "Z" column that we’ve added and the cell in "Z1" that contains the email address.

  1. Click the "OK" button.
../../../../../../_images/img_49.en.png

Attention

If you don’t clear the cell, the second time you save it, the previous data will remain intact.
Be sure to clear any cells that are temporarily used in an action, as leaving data intact can cause problems.