We’re rewarding the question askers & reputations are being recalculated! Read more.
26

I was able to get the values using Describe methods, as discussed in this post: how to get a picklist all values in apex controller From this, I was able to figure out the list, which I will paste here if anyone else is interested. application/html application/java-archive application/javascript application/msword application/octet-stream application/...


18

This is because for your Article Type object the Topics are disabled .Please follow below screeshots to enable it. Step 1 Step 2 Click on Enable Topics and you should be good .I reproduced your issue in my instance and this seemed to work fine once I enabled Topics for knowledge article type .


8

Please note that SObject and Object are very different types. And adding [] at the end of your type definition makes it a List, again a huge difference. The text of your post indicates you meant Object, so I will answer as if that's the case. Regardless, the key here is that if you have a few different types you want to guarantee all implement a specific ...


7

One way to do it would be to use the @ReadOnly attribute on the Visualforce page. This allows you to query up to 1 million rows. The problem with using ReadOnly is that you can't do any DML in the same context. If you do, you get a System.LimitException: Too many DML statements. You can separate it though. Have one page and controller that creates the lists,...


7

You can expose the image through a site. You only need to change the instance url by the site home page. Also, you need to establish the article as public. Site Profile Changes: Set field where image is placed as visible. Set Read permission to object where image is placed. Go to "Category Group Visibility Settings" section and set visibility to "All ...


7

Click on Setup | Customize | Knowledge | Settings | Check "Allow users to add external multimedia content to HTML in the standard editor" to 'True' - you can then use the WYSIWYG editor on Rich Text fields to "Embed Media" into a Knowledge Article. This allows pasting the iframe code from YouTube, Vimeo, Dailymotion and a number of other video sites.


7

From Articles The article record is the parent container of all versions of an article, whatever the publishing status (draft, published, archived) and the language. While KnowledgeArticle and KnowledgeArticleVersion represent any article in the Knowledge Base, __ka and __kav are the concrete representation of respectively KnowledgeArticle (“__ka” suffix) ...


7

If you want to take the API Name of a field and get its label, use the getLabel method on DescribeFieldResult. SObjectField field = Frequently_Asked_Question__kav.ArticleType; DescribeFieldResult describe = field.getDescribe(); system.debug(describe.getLabel()); // e.g. 'Article Type' If you want to take the API Name of an SObject and get its label, use ...


6

You might be able to use the OAuth accessToken in a cookie with the HTTP GET request to servlet/rtaImage depending on the scope you requested when getting it. I believe you will need to use the full or web scopes to then make web requests or use frontdoor.jsp. See: Scope Parameter Values Use OAuth 2.0 Tokens to login to Salesforce.com The cookie will ...


6

I know this is an old question, but I ran into the same problem today, and solved it like this: Select Id, ArticleNumber, Title from ArticleType__kav where Id not in (Select ParentId from ArticleType__DataCategorySelection) and PublishStatus = 'Online' You should replace ArticleType__kav and ArticleType__DataCategorySelection based on the name of your ...


6

First to start with: The only benefit of Solution over Knowledge Base is: Solution is free!! Now how knowledge beat solution big time or can say why salesforce is making more money by introducing this: Unlike Solutions, using the knowledge base requires Knowledge feature licenses, which come at an additional cost. Unlike Solutions, Knowledge comes with ...


6

Here's a simple drag-drop example written in pure Visualforce: <apex:page controller="DragDrop"> <script> var dragStartId; function cancel(event) { event.preventDefault(); } function dragstart(event) { dragStartId = event.target.dataset.rowid; } function drop(event) { reorderitems(dragStartId, event....


5

We've had one or two customers want to do this before, and it can be quite a struggle to get Salesforce to agree to the licensing. The customer portal is intended for customers and the view is that if your employees need access to Salesforce then they need the appropriate (full) user license. It is possible to get this signed off, but your circumstances ...


5

You are navigating to wrong side: Go to Customize -> Knowledge -> Article Types | Click on Article Type Name You should be on a screen like this: In field section you can create new Fields.


4

I have a good news, Topics on Article are GA with Spring'14 release. See the "Assign Topics to Articles" section of the release notes: https://help.salesforce.com/help/pdfs/en/salesforce_spring14_release_notes.pdf


4

