function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Forrest Muldune 36Forrest Muldune 36 

Select image on a field to start button.

in Campaign object, There is a button labeled "Add to Pardot List"  with the following information below

https://pi.pardot.com/list/pullCrmCampaign/fid/{!Campaign.Id}/campaignName/{!URLENCODE(Campaign.Name)}/leadCount/{!Campaign.NumberOfLeads}/contactCount/{!Campaign.NumberOfContacts}?sessionid={!$Api.Session_ID}&serverurl={!$Api.Partner_Server_URL_90}

I created a formula (Text) field based on the website below, however, I was unable to trigger the "Add to Pardot List" button.

https://help.salesforce.com/articleView?id=000188475&type=1 

Below is the formula I created  in the formula(Text) field

HYPERLINK("https://pi.pardot.com/list/pullCrmCampaign/fid/Campaign.Id/campaignName/URLENCODE(Campaign.Name)/leadCount/Campaign.NumberOfLeads/contactCount/Campaign.NumberOfContacts?sessionid=$Api.Session_ID&serverurl=$Api.Partner_Server_URL_90",IMAGE("https://iongeo--c.na3.content.force.com/servlet/servlet.FileDownload?file=01550000002hQsa", "Pardot List"))

I created this formula field because I want this field to display only for system administrators . I did not want to create other page layouts. 

I would appreciate if you all could help me on this requirement. 

 


 
Saroja MuruganSaroja Murugan
Hi,

Can you please try the below formule to achieve this?

IF(CONTAINS($Profile.Name,"System Administrator"),
HYPERLINK("https://pi.pardot.com/list/pullCrmCampaign/fid/Campaign.Id/campaignName/URLENCODE(Campaign.Name)/leadCount/Campaign.NumberOfLeads/contactCount/Campaign.NumberOfContacts?sessionid=$Api.Session_ID&serverurl=$Api.Partner_Server_URL_90",IMAGE("https://iongeo--c.na3.content.force.com/servlet/servlet.FileDownload?file=01550000002hQsa", "Pardot List"))," ")

Let me know if its works or not.

Thanks,
Saroja
SPT Salesforce team
 
Forrest Muldune 36Forrest Muldune 36
Unfortunately, it did not work. when I selected the field I received the error message below

User-added image
Saroja MuruganSaroja Murugan
When i'm clicked the button its redirect me to the below login

https://pi.pardot.com/list/pullCrmCampaign/fid/Campaign.Id/campaignName/URLENCODE(Campaign.Name)/leadCount/Campaign.NumberOfLeads/contactCount/Campaign.NumberOfContacts?sessionid=$Api.Session_ID&serverurl=$Api.Partner_Server_URL_90

Can you please check it.

This is my field


User-added image
Forrest Muldune 36Forrest Muldune 36
Saroja,

The link you sent is correct, however for some reason, when a user with a Pardot account is login, it will not work. This is the issue. When a user selects the field for the first time, it will be forward to the link you sent me. If the user goes to another Campaign record and selects the field, the user will get the error message that I sent you. Since the user is login Pardot already, I believe this is causing the link to not work. I am not sure this is the answer, but this is just my opinion. 

Any solution?
Saroja MuruganSaroja Murugan
Hi,

I think the problem is in that link.

Please contact Pardot support to solve this error.