Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    jagadeesh gattupalli
    How to query NamedID values for a resource like Contacts
    Topic posted November 19, 2019 by jagadeesh gattupalliBronze Medal: 1,250+ Points, tagged REST 
    21 Views, 3 Comments
    Title:
    How to query NamedID values for a resource like Contacts
    Summary:
    query NamedID values for a resource like Contacts
    Content:

    Hi , 

    I am working on REST API. As a part of requirement I need to check whether a lookupName existing in namedID of Contacts Resource ?

    Dummy Example link is below. This link fetches me all States or Provinces details of a Contacts  resource. Is there any way I can query a particaluar value from this NamedID values..like State value 'AK' or 'AL'

    https://testdev.orgtest.com/services/rest/connect/v1.3/namedIDs/contacts/address/stateOrProvince

    "items": [
            {
                "id": 1,
                "lookupName": "AK",
                "links": [
                    {
                        "rel": "canonical",
                        "href": "https://testdev.orgtest.com/services/rest/connect/v1.3/namedIDs/contacts/address/stateOrProvince/1"
                    }
                ]
            }
    

     

    https://testdev.orgtest.com/services/rest/connect/v1.3/namedIDs/contacts/address/stateOrProvince?q=lookupName=%27AL%27

    I am trying this way but resulting in Bad Request -400

    Please let me know.

     

    Regards

    Jagadeesh .

     

     

     

    Version:
    19B

    Comment