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

ActionField1059

Beschrijving: Check if PaymentCard already exists for this Code/Vendor combination. Custom: Nee

Propertiesbewerken

Property Type Accessor
PaymentCard PaymentCard Root

XMLbewerken

<Workflow Name="ActionField1059" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Check if PaymentCard already exists for this Code/Vendor combination.</Description>
	<Properties>
		<Property	Name="PaymentCard"						Type="PaymentCard"	Accessor="Root"		Direction="In" />

		<Property	Name="PaymentCardForThisCodeAndVendor"	Type="PaymentCard"	Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<When Name="When Code and Vendor are both entered" Condition="${PaymentCard.Code} != Empty &amp;&amp; ${PaymentCard.Vendor} != Empty">
			<Transaction>
				<GetItem Name="Try to get a PaymentCard for this Code/Vendor combination" Type="PaymentCard" OutputProperty="${PaymentCardForThisCodeAndVendor}">
					<Filters>
						<PropertyFilter	PropertyName="Id"		Operator="!="		PropertyValue="${PaymentCard.Id}" />
						<PropertyFilter	PropertyName="Code"		Operator="="		PropertyValue="${PaymentCard.Code}" />
						<PropertyFilter	PropertyName="Vendor"	Operator="="		PropertyValue="${PaymentCard.Vendor}" />
					</Filters>
				</GetItem>
			</Transaction>

			<When Name="When PaymentCard found for Code/Vendor combination" Condition="${PaymentCardForThisCodeAndVendor} != Empty">
				<Message Name="PaymentCardAlreadyExistsForCodeVendorCombination" MessageCode="2071">
					<Parameter	Name="PaymentCard"	Direction="In"		Value="${PaymentCard}" />
				</Message>

				<Transaction>
					<Assign Name="Clear Code" Property="${PaymentCard.Code}" Value="Empty" />
					<Assign Name="Clear Vendor" Property="${PaymentCard.Vendor}" Value="Empty" />
				</Transaction>
			</When>
		</When>

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