You need to sign in to do that
Don't have an account?
JavierPonce
Hyperlink to visualforce page changes id to lowercase
Hi,
Im trying to open a VF Page from a formula hyperlink field as follows:
And i always get the following error:
Id value ka426000000000p is not valid for the XXXXX__kav standard controller
I have noticed that if I set the Id manually on the url bar to kA426000000000p ('A' in upper case) it works fine, as is the Id value when you go into the standard record view.
Any idea about what could be causing this?
Thank you very much!
Im trying to open a VF Page from a formula hyperlink field as follows:
HYPERLINK('/apex/PDFView?id=' + Id , 'View PDF')I have also tried:
HYPERLINK('/apex/PDFView?id=' + CASESAFEID(id) , 'View PDF')
And i always get the following error:
Id value ka426000000000p is not valid for the XXXXX__kav standard controller
I have noticed that if I set the Id manually on the url bar to kA426000000000p ('A' in upper case) it works fine, as is the Id value when you go into the standard record view.
Any idea about what could be causing this?
Thank you very much!
Id is aslways case sensitive.
The second option is not valid for a formula field.
Thanks for your comments anyway.
Use below query to find the mapping of salesforce knowledge Article id from ka and kA.
SELECT Id,KnowledgeArticleId,Language,Type__c ,PublishStatus,Summary,Link__c,Embedded_Video__c,
SystemModstamp,Title,ArticleNumber, CreatedDate,
OwnerId,VersionNumber,FirstPublishedDate,Attachment__Name__s
FROM User_Documents__kav
WHERE Id ='ka73B0000004C9IQAU'