Table of Contents

Get a value of a custom property in sales order lines from the parent offer line

This attribute determines the value of a particular customer property set for the parent offer line of the current sales order line. Currently, offer lines customer properties are not transferred to the sales order.

Thus, you can use this attribute in a user business rule to automate the process.

For more information on how to create such a rule, see
How to use business rules to set a value into a custom property?.

Repository: Crm.Sales.SalesOrderLines
                    
10: GETOBJVALUE EXP:20 ATTRIB:@Propery1                 
20: FIRST EXP:30                                                       
30: FILTER EXP:70 EXP:40                               
40: EQUAL ATTRIB:LineNo EXP:50                   
50: CAST EXP:60 CONST:System.Int32                          
60: GETOBJVALUE INPUT:10 ATTRIB:ParentLineNo                        
70: GETOBJVALUE EXP: 80 CHILD:Lines                          
80: CAST REF:ParentDocument CONST:Aloe.EnterpriseOne.Model.Crm.Presales.Offer                

Explanation:

  • 10: Get the record of custom property 'Propery1' from EXP:20.
  • 20: Get the first value of EXP:30.
  • 30: Filter the list from EXP:70 with the filters from EXP:40.
  • 40: Check in the LineNumber of the offer line is equal to the value from EXP:50.
  • 50: Cast EXP:60 to "System.Int32".
  • 60: Get the ParentLineNo of the sales order line, which is an input for EXP:10.
  • 70: Get the list of child line of the object of EXP:80.
  • 80: Cast the parent document of the sales order line to Aloe.EnterpriseOne.Model.Crm.Presales.Offer to define the type/entity of the parent document.