# portalId missing from "IFRAME" action outbound request

**URL:** <https://community.hubspot.com/t/portalid-missing-from-iframe-action-outbound-request/96030>\
**Category:** APIs & Integrations\
**Tags:** timeline-and-extensions-apis\
**Created:** [December 13, 2023, 8:25pm UTC](https://community.hubspot.com/t/portalid-missing-from-iframe-action-outbound-request/96030 "2023-12-13T20:25:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ISlonim](https://avatars.discourse-cdn.com/v4/letter/i/fbc32d/32.png) [@ISlonim](https://community.hubspot.com/u/ISlonim)\
**Post date:** [December 13, 2023, 8:25pm UTC](https://community.hubspot.com/t/portalid-missing-from-iframe-action-outbound-request/96030/1 "2023-12-13T20:25:08Z")

</div>

Hi,  
When the action in the card is “ACTION\_HOOK”, on click the request that goes out to the endpoint contains the following properties: portalId, associatedObjectType, associatedObjectId, but when the action is “IFRAME”, those fields are missing.  
My entire flow is based on that, because those portal ids are mapped to the refresh tokens from the installation of the app on those portals.  
Is this a bug? if not, how can I get that portal ID and other fields to be sent out as part of the GET request for the IFRAME?  
Thank you.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [December 14, 2023, 10:02pm UTC](https://community.hubspot.com/t/portalid-missing-from-iframe-action-outbound-request/96030/2 "2023-12-14T22:02:32Z")

</div>

Hey, @ISlonim 👋 Do you have a specific API document you are looking at? I want to make sure I start with what you are working with. This is the most direct way to try to track down if it’s working as designed or if there is another issue.

Thanks! — Jaycee

---

<div class="post-metadata">

**Author:** ![ISlonim](https://avatars.discourse-cdn.com/v4/letter/i/fbc32d/32.png) [@ISlonim](https://community.hubspot.com/u/ISlonim)\
**Post date:** [January 11, 2024, 4:35pm UTC](https://community.hubspot.com/t/portalid-missing-from-iframe-action-outbound-request/96030/3 "2024-01-11T16:35:30Z")

</div>

Hi Jaycee,  
The API being called when you return an “IFRAME” action button in a card - [Accounts Dashboard | HubSpot](https://legacydocs.hubspot.com/docs/methods/crm-extensions/crm-extensions-overview#sales-object-properties)

---

<div class="post-metadata">

**Author:** ![cameroncollecti](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cameroncollecti/32/76053_2.png) [@cameroncollecti](https://community.hubspot.com/u/cameroncollecti)\
**Post date:** [January 21, 2024, 11:59pm UTC](https://community.hubspot.com/t/portalid-missing-from-iframe-action-outbound-request/96030/4 "2024-01-21T23:59:04Z")

</div>

Hey [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) ,

Just wanted to confirm I am also seeing this. In the action deffinition for the type IFRAME, I have some associatedObjectProperties that I would expect per the docs to be uri query params:

[Accounts Dashboard | HubSpot](https://legacydocs.hubspot.com/docs/methods/crm-extensions/crm-extensions-overview#handling-action-hooks) (scroll down to iFrame actions)

- associatedObjectProperties: A list of properties on the associated contact, company, deal, or ticket. The values of the properties for the current object will be appended to the uri as query parameters when opening the iframe.

Here’s an example:

```lia-code-sample
{'results': [{'actions': [{'associatedObjectProperties': [],
 'cancelButtonText': 'No',
 'confirmButtonText': 'Yes',
 'confirmationMessage': 'Are you sure you want to '
 'Cancel this Member?',
 'httpMethod': 'DELETE',
 'label': 'Cancel Member',
 'type': 'CONFIRMATION_ACTION_HOOK',
 'uri': 'https://redacted'},
 {'associatedObjectProperties': ['associatedObjectId',
 'portalId',
 'userId',
 'userEmail',
 'domain'],
 'height': 748,
 'label': 'Change Linked Members',
 'type': 'IFRAME',
 'uri': 'https://redacted/linked',
 'width': 890}],
 'link': 'https://redacted',
 'title': 'Redacted'}],
 'settingsAction': {'height': 748,
 'label': 'Settings',
 'type': 'IFRAME',
 'uri': 'https://redacted',
 'width': 890}}

```

I would expect [https://redacted/linked](https://redacted/linked) to get something like [https://redacted/linked?userId=123&userEmail=user@example.com&associatedObjectId=321&associatedObjectType=CONTACT&portalId=123456789](https://redacted/linked?userId=123&userEmail=user@example.com&associatedObjectId=321&associatedObjectType=CONTACT&portalId=123456789)

Oddly enough, this works on the CONFIRMATION\_ACTION\_HOOK.

Would love to know if I missed something.

Thanks!

---

<div class="post-metadata">

**Author:** ![ISlonim](https://avatars.discourse-cdn.com/v4/letter/i/fbc32d/32.png) [@ISlonim](https://community.hubspot.com/u/ISlonim)\
**Post date:** [January 18, 2024, 6:51pm UTC](https://community.hubspot.com/t/portalid-missing-from-iframe-action-outbound-request/96030/5 "2024-01-18T18:51:16Z")

</div>

[@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074)  
I managed to somehow get around it by getting the portal id from the header “referer”, but for some customers (in EU, don’t know if that is relevant) the “referer” header only contains the base url without the rest of the portal id. Do you have any updates regarding my question? thank you.

---

<div class="post-metadata">

**Author:** ![cameroncollecti](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cameroncollecti/32/76053_2.png) [@cameroncollecti](https://community.hubspot.com/u/cameroncollecti)\
**Post date:** [January 28, 2024, 2:57pm UTC](https://community.hubspot.com/t/portalid-missing-from-iframe-action-outbound-request/96030/6 "2024-01-28T14:57:27Z")

</div>

[@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) , @ISlonim ,

Just checking in, either of you learn any more about this issue?

---

<div class="post-metadata">

**Author:** ![ISlonim](https://avatars.discourse-cdn.com/v4/letter/i/fbc32d/32.png) [@ISlonim](https://community.hubspot.com/u/ISlonim)\
**Post date:** [January 29, 2024, 5:38pm UTC](https://community.hubspot.com/t/portalid-missing-from-iframe-action-outbound-request/96030/7 "2024-01-29T17:38:16Z")

</div>

Crickets so far..  
[@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074)

---

<div class="post-metadata">

**Author:** ![ISlonim](https://avatars.discourse-cdn.com/v4/letter/i/fbc32d/32.png) [@ISlonim](https://community.hubspot.com/u/ISlonim)\
**Post date:** [May 15, 2024, 9:14pm UTC](https://community.hubspot.com/t/portalid-missing-from-iframe-action-outbound-request/96030/8 "2024-05-15T21:14:41Z")

</div>

[@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) @hubspot Anything? this is causing major issues for us and preventing us from integrating with Hubspot.