Are you looking for a particular keyword in your custom field ? In that case if you search for a keyword (e.g. : 'test') you could use something like : FIND {test} RETURNING Article_Type1__kav(Id WHERE PublishStatus='Online' AND Language='en_US'), Article_Type2__kav(Id WHERE PublishStatus='Online' AND Language='en_US') This search would include ...


4

I found how to do it. As @scyforce said I need to use the key prefix. Link on Salesforce Community Code from that page: // Create DescribeMap private void createDescribeMap() { Map<String, Schema.SObjectType> gd = Schema.getGlobalDescribe(); Set<String> keySet = gd.keySet(); for (String key : keySet) { ...


4

Here are few use cases 1)Lets say you have call center app with agents working to resolve customer problems ,there may be already documentation based on previous solved cases and that would be help to solve the problems for cases on similar lines . 2)Say that you have a sales app and your reps need to know and learn about products so these ...


4

I will take a stab at a non technical way to think about it. Article types are used to define different kinds of articles, from a simple FAQ to a complex procedure including the fields available and layouts to use per channel the article might be viewed in. As you rightly noted you can control visibility of article types at a user profile level or via ...


4

If you have a look at the entity relationship diagram (ERD) which illustrates relationships between the Salesforce Knowledge objects, you will see that the Vote object is related with the KnowledgeArticle. So to create a rating with Apex, you will simply have to create a new record of VOTE sObject and set the parentId as the KnowledgeArticleId and the Type ...


4

This method creates draft articles from online articles, so this happens because one or more of those online article already has a draft article so you cannot create another draft article(you cannot have 2 drafts for a single article at the same time). This should work for you for(FAQ__kav k : [SELECT Id, ArticleNumber, KnowledgeArticleId ...


4

The method KbManagement.PublishingService.publishArticle(articleId, true) needs a KnowledgeArticle Id. What you are trying to do is giving the KnowledgeArticleVersion Id to the method. You can see the difference in the suffix: kav for KnowledgeArticleVersion (Video_Article__kav) ka for Knowledge Article Instead, try the following code: String articleId = ...


4

A way to fetch what other languages it has been translated to is to filter on the knowledgearticleid or Id in your soql. As per the SOAP API Developer Guide documentation on KnowledgeArticleVersion: Always filter on a single value of Language. However, in SOQL, you can filter on more than one Language if there is a filter on Id or KnowledgeArticleId. ...


4

Apex doesn't really have much in the way of reflection or introspection. While we do have the Type class (which has the forName() method), you still need to know the name of the object at compile time to be able to really make use of it. forName() takes a string, and you can call newInstance() to get an instance of the type that was returned by forName(), ...


3

This will work for you: DescribeSObjectResult objType = KnowledgeArticleVersion.getSObjectType().getDescribe(); Map<String, SObjectField> fields = objType.fields.getMap(); Set<String> fieldSet = fields.keySet(); for(String s:fieldSet) { SObjectField fieldToken = fields.get(s); DescribeFieldResult selectedField = fieldToken.getDescribe();...


3

I've implemented a custom object with a text field to store the Id of a related OpportunityLineItem which you can't specify as the target for a lookup. The implementation wasn't terribly difficult and we haven't run into any issues. Pros You can link to objects that don't support lookups Cons You can't traverse the relationship in a soql query (i.e. ...


3

Salesforce provides an excellent array of options for this starting from their excellent Platform Mobile Services site, where depending on your architecture preferences for your mobile client application you can choose an appropriate of SDK type. As you've pointed out, either way the Salesforce REST API is key aspect. These SDK's provide access to this API ...


3

I don't have Knowledge available in my org but I suspect the ratings look like star icons on bottom of http://blogforce9dev-developer-edition.ap1.force.com/salesforceicons ? If that's the case you can simply take <img src="/img/samples/stars_300.gif" /> and convert it to <img src="/img/samples/stars_{!article.KnowledgeArticleVoteStat}00.gif" />. ...


3

5 years later and this data is now exposed on the KnowledgeArticleVersion table itself. https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_knowledgearticleversion.htm ArticleType Type: string Properties: Defaulted on create,Filter Description: Indicates the API Name of the article type. The ...


3

Here's some more information to expand upon Daniel's findings: Yes, you can retrieve article content from salesforce via the REST API but the method is not very straightforward. This is related to the fact that all articles are versioned. This means that the article ID is separate from the ID of the currently published version of that article (master ID). ...


Only top voted, non community-wiki answers of a minimum length are eligible