Managing Primary Address Flag in Network
CompletedSituation:
For the Adderss object we have created a Primary field that is Network-Calculated, by default the address with lowest address ordinal will get the primary flag set to True.
For an HCP record we get data from up to 5 different data sources and business requirement is to setup the primary address selection based on source priority. All this data is loaded into Network using source subscriptions.
Priority: DS1 > DS2 > DS3 > DS4 >DS5
Business Logic
- For an HCP if DS2 and DS3 are giving 2 different addresses and DS1 is not giving any address then the address from DS2 should become the primary address (Primary Flag = True)
- If DS2 is giving one address today and next week DS2 is giving a different address then more recent address should become
We have read the entire Network documentation but did not find a way to implement this. Given this is a very standard procedure within all the MDM systems can someone please guide us how this can be implemented in Network?
in case there is no direct way to implement the above, what would be the next best approach for managing primary addresses ?
-
Hi Yashodeep,
Can you contact me @ edward.reilley@veeva.com?
Thank you,
Ed-2 -
Hi Yashodeep,
If you are loading the primary field, the normal source survivorship ranking applies. A higher source rank will update the field.
If Network has to calculate a primary, only active and valid addresses on the record are considered in the calculation. Addresses where the primary flag is set to "N" in the current change are filtered out from the calculation. If there are multiple addresses to consider, the following criteria are used as tie-breakers until one primary can be found:
- Source rank on the primary field
- Address rank
- Latest time that the primary field was last updated. This is stored internally.
- Highest Network entity ID (VID)
With the Unique Checkbox primary type field, you can also configure when primary address should recalculate. For example, to recalculate when existing primary address become Inactive. Or to never recalculate primary address - the primary address will only update from data update via source subscription, data updater or change requests.
Jessie
1 -
Hello Jessie,
the tie-breaker you defined is exactly what we are looking for but we are unable to see this reflecting in network
Here is what we tried:
1. Created a network-calculated primary field
2. Set the data source ranking on this field as DS1 > DS2 > DS3 (DS1 has highest priority ie lowest rank)
3. Created 3 source subscriptions SS1 SS2 SS3 that will read data for each of the 3 systems
4. Created 3 data files, that have same HCP attributes but each file has a different address from different city (A1, A2, A3)
5. then we ran the subscriptions in this order
SS3 then SS2 then SS1
(Note with each subscription run a new address object got added and as per the network portal, addition of a new object should trigger a networ-primary calculation
Also here we are talking about gray objects OpenData is not involved at all)
Expected result:
After runing SS3; HCP gets Created and A3 is the only address so A3 gets set as the primary
Then after running SS2: A2 should get added, Calculation should be triggered, coz DS2 has higher priority, A2 should become new primary address
Then after runing SS1: A1 should get added, calculation should be triggered, coz DS1 has higher priority A1 should become the new primary
Observerd Result:
After running SS3 hcp get created and A3 is the only address so A3 gets set as the primary
After running SS2, A2 is added however A2 is not set set as primary and A3 is still the primary address (even though DS2 > DS3 in priority)
After running SS1, A1 gets added, however A1 is not set as primary and A3 continues to be the primary (even though DS1 > DS3 in priority)
We have tried this in multiple enviroments and we observed the same results
Is there something we are missing over here ?
1 -
Hi Yashodeep,
Could you please create a support ticket with sample files used to update the records?
Please note that once an entity have a primary address defined, recalculation does not happen when new address is added as we don't want to flip flop the primary address for the entity. Unless the source file is updating the primary address attribute, the primary address will not change even when you're added new higher rank addresses. If the source is updating the primary address attribute, then source rank will decide whether to update the primary address attribute.
Jessie
-1 -
Jessie Hooker Ticket has been created and investigated by Support and forwarded to engineering with further details.
-2 -
Hello Team,
Is this query resolved. Our team also has a similar use case as described above.We are getting the address information from 3 to 4 different data sources and would like to select the primary address based on the source priority.
2
Please sign in to leave a comment.
Comments
6 comments