Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Retrieve date from most recent portal record


This topic is 7511 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I'm working with two databases - the first "CustomerData" contains a portal to "ItemSales".

CustomerData is customer contact information, billing address, shipping address, etc.

ItemSales is purchase information

So when I view CustomerData I can see their purchase activity from within the portal.

My problem is: I'm trying to define a calculation field in CustomerData that returns the last InvoiceDate (the most recent one) from the ItemSales data inside the portal.

For example if I have 3 sales records for a customer showing inside the portal, each record begins by showing the InvoiceDate field....

1. 6/4/03, .........

2. 12/15/03, .......

3. 3/5/04, ........

I'd like to retrieve the 3rd date, 3/5/04, in my calculation field in CustomerData.

Any ideas would be greatly appreciated.

Thanks

Posted

While MoonShadow's Max is right, there is another function that is faster. But the data has to have been entered in chronological order, ie., the last entered and the latest are the same. With Invoices and items this would be true, I imagine.

It's found in the Repeating functions section, 'cause if was first used with repeating fields.

Last(relationship::field)

This topic is 7511 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.