Table of Contents

How to use a customer as a company?

When you work with a customer, you can only get party attributes like company, company location or person.

If you know that the customer is a company and need to get their company attributes, you can cast its reference party to Aloe.EnterpriseOne.Model.General.Contacts.Company.

For example, to get the responsible person of the customer's company, the following attribute would do the job:

(repository of the attribute: Crm.Customers)

10: GETOBJVALUE EXP:20 ResponsiblePersonName
20: CAST REF:Party CONST:Aloe.EnterpriseOne.Model.General.Contacts.Company
Note

If the customer is not a company, it would return an error.