+ Start a Discussion
jgreene.ax1178jgreene.ax1178 

Formula that pulls Campaign I.D.

Hi all!

 

I'm trying to have a field on a campaign page layout that, upon creation of a new campaign, automatically pulls the campaign id from the URL and plugs it into the new field.

 

However, I am not finding any info on how to actually have a formula pull that url string.

 

Any help on the above would be most appreciated! 

 

Thanks!

 

-JG

Best Answer chosen by Admin (Salesforce Developers) 
phiberoptikphiberoptik

Create a formula field (Text output) on the Campaign object. Make the formula: Id

 

This field will now display the 15 character ID for the Campaign object. If you want the 18 character ID, just make the formula: CASESAFEID(Id)

All Answers

Laxman RaoLaxman Rao

might have created a formula field which will take the record id of the campaign.

Go to the fields of campaign object and check the field expression of the field which is populating the id.

phiberoptikphiberoptik

Create a formula field (Text output) on the Campaign object. Make the formula: Id

 

This field will now display the 15 character ID for the Campaign object. If you want the 18 character ID, just make the formula: CASESAFEID(Id)

This was selected as the best answer
jgreene.ax1178jgreene.ax1178

YES!!!

 

Thanks so much - that works perfectly!

 

Man, that was easy:)

 

Thanks once again!

 

-JG