Account Address Not Showing Location

Ram117
Kilo Sage

Experts,

 

I have recently started looking into CSM capability. While going through the location to customer account relationship, the location field on the 'Account Addresses' (account_address_relationship) is not showing any location references . On script debugging, i found the return query is coming as '

consumerISEMPTY^sys_idIN

Ram117_0-1771572884699.png

 

Customer Account Record :

Ram117_1-1771572974032.png

 

 

Any guidance is appreciated .

 

Thank you

ram.

 

3 REPLIES 3

Tanushree Maiti
Mega Sage

Can you check what filter parameter is there to refine the location result ?

Debug that way..

 

TanushreeMaiti_0-1771574101533.png

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

sysparm_target_value=&sysparm_reference_value=&sysparm_nameofstack=reflist&sysparm_clear_stack=true&sysparm_element=location&sysparm_reference=cmn_location&sysparm_view=sys_ref_list&sysparm_form_view=case&sysparm_additional_qual=&sysparm_client_record=session&sysparm_domain_restore=false

 

location field is having a dynamic reference filter and I do not see the return query applied as a url query param

Shruti
Giga Sage

Hi @Ram117 

Check this script include "AddressMgmtExtensionInstanceOOB"

 

  • locationsForAccHierarchy = getLocationsForAccHierarchy(account)
    Collects location sys_ids found in account_address_relationship across the account hierarchy (whole tree).
  • locationsForAcc = getLocationsForAccount(account)
    Collects location sys_ids for the specific account (source depends on “sharing enabled”).
  • filteredLocations = locationsForAccHierarchy.filter(loc => locationsForAcc.indexOf(loc) < 0)
    Keeps only locations that are in the hierarchy list but not already associated to the account.

Diagonal Inc does not satisfy any of the above criteria