Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1868
ActionField1868
Beschrijving: Set JobId from PurchaseRequest to PurchaseRequestLine. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| PurchaseRequest | PurchaseRequest | Root |
XMLbewerken
<Workflow Name="ActionField1868" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Set JobId from PurchaseRequest to PurchaseRequestLine.</Description>
<Properties>
<Property Name="PurchaseRequest" Type="PurchaseRequest" Accessor="Root" Direction="In" />
<Property Name="PurchaseRequestLines" Type="List[PurchaseRequestLine]" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<GetList Name="Get PurchaseRequestLines" Type="PurchaseRequestLine" OutputProperty="${PurchaseRequestLines}" OrderBy="Id" OrderDirection="Ascending">
<Filters>
<PropertyFilter PropertyName="PurchaseRequest" Operator="=" PropertyValue="${PurchaseRequest}" />
</Filters>
</GetList>
<ForEach Name="Foreach Line" In="${PurchaseRequestLines}" As="PurchaseRequestLine">
<Assign Name="Set JobId to PurchaseRequestLine" Property="${PurchaseRequestLine.Job}" Value="${PurchaseRequest.Job}" />
<When Name="Purchase Request has a job" Condition="${PurchaseRequest.Job} != Empty">
<Assign Name="Copy the CostCenter from Job to the PurchaseRequestLine" Property="${PurchaseRequestLine.CostCenter}" Value="${PurchaseRequest.Job.CostCenter}" />
</When>
</ForEach>
<When Name="Purchase Request has a job" Condition="${PurchaseRequest.Job} != Empty">
<Assign Name="Copy the CostCenter from Job to the PurchaseRequest" Property="${PurchaseRequest.CostCenter}" Value="${PurchaseRequest.Job.CostCenter}" />
</When>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>