Categorie: reference Bijgewerkt: 2026-04-08 actionfield workflow actionfield734

ActionField734

Beschrijving: Copy some Article/Purchase fields from ArticleVendor to ServiceContractLine Custom: Nee

Propertiesbewerken

Property Type Accessor
ServiceContractLine ServiceContractLine Root

XMLbewerken

<Workflow Name="ActionField734" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Copy some Article/Purchase fields from ArticleVendor to ServiceContractLine</Description>
	<Properties>
		<Property	Name="ServiceContractLine"	Type="ServiceContractLine"	Accessor="Root"		Direction="In" />

		<Property	Name="ArticleVendor"		Type="ArticleVendor"		Accessor="Internal" />
		<Property	Name="ServiceContract"		Type="ServiceContract"		Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<When Name="Fill vendor when not already filled" Condition="${ServiceContractLine.Vendor} == Empty">
				<GetItem Name="Get Vendor From ServiceContract" Type="ServiceContract" OutputProperty="${ServiceContract}">
					<Filters>
						<PropertyFilter	PropertyName="Id"	Operator="="		PropertyValue="${ServiceContractLine.Id.ServiceContract.Id}" />
					</Filters>
				</GetItem>

				<Assign Name="Set Vendor" Property="${ServiceContractLine.Vendor}" Value="${ServiceContract.Vendor}" />
			</When>

			<When Name="All relevant columns filled" Condition="${ServiceContractLine.Article} != Empty &amp;&amp; ${ServiceContractLine.Vendor} != Empty">
				<GetItem Name="GetArticleVendor" Type="ArticleVendor" OutputProperty="${ArticleVendor}">
					<Filters>
						<PropertyFilter	PropertyName="Id.Article"	Operator="="		PropertyValue="${ServiceContractLine.Article}" />
						<PropertyFilter	PropertyName="Id.Vendor"	Operator="="		PropertyValue="${ServiceContractLine.Vendor}" />
					</Filters>
				</GetItem>

				<When Name="CopyRelevantColumnsFromArticleVendor" Condition="${ArticleVendor} != Empty">
					<Assign Name="Set PurchaseCode" Property="${ServiceContractLine.PurchaseCode}" Value="${ArticleVendor.PurchaseCode}" />
					<Assign Name="Set UnitDescription" Property="${ServiceContractLine.UnitDescription}" Value="${ArticleVendor.UnitDescription}" />
					<Assign Name="Set QuantityPurchaseUnit" Property="${ServiceContractLine.QuantityPurchaseUnit}" Value="${ArticleVendor.QuantityPurchaseUnit}" />
					<Assign Name="Set MinimumPurchaseQuantity" Property="${ServiceContractLine.MinimumPurchaseQuantity}" Value="${ArticleVendor.MinimumPurchaseQuantity}" />
					<Assign Name="Set LeadTime" Property="${ServiceContractLine.LeadTime}" Value="${ArticleVendor.LeadTime}" />
					<Assign Name="Set Currency" Property="${ServiceContractLine.Currency}" Value="${ArticleVendor.Id.Vendor.Currency}" />
					<Assign Name="Set ArticleUnitPrice" Property="${ServiceContractLine.ArticleUnitPrice}" Value="${ArticleVendor.ArticleUnitPrice}" />
					<Assign Name="Set Discount" Property="${ServiceContractLine.Discount}" Value="${ArticleVendor.Discount}" />
					<Assign Name="Set PurchaseQuantityCeilSignificant" Property="${ServiceContractLine.PurchaseQuantityCeilSignificant}" Value="${ArticleVendor.PurchaseQuantityCeilSignificant}" />

					<Copy Name="Copy CustomColumns" Source="${ArticleVendor}" Target="${ServiceContractLine}" CopyType="Overwrite" CustomOnly="True" />
				</When>
			</When>
		</Transaction>

		<UserContent Name="Post" />
	</Execution>
</Workflow>