# Attribute Mapping jsonpath issue - Web Services Connector

**URL:** <https://developer.sailpoint.com/discuss/t/attribute-mapping-jsonpath-issue-web-services-connector/38230>\
**Category:** SHF Discussion and Questions\
**Tags:** webservice-connector, sailpoint-identity-security\
**Created:** [March 28, 2024, 3:52pm UTC](https://developer.sailpoint.com/discuss/t/attribute-mapping-jsonpath-issue-web-services-connector/38230 "2024-03-28T15:52:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndanjou](https://avatars.discourse-cdn.com/v4/letter/n/df705f/32.png) [@ndanjou](https://developer.sailpoint.com/discuss/u/ndanjou)\
**Post date:** [March 28, 2024, 3:52pm UTC](https://developer.sailpoint.com/discuss/t/attribute-mapping-jsonpath-issue-web-services-connector/38230/1 "2024-03-28T15:52:40Z")

</div>

Hey All,

I’m working on an API integration and trying to configure the aggregation. I’m not sure where I’m going wrong here as the answer to me is obvious.

See example below - I’m trying to access the elements in the ‘campaign’ object in my response mapping. However when I set the jsonpath to “$.results[\*].campaign.name” I get nothing in IDN.

I CAN however pull the entire object no problem as shown below.

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/4/45f2652e54be540e210f2364d830f701b69bd891.png)

Any ideas what is missing here. seems obvious if “$.results[\*].campaign” works then “$.results[\*].campaign.name” would work as well.

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/5/59c2236a466fbb025bf183591c5cea5b95315500.png)

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/0/0f17305b1efe3c91d635689ad1f9f98ddf84158f.png)

```auto
{
    "count": 899,
    "next": "https://api.beaconstac.com/api/2.0/qrcodes/?page=2",
    "previous": null,
    "results": [
        {
            "id": 1636947,
            "meta": {
                "creator_id": 175288,
                "updater_id": 175288,
                "creator_email": "<redact>",
                "updater_email": "<redact>",
                "activationTimestamp": 1678121969,
                "deactivationTimestamp": 1711380971
            },
            "place_data": {
                "id": 53790,
                "name": "Default Place"
            },
            "tag_data": [
                {
                    "id": 17102,
                    "name": "Backbase",
                    "color": "#ff9f1a"
                },
                {
                    "id": 23702,
                    "name": "Region 3",
                    "color": "#ff9f1a"
                }
            ],
            "campaign": {
                "id": 806838,
                "name": "<redact>",
                "app_links": {},
                "multi_language_content": {},
                "geo_location_content": {},
                "vcard_plus": {},
                "social_media": {},
                "facebook_page": {},
                "coupon": {},
                "business_card": {},
                "pdf": {},
                "restaurant_menu": {},
                "smart_rules": {},
                "free_text": {},
                "multi_url": {},
                "custom_url": "<redact>",
                "image": null,
                "mp3": null,
                "location": null,
                "phone_call": {},
                "phone_sms": {},
                "email": {},
                "start_date": null,
                "end_date": null,
                "timezone": "America/New_York",
                "fb_pixel_id": null,
                "fb_pixel_event": null,
                "google_conversion_id": null,
                "ga_code": null,
                "content_type": 1,
                "age_gate": null,
                "campaign_active": true,
                "created": "2023-03-06T22:29:29.522758+05:30",
                "updated": "2023-08-10T20:12:48.863102+05:30",
                "organization": 49160,
                "markdown_card": null,
                "form": null,
                "schedule": null,
                "link_page": null
            }

```

---

<div class="post-metadata">

**Author:** ![coelhoya2](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/coelhoya2/32/8767_2.png) [@coelhoya2](https://developer.sailpoint.com/discuss/u/coelhoya2)\
**Post date:** [March 28, 2024, 4:46pm UTC](https://developer.sailpoint.com/discuss/t/attribute-mapping-jsonpath-issue-web-services-connector/38230/2 "2024-03-28T16:46:54Z")

</div>

Hi Nicholas,

Just invert your response mapping, on the left is the attribute that will be stored in IDN and the right you should pass the attribute path.  
 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/e/e015d8459b7e197034ae2860d1ffc8e87a836e73.png)

You manage to retrieve the campaing value because the attribute path is rigth, but for campaign name you need to invert the mapping.

Let me know if works.

---

<div class="post-metadata">

**Author:** ![ndanjou](https://avatars.discourse-cdn.com/v4/letter/n/df705f/32.png) [@ndanjou](https://developer.sailpoint.com/discuss/u/ndanjou)\
**Post date:** [March 28, 2024, 5:49pm UTC](https://developer.sailpoint.com/discuss/t/attribute-mapping-jsonpath-issue-web-services-connector/38230/3 "2024-03-28T17:49:25Z")

</div>

Wow! one of those days haha. Thank you so much, can’t believe I missed that. 🙂

---

<div class="post-metadata">

**Author:** ![ipobeidi](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ipobeidi/32/16000_2.png) [@ipobeidi](https://developer.sailpoint.com/discuss/u/ipobeidi)\
**Post date:** [March 29, 2024, 6:41pm UTC](https://developer.sailpoint.com/discuss/t/attribute-mapping-jsonpath-issue-web-services-connector/38230/4 "2024-03-29T18:41:48Z")

</div>

Did that work? never saw such a thing honestly hahahaha

---

<div class="post-metadata">

**Author:** ![ndanjou](https://avatars.discourse-cdn.com/v4/letter/n/df705f/32.png) [@ndanjou](https://developer.sailpoint.com/discuss/u/ndanjou)\
**Post date:** [April 16, 2024, 3:19pm UTC](https://developer.sailpoint.com/discuss/t/attribute-mapping-jsonpath-issue-web-services-connector/38230/5 "2024-04-16T15:19:27Z")

</div>

yes it worked haha. silly on my end been staring at it too long.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [June 15, 2024, 3:19pm UTC](https://developer.sailpoint.com/discuss/t/attribute-mapping-jsonpath-issue-web-services-connector/38230/6 "2024-06-15T15:19:44Z")

</div>

Closed on June 15, 2024, 3:19pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
