escript loops on agreement list to fetch largest agreement number
Hi All,
I have a scenario to get all child agreement number list for a customer to fetch largest agreement number. I am able to query as below:
1) initiate account, and agreement Business object and Business components.
2) Fetched a account number and queried its related agreement number list via while loop
However I will need to fetch all related agreement list and find the largest/biggest agreement number. From below code how do I capture the biggest/largest agreement number. Until now I am not able to capture the intended result
/********************** below is the portion of code********************/
if (accntrecords)
{
accnt_Id = oBCAct.GetFieldValue("Id");