-
ChatterFeed
-
0Best Answers
-
1Likes Received
-
0Likes Given
-
4Questions
-
11Replies
How can I expose this code as webservice?
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
-
- abi dzar
- November 16, 2010
- Like
- 0
- Continue reading or reply
How to use Knowledge article?
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
-
- abi dzar
- November 10, 2010
- Like
- 0
- Continue reading or reply
Show Specific Record in Visual Force without passing Id in URL
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
-
- abi dzar
- October 12, 2010
- Like
- 0
- Continue reading or reply
Custom Object insert in Visualforce.
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
-
- abi dzar
- October 07, 2010
- Like
- 1
- Continue reading or reply
Custom Object insert in Visualforce.
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
-
- abi dzar
- October 07, 2010
- Like
- 1
- Continue reading or reply
How can I expose this code as webservice?
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
- abi dzar
- November 16, 2010
- Like
- 0
- Continue reading or reply
How to use Knowledge article?
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
- abi dzar
- November 10, 2010
- Like
- 0
- Continue reading or reply
Show Specific Record in Visual Force without passing Id in URL
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
- abi dzar
- October 12, 2010
- Like
- 0
- Continue reading or reply
Custom Object insert in Visualforce.
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
- abi dzar
- October 07, 2010
- Like
- 1
- Continue reading or reply