Policy Number, Policy Schedule A Screen

Questions about and code samples for automation process code snippets within Select.
Post Reply
bthorson
Posts: 8
Joined: Wed Feb 21, 2018 1:12 pm

Policy Number, Policy Schedule A Screen

Post by bthorson »

I'm trying to develop a formula that pulls information from the Policy Number field on the Policy - Schedule A Screen, the field code is {{Order.Title.TitleInsuranceCalculations.LoanPolicy.Number}} ,however, I receive the following error "Set<TitleInsuranceCalculation>' does not contain a definition of 'LoanPolicy'. Do you have any recommendations on what field code I can use to pull from this field?

Thank you,
Bryan
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Policy Number, Policy Schedule A Screen

Post by BobRichards »

TitleInsuranceCalculations (plural) is a set of one or more TitleInsuranceCalculation objects. You must pick the one that has the Loan Policy you are interested in. For example, the first TitleInsuranceCalculation in the set is selected as follows:

Code: Select all

{{Order.Title.TitleInsuranceCalculations[1].LoanPolicy.Number}}
                                        ^^^
In the future, this forum is for Automation Code Snippets - not formulas. Please post to "Integration Development" or "Integration Development / General" instead. Thanks.
Bob Richards, Senior Software Developer, SoftPro
Post Reply