Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield667
ActionField667
Beschrijving: Send Email from Job to Vendor. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| Job | Job | Root |
| EmailTemplateCode | UltimoString | Optional |
XMLbewerken
<Workflow Name="ActionField667" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Send Email from Job to Vendor.</Description>
<Properties>
<Property Name="Job" Type="Job" Accessor="Root" Direction="In" />
<Property Name="EmailTemplateCode" Type="UltimoString" Accessor="Optional" Direction="In" Default="00000000031" Comment="Use this Email Template for Email to Vendor" />
<Property Name="Email" Type="Email" Accessor="Internal" />
<Property Name="ReportData" Type="ReportData" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Validation Name="ValidateVendor" Condition="${Job.Vendor} != Empty" MessageCode="1119">
<Parameter Name="Job" Direction="In" Value="${Job}" />
</Validation>
<Validation Name="ValidateVendorEmailAddress" Condition="${Job.Vendor.EmailAddress} != Empty" MessageCode="1120">
<Parameter Name="Vendor" Direction="In" Value="${Job.Vendor}" />
</Validation>
<CreateReport Name="Report" ReportName="JobPrint01-01" ReportType="Pdf" OutputProperty="${ReportData}">
<ReportFormulaValue Name="F1" ColumnName="JobId" Operator="=" Value="${Job.Id}" ResultType="String" />
</CreateReport>
<Transaction>
<Email Name="EmailToVendor" From="#{UltimoSettings.EmailSender}" To="${Job.Vendor.EmailAddress}" RelatedSubjects="${Job}" EmailTemplateCode="${EmailTemplateCode}" Concept="True" OutputProperty="${Email}">
<Parameters>
<Parameter Name="Job" Direction="In" Value="${Job}" />
<Parameter Name="Vendor" Direction="In" Value="${Job.Vendor}" />
</Parameters>
<Attachments>
<Attachment Data="${ReportData}" />
<Attachment Data="${Job.Document}" />
</Attachments>
</Email>
<ChangeStatus Name="ChangeStatusEmail" DomainObject="${Email}" NewStatus="EmailStatus.Draft" />
</Transaction>
<UserContent Name="Post" />
<Message Name="MessageBoxCompleteEmailSending" MessageCode="1140" />
</Execution>
</Workflow>