Support Tip: Service API - How to get the Unique Identifier (URI) of a location's address

0 Likes

Environment

CM 9.x and CM 10.x

Situation

Location Addresses in Content Manager are handled as Child Collections.

As per the ServiceAPI Help on Child Collections (/CMServiceAPI/help/ChildCollections), "edit an existing item by including an object containing a valid Uri and all properties that require modification".

So, the question is how to get the URI of an existing Street or Mailing Address on a Location? 

Resolution

Refer to the the "Fetch any Custom Property" Service API example:
 http://localhost/CMServiceAPI/examples/CustomPropertyTryItOut?trimType=Location

The requested URL sample generated is /CMServiceAPI/Location/1661?properties=ChildAddresses where 1661 is the location URI. Select the Property required, which in this case is 'ChildAddresses'.


Additional Information

For information on "How to edit a Location Address in CM ServiceAPI", please refer to the Knowledge Article: 
https://portal.microfocus.com/s/article/KM000004260

Caroline Oest

Micro Focus Customer Experience Marketing

If you find this post useful, give it a ‘Like’ or use ‘Verify Answer’

Labels:

Support Tip
Comment List
Anonymous
Related Discussions
Recommended