+ Start a Discussion
AltranAltran 

Null value of _CONFIRMATIONTOKEN

Hi,

 

We are using the function ApexPages.currentPage().getParameters().get('_CONFIRMATIONTOKEN') in a Apex class controller with no success because it is returning null value?

 

Can someone please help us why the function is returning null? It's for us an urgent issue to solve.

 

Many Thanks,

Altran

Madhan Raja MMadhan Raja M

Hi Altran,

 

ApexPages.currentPage().getParameters().get('_CONFIRMATIONTOKEN') return the value of _CONFIRMATIONTOKEN from the URL.

 

For example, if your URL looks like this: 

https://ap1.salesforce.com/00a/e?parent_id=50090000005HPuG&_CONFIRMATIONTOKEN=Altran

 

ApexPages.currentPage().getParameters().get('_CONFIRMATIONTOKEN') returns Altran.

 

Check your variable is _CONFIRMATIONTOKEN or CONFIRMATIONTOKEN.

 

If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.

 

Madhan Raja M

 

AltranAltran

Hi,

 

We are trying to build the URL using the function ApexPages.currentPage().getParameters().get('_CONFIRMATIONTOKEN') but it returns NULL.

How can we check the value of the variables _CONFIRMATIONTOKEN or CONFIRMATIONTOKEN? We are new in Force.com.

 

Many Thanks,

Altran

Madhan Raja MMadhan Raja M

Hi Altran,

 

Can you post you URL? From which you need to extract _CONFIRMATIONTOKEN.

 

Madhan Raja M

AltranAltran

Hi,

 

We don't want to extract the _CONFIRMATIONTOKEN from an URL, we want to build a URL that uses _CONFIRMATIONTOKEN.

 

We want to construct dynamicaly an URL with a structure similar to:

https://eu2.salesforce.com/p/email/template/EmailTemplateEditorUi/s?id=00Xb0000000VSAy&BrandTemplate=016b0000000H9YP&TemplateType=1&TemplateStyle=1&p=1&_CONFIRMATIONTOKEN=GOf_Bk.m3e8xw.crjscLimcgnTP8L.udbZ6FSuFq5XzlWlOWJCtKxZsl3mZPetUnMcjPqlzxJN3iZVdHvmD2MM4EqEm314AqHQmZGEv9wDJCMBi_5qlZ7lQw5F5P9O0oRatGGbW80H4LolrSi9eJ9J5OOz9iX4ucqCgQA39TjrgEPRjH&setupid=CommunicationTemplatesEmail 

 

For that, we are using the function ApexPages.currentPage().getParameters().get('_CONFIRMATIONTOKEN') in an Apex class Controller. The problem is that the function is returning null.

 

Thanks,

Altran

 

Madhan Raja MMadhan Raja M

What is the logic are you following? As per my understanding, first you are extracting the _CONFIRMATIONTOKEN from a URL and build dynamic URL?

 

Madhan Raja M

AltranAltran

 

Not actually. We are not extracting the _CONFIRMATIONTOKEN from a URL, we need to build dynamic URL and for that we need to get the value of the _CONFIRMATIONTOKEN from the system. Is this possible? How to get the _CONFIRMATIONTOKEN of an account?

 

 

Thanks,

Altran