Issue with Passing Leads.Lead Id in Extension Button and Opening URL in Iframe

Issue with Passing Leads.Lead Id in Extension Button and Opening URL in Iframe

Hi everyone,

I’m currently developing an extension and have run into an issue while trying to pass the Leads.Lead Id in a URL and open it within an iframe.

Here’s what I’ve done so far:

  1. I added a button in the "View Page" and selected the action to "Invoke a widget."
  2. In the widget settings, I set the URL like this:
    bash
    https://my_url/smth?origin=zoho&lead=${Leads.Lead Id}
  3. However, when using this setup, I’m unable to retrieve the Leads.Lead Id.

Then, I changed the action to "Invoke a URL" instead of "Invoke a widget" and set the same URL:

bash
https://my_url/smth?origin=zoho&lead=${Leads.Lead Id}

With this configuration, I can retrieve the Leads.Lead Id, but the URL opens in a new tab instead of within an iframe, which is not the behavior I want.

My questions are:

  1. How can I properly pass the Leads.Lead Id when using the "Invoke a widget" action?
  2. How can I ensure that the URL opens inside the iframe rather than in a new tab?

Has anyone faced this issue before or can point me toward any documentation or libraries that might help me achieve the desired functionality?

I’d really appreciate any help or insights you could offer!

Thanks in advance.