• abi dzar
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 11
    Replies

Hi guys,

 

How can I expose this so that it can be called as webservice.

I tried using webservice, but how can I return string in webservice function. 

 

 String keyword = 'something';
        String query = 'FIND \'' + keyword + '\' RETURNING KnowledgeArticleVersion (title, Summary, UrlName WHERE PublishStatus=\'online\')';
        List<List<SObject>> searchList = search.query(query);
        KnowledgeArticleVersion [] matchedArticle = ((List<KnowledgeArticleVersion>)searchList[0]);
        String XMLResult = '<?xml version="1.0" encoding="UTF-8" ?>';
        XMLResult +='<articles>';
        for( integer i =0; i< matchedArticle.size(); i++){
               XMLResult +='<article>';
               XMLResult +='<title>' + matchedArticle[i].Title + '</title>';
               XMLResult +='<summary>' + matchedArticle[i].Summary + '</summary>';
               XMLResult +='<url>' + matchedArticle[i].UrlName + '</url>';
               XMLResult +='</article>';           
        }       
        XMLResult +='</articles>';
      

 

regards,

Abi Dzar

Hi experts,

 

I'm trying to use Knowledge article in Salesforce which I'm using Developer account.

 

I cant find any step by step on how to enable the article tab.

 

P/s: In my Feature Licenses: Knowledge User is Active, 

 

Regards,

Abi Dzar

I'm trying to make a Custom Visual Force page that will specifically open a fixed case without passing the Case Id in the URL.

 

Can I do that?

 

Kind Regards,

Abi Dzar

Hi guys, I really needs help, I want to add the data to my custom object. but, it does not work? I search the answer all over the community. Can anyone help me? I tried using Account as standard controller and it works and when I try my own custom object, it does not work. Do I missed something here?

 

 

<apex:page standardController="GetSatisfaction_Properties__c"  >
    <apex:form >
        <apex:inputField value="{!GetSatisfaction_Properties__c.Community_name__c}" />
        <apex:inputField value="{!GetSatisfaction_Properties__c.Username__c}"/>
        <apex:inputField value="{!GetSatisfaction_Properties__c.Password__c}"/>                    
    </apex:form>            
</apex:page>

 

 

Regards,

Abi Dzar

Hi guys, I really needs help, I want to add the data to my custom object. but, it does not work? I search the answer all over the community. Can anyone help me? I tried using Account as standard controller and it works and when I try my own custom object, it does not work. Do I missed something here?

 

 

<apex:page standardController="GetSatisfaction_Properties__c"  >
    <apex:form >
        <apex:inputField value="{!GetSatisfaction_Properties__c.Community_name__c}" />
        <apex:inputField value="{!GetSatisfaction_Properties__c.Username__c}"/>
        <apex:inputField value="{!GetSatisfaction_Properties__c.Password__c}"/>                    
    </apex:form>            
</apex:page>

 

 

Regards,

Abi Dzar

Hi guys,

 

How can I expose this so that it can be called as webservice.

I tried using webservice, but how can I return string in webservice function. 

 

 String keyword = 'something';
        String query = 'FIND \'' + keyword + '\' RETURNING KnowledgeArticleVersion (title, Summary, UrlName WHERE PublishStatus=\'online\')';
        List<List<SObject>> searchList = search.query(query);
        KnowledgeArticleVersion [] matchedArticle = ((List<KnowledgeArticleVersion>)searchList[0]);
        String XMLResult = '<?xml version="1.0" encoding="UTF-8" ?>';
        XMLResult +='<articles>';
        for( integer i =0; i< matchedArticle.size(); i++){
               XMLResult +='<article>';
               XMLResult +='<title>' + matchedArticle[i].Title + '</title>';
               XMLResult +='<summary>' + matchedArticle[i].Summary + '</summary>';
               XMLResult +='<url>' + matchedArticle[i].UrlName + '</url>';
               XMLResult +='</article>';           
        }       
        XMLResult +='</articles>';
      

 

regards,

Abi Dzar

Hi experts,

 

I'm trying to use Knowledge article in Salesforce which I'm using Developer account.

 

I cant find any step by step on how to enable the article tab.

 

P/s: In my Feature Licenses: Knowledge User is Active, 

 

Regards,

Abi Dzar

I'm trying to make a Custom Visual Force page that will specifically open a fixed case without passing the Case Id in the URL.

 

Can I do that?

 

Kind Regards,

Abi Dzar

Hi guys, I really needs help, I want to add the data to my custom object. but, it does not work? I search the answer all over the community. Can anyone help me? I tried using Account as standard controller and it works and when I try my own custom object, it does not work. Do I missed something here?

 

 

<apex:page standardController="GetSatisfaction_Properties__c"  >
    <apex:form >
        <apex:inputField value="{!GetSatisfaction_Properties__c.Community_name__c}" />
        <apex:inputField value="{!GetSatisfaction_Properties__c.Username__c}"/>
        <apex:inputField value="{!GetSatisfaction_Properties__c.Password__c}"/>                    
    </apex:form>            
</apex:page>

 

 

Regards,

Abi Dzar