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
dho1dho1 

Issue with mapping custom fields from case to knowledge article

I'm overriding the create new article from case feature with custom fields per the following article: https://help.salesforce.com/HTViewHelpDoc?id=knowledge_caseclose_apex.htm&language=en_US

 

However, the article did not mention how to differentitae the article type in the class.  I tried to reference the article field in the class but it returned a null:

 

string ArticleType = (string)article.get('ArticleType')

 

Can you shed some light on how I can do this?

 

TIA

Ashish_SFDCAshish_SFDC

Hi Tia, 


See the article and example belowto reference the Article Type, 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_pages_knowledgearticleversionstandardcontroller.htm

Also see the discussion, 

http://salesforce.stackexchange.com/questions/918/how-to-find-knowledge-article-type


Regards,

Ashish