GenerateList Method
GenerateList is a utility method that loops through the workflow. This method queries for data by using search specifications and returns a property set according to field list values. Subsequent steps in the workflow can loop through each record in the property set using the GetNextItem method. Other methods, such as VerifyPricingEntitlement, VerifyServiceEntitlement, and GetBestPricedEntitlement, can then use the resulting data.
Invoked From
This method is called by the FS - All Charge Consolidation workflow. For more information, see FS - All Charge Consolidation Workflow.
Usage
The GenerateList step of the FS - Verify Entitlement Order Best Price workflow uses the GenerateList method with the following parameters:
Business Component of Order Entry - Line Items
Business Object of Order Entry
Field List of “Id”, “Product Id”, “Adjusted Price”
Search Spec of “[Order Header Id]=‘“+[&Object Id]+’””
The GenerateList step of the FS - Verify Entitlement Sales Order Best Price workflow uses the GenerateList method with the following parameters:
Business Component of Order Entry - Line Items
Business Object of Order Entry (Sales)
Field List of “Id”, “Product Id”, “Adjusted Price”
Search Spec of “[Order Header Id]=‘“+[&Object Id]+’””
The GenerateQuoteLineProductList step of the FS - Verify Entitlement Quote Best Price workflow uses the GenerateList method with the following parameters:
Business Component of Quote Item
Business Object of Quote
Field List of “Id”, “Product Id”, “Adjusted List Price”
Search Spec of “[Quote Id]=‘“+[&Object Id]+’””
The GetPrimaryAccountForLogin List step of the PMP Account Creation - Default workflow uses the GenerateList method with the following parameters:
Business Component of Global Account
Business Object of Global Account Hierarchy
Field List of “Account Id”
Search Spec of “[Primary Employee Login]=‘“+LoginName()+’” AND [Parent Account Id] IS NULL”