Auto Referesh Lead page. | Community
Skip to main content
January 19, 2016
Question

Auto Referesh Lead page.

  • January 19, 2016
  • 2 replies
  • 2225 views

Hi,

I am using Webhook to consume third party web service. I have added custom field of type check box in lead object. i have created a smart campaign which got triggered from new added custom field and then call the Webhook.I have mapped the response with lead fields.

Once entire flow executed lead database got updated based on the mapping in Webhook. But user who triggered it from lead page is still not able to see the updated values until he/she manually refresh the page.

Is there any way to refresh the lead page automatically. I mean with the help of Smart campaign or any other way?

Best Regards,

Deepak Kumar

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Grégoire_Miche2
Level 10
January 19, 2016

Hi Deepak,

The landing page has no way to "know" that the value have been updated on the servers unless they poll the server or you have a mechanic that alerts the page.

The second does not exist, AFAIK, on Marketo. So that leaves the first method. So this means that you would have to have some JS that either refreshes the page after a few seconds, as I do not see in Marketo's client API's a way to poll lead data.

@Sanford Whiteman​ may have a better idea.

-Greg

January 28, 2016

Hi Greg,

Thanks for the update.

Could you please share any link or tell me how can i add JS on Lead page for auto refresh.

Thanks,

Deepak.

Grégoire_Miche2
Level 10
January 28, 2016

Hi Deepak,

Unfortunately, I am not a JS developer, so I do not know

-Greg

SanfordWhiteman
Level 10
January 19, 2016

What are the specific reasons you must access this web service as a webhook from the server, rather than calling it from the client, since the goal is to enrich the lead with new data that is in turn viewable by the lead?

If you absolutely cannot change the origin of the service calls, then you can meet the goal like this;

  • use a publish/subscribe service like PubNub (or your own homebrew equivalent)
  • the client connects and subscribes to a channel and passes the channel id with the form post
  • when the data value is changed on the server, you publish the "is updated" event to the channel