/
How to Update Object References Regularly

How to Update Object References Regularly

As customers and attributes may change any time, it is handy to run an automatic background job to update the object references regularly on a particular partition. 

A typical use case: We have contracts related to a customer group. There is a new customer added to that group. When displaying contracts of that newly added customer, we want to make sure the data is up-to-date and includes all of the contracts of the corresponding customer group. 

To ensure a timely object references update, we need to trigger addObjRefAction. This can be done using a Calculation Flow which is set to a reasonable frequency (e.g. once a day). 

actionBuilder.addObjRefAction().setFilter(filter).setPartition(partition).setTypeCode('typeCode')

For the above mentioned case with contracts, we would adjust "typeCode" to be "CT", "partition" to be the partition you need it for and filter as needed.

Related content

Read / Lookup / Search / Find Functions
Read / Lookup / Search / Find Functions
Read with this
How to Set Up Failover Monitoring
How to Set Up Failover Monitoring
Read with this
Set up Model Object Schedule from Logic
Set up Model Object Schedule from Logic
More like this
How to Automatically Archive Old Data
How to Automatically Archive Old Data
More like this

Found an issue in documentation? Write to us.