{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":38986,"path":"platform-administration/localization-framework/create-email-subflow.md","title":"Create a custom email subflow","bundle":null,"doc_type":null,"release":"australia","body":"\n# Create a custom email subflow\n\nCreate an email subflow according to your requirements. You can then select this subflow to define translation preferences for a language.\n\n## Before you begin\n\nRoles required: localization\\_admin and flow\\_designer\n\n## About this task\n\nThe Localization Framework provides a default email subflow that you can customize.\n\nCopy the existing email subflow configured for the Localization Framework and then customize it. Publish the customized subflow so that it is available for selection when setting up the translation preference for a language. For more information, see [Create a subflow](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/build-workflows/create-subflow.md).\n\n## Procedure\n\n1.  Navigate to **All** &gt; **Process Automation** &gt; **Flow Designer**.\n\n2.  In the Workflow Studio window, click **Subflows**.\n\n3.  Click **Send LF Email for Translation** subflow.\n\n    The Send LF Email for Translation subflow opens in the Workflow Studio in read-only format. The inputs in this subflow are described in the following table:\n\n    |Name|Description|Type|\n    |----|-----------|----|\n    |lftask\\_record|Associated Localization Framework task record.|Reference.Localization Task \\[sn\\_lf\\_insight\\]|\n    |attachment\\_record|Contains a file related to the LFTASK that can be sent via Email for translation.|Reference.Attachment|\n    |send\\_to|Contains email addresses of the recipients to send the LF task file.|String|\n    |source\\_language|Language from which the localization task was created.|String|\n    |target\\_language|Language into which the content of the localization task gets translated into.|String|\n\n4.  In the subflow header, click the more actions icon \\[Omitted image \"more-actions-icon.png\"\\] Alt text: More actions and select **Copy subflow.**\n\n5.  In the **New subflow name** field, enter the name of the new subflow.\n\n6.  To limit the application scope of the subflow, in the **Application** field, select the required application, otherwise select **Global**.\n\n7.  Click **Copy**.\n\n    The new subflow is created and opens in the subflow designer editor. The inputs from the copied subflow appear.\n\n    **Note:** Inputs are fixed and cannot be edited.\n\n8.  In the Actions section, click **Send Email**.\n\n    This expands the Send Email section. The fields in the Send Email section are described below:\n\n<table id=\"table_xf1_5yx_xnb\"><thead><tr><th>\n\nField name\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nAction\n\n</td><td>\n\nName of the action.Default: **Send Email**.\n\n</td></tr><tr><td>\n\nTarget Record\n\n</td><td>\n\nAssociated Localization Framework task record\n\n</td></tr><tr><td>\n\nTable\n\n</td><td>\n\nName of the table where the localization task resides.\n\n</td></tr><tr><td>\n\nInclude Watermark\n\n</td><td>\n\nAdds a watermark in the file associated with the localization task.\n\n</td></tr><tr><td>\n\nTo\n\n</td><td>\n\nContains email addresses of the recipients who should be addressed directly.\n\n</td></tr><tr><td>\n\nCC\n\n</td><td>\n\nContains email addresses of the recipients who should see the list of recipients directly addressed in the email.\n\n</td></tr><tr><td>\n\nBCC\n\n</td><td>\n\nContains email addresses of the recipients who are copied on the email but not displayed in the email.\n\n</td></tr><tr><td>\n\nSubject\n\n</td><td>\n\nThe text about the email that its recipients can see.\n\n</td></tr><tr><td>\n\nBody\n\n</td><td>\n\nThe text message about the localization task being sent for translation.\n\n</td></tr></tbody>\n</table>9.  Click **Done**, when you have modified the fields as per your requirement.\n\n10. Click **Copy Attachment**.\n\n    The Copy Attachment action expands. The fields in the Copy Attachment section are described below:\n\n<table id=\"table_gss_rdy_xnb\"><thead><tr><th>\n\nField name\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nAction\n\n</td><td>\n\nName of the action.Copy Attachment is displayed by default.\n\n</td></tr><tr><td>\n\nSource Attachment Record \\[Attachment\\]\n\n</td><td>\n\nTranslatable content file of the localization task.\n\n</td></tr><tr><td>\n\nTarget Record\n\n</td><td>\n\nRepresents the target record in the email.\n\n</td></tr><tr><td>\n\nTable\n\n</td><td>\n\nRepresents the email table.\n\n</td></tr></tbody>\n</table>11. Click **Save**, to save the subflow in draft status.\n\n12. Click **Publish**.\n\n\n## Result\n\nUse the published subflow to define the translation preference for a language.\n\n**Parent Topic:**[Localization Framework settings](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/localization-framework/localization-settings.md)\n\n"}}