I have a custom user profile property named "My-Property".
I want to retrieve this property from a rest call.
How can I handle the dash in the property name ?
I tried :
http://server/_api/SP.UserProfiles.PeopleManager/GetMyProperties/?$select=My-Property
http://server/_api/SP.UserProfiles.PeopleManager/GetMyProperties/My-Property
http://server/_api/SP.UserProfiles.PeopleManager/GetMyProperties/?$select=My%20Property
http://server/_api/SP.UserProfiles.PeopleManager/GetMyProperties/My%20Property
http://server/_api/SP.UserProfiles.PeopleManager/GetMyProperties/?$select=MyProperty
http://server/_api/SP.UserProfiles.PeopleManager/GetMyProperties/MyProperty
http://server/_api/SP.UserProfiles.PeopleManager/GetMyProperties/?$select=MyProperty
http://server/_api/SP.UserProfiles.PeopleManager/GetMyProperties/?$select=UserProfileProperties/My-Property&$expand=UserProfileProperties/My-Property
http://server/_api/SP.UserProfiles.PeopleManager/GetMyProperties/?$select=UserProfileProperties/My%2DProperty&$expand=UserProfileProperties/My%2DProperty
http://server/_api/SP.UserProfiles.PeopleManager/GetMyProperties/?$select=UserProfileProperties/MyProperty&$expand=UserProfileProperties/MyProperty
With no luck.
What is the correct way to get this property ?