Article Details
Id:22102
Product:finPOWER Connect
Type:NEW
Version:6.00.01
Opened:12/03/2025
Closed:12/03/2025
Released:18/08/2025
Job: J035302

Business Layer; finExternalParty; SaveWithoutRefresh method added to allow Scripts to avoid refreshing the Global Collection when updating the record

Whenever a record in a global collection, e.g., Branches, External Parties etc is saved, the global collection, e.g., finBL.ExternalParties, is flagged to require a complete refresh from the database the next time it is accessed.

This can result in slow performance if a global collection is updated regularly.

Scripts can now use the following method to save an External Party record without causing the global collection to be flagged as requiring a refresh:

Public Function Main(parameters As ISKeyValueList) As Boolean
  
  Dim ExternalParty As finExternalParty

  ' Assume Success
  Main = True
  
  ' Update External Party
  ExternalParty = finBL.CreateExternalParty()
  
  Main = ExternalParty.Load("I")
  
  If Main Then
    ExternalParty.Name = "Internal X"
    
    'Main = ExternalParty.Save()
    Main = ExternalParty.SaveWithoutRefresh()
  End If

End Function

WARNING: The current User and/ or other Users of finPOWER Connect are not guaranteed to immediately see this update in certain areas of the system if this method is used. For instance, if you update an External Party's Name, any dropdown fields in finPOWER Connect Cloud that allowed an External Party to be selected may still show the old value until some other mechanism causes the global collection to refresh.