Abhinav Bhatia
IndividualForum Replies Created
-
Abhinav
MemberMay 27, 2016 at 1:17 pm in reply to: How to create a post with a poll in Chatter via Apex?Hi Piyush,
postFeedElement(communityId, feedElement, feedElementFileUpload)
The ConnectApiHelper class currently doesn't support taking a ConnectApi.FeedElementCapabilitiesInput as a parameter when posting a feed item. You'd need that in order to use a ConnectApi.PollCapabilityInput. You'll need to either avoid using ConnectApiHelper, or modify your copy of it so that it takes in the additional parameter.
-
Abhinav
MemberMay 27, 2016 at 1:16 pm in reply to: Can I perform DML operations from Visualforce email templates?Hi Ravi,
I don't think you can use DML.
-
Abhinav
MemberMay 27, 2016 at 1:14 pm in reply to: Is it possible to create a reusable inline Salesforce Visualforce page?Hi Ravi,
You don't have to create a separate apex controller for each VF page, but you do need 1 VF page per standard controller you need to "extend".
What we generally do is that create 1 controller class that uses generic SObject methods to manipulate its data. That controller has a method, getCtl(), which returns itself. It generify the VF content into a custom component which takes the single controller class as an argument. Then I create multiple VF pages with just a one-liner to that component, for e.g
<apex:page showHeader=”false” sidebar=”false” standardController=”Account” extensions=”MyGenericController”> <c:MyCommonVfComponent ctl=”{!ctl}” /> </apex:page>
-
Abhinav
MemberMay 26, 2016 at 2:29 pm in reply to: How to send email using javascript on Salesforce Visualforce Page?Yes you can do with Salesforce AJAX Toolkit. You can write something like this in your JavaScript. You can update the SendMail function with all the required parameters and call from the onclick action of the button.
<apex:page> <script type=”text/javascript”> var __sfdcSessionId = ‘{!GETSESSIONID()}’; </script> <script src=”../../soap/ajax/34.0/connection.js” type=”text/javascript”></script> <script type=”text/javascript”> function SendMail() { try { sforce.connection.sessionId = “{!$Api.Session_ID}”; var message = new sforce.SingleEmailMessage(); message.replyTo = “[email protected]”; message.targetObjectId = “xxxxxxxxxxxxxxxxx”; message.templateId = “xxxxxxxxxxxxxxxxx”; message.saveAsActivity = false; message.plainTextBody = “this test went through ajax”; var result = sforce.connection.sendEmail([message]); if(result[0].success == ‘true’) { alert(“Mail sent successfully”); } else { alert(“I had a booboo.”); } }catch(e) { alert(“Error Occurred: nn” + (e.message||e)); } } </script> </apex:page>
-
Abhinav
MemberMay 26, 2016 at 10:53 am in reply to: Many to Many, 1 to Many, Many to 1 Relation in Custom fieldsHello Nitish,
You can use the junction object. It is used for many to many relationship.
-
Abhinav
MemberApril 30, 2016 at 2:28 pm in reply to: "Object cannot be Deleted" error while deleting a recordHello,
This may be because the object must be used somewhere in you apex component. -
Abhinav
MemberApril 30, 2016 at 2:15 pm in reply to: How to create Radar chart using Lightning Component in Salesforce?Hello
You have to use the chart.js library for creating the Radar Chart. -
Abhinav
MemberApril 30, 2016 at 2:10 pm in reply to: Is it mandatory requirement to have namespace to create Lightning components?Currently yes, But Salesforce is planning to remove this dependency so that default namespace can be used. As currently namespace is mandatory, we can create lightning components only in development organization but can be deployed on any salesforce instance where Apex is enabled.
-
Hello,
1. In Lightning App (.app URL)
1. In Salesforce1 app as a Tab
1. As a lightning extension -
Abhinav
MemberApril 30, 2016 at 11:38 am in reply to: Can anyone explain how to use regular expression to extract data.?Hello Ravi,
Please refer here. Hope this helps.
1. http://salesforce.stackexchange.com/questions/185/how-do-i-use-regular-expressions-in-apex-to-extract-data-from-a-string
2. https://success.salesforce.com/answers?id=90630000000gpbrAAA -
Abhinav
MemberApril 30, 2016 at 11:36 am in reply to: At what point should one switch customizations over to a managed package?Hello Ravi,
When you have to make your app public or you want to release it on AppExchange then you can switch to managed package. Because in managed package your code is not visible to the end user.
-
Abhinav
MemberApril 30, 2016 at 11:34 am in reply to: How to make a web service callout in Salesforce?If you are using the javascript button then you have to make that method webservice then it will allow you to make the Api callout to third party.
-
Abhinav
MemberApril 30, 2016 at 11:32 am in reply to: Which is better Heroku connect tool or custom integration?Hello Ravi,
According to me automated tool(Heroku Connect) is better. Hope this helps.
-
Abhinav
MemberApril 30, 2016 at 11:31 am in reply to: How to disable hangout link from the google calendar events using REST API call?Hello,
I think its not possible using rest Api call.
-
Abhinav
MemberApril 30, 2016 at 11:17 am in reply to: Is it possible to use Customer Portal Authentication in Site.com?Yes you can. Please refer here :- http://salesforce.stackexchange.com/questions/82/is-it-possible-to-use-customer-portal-authentication-in-site-com-aka-siteforce
-
Abhinav
MemberApril 30, 2016 at 11:16 am in reply to: Is it possible to use Customer Portal Authentication in Site.com?Hello Ravi,
Please refer to the link below. This will help you in understanding your requirement.
https://developer.salesforce.com/page/Authenticating_Users_on_Force.com_Sites
-
Abhinav
MemberApril 30, 2016 at 11:14 am in reply to: How to create test data for QuoteLineItem in test class?Hello Ravi,
QuoteLineItem test data is created similar to OpportunityLineItem. As it is done for Opportunity and its OpportunityLineItem similarly it works for Quote and QuoteLineItem.
-
Hello,
Yes for upsert operation you must have and external id field on the basis of that external field record either gets inserted or updated.
-
Abhinav
MemberApril 30, 2016 at 10:58 am in reply to: What is the difference between Customer, Employee and Partner communities?Hello,
Please refer the link below. This will help you in understanding more.
1. https://success.salesforce.com/answers?id=90630000000hSbvAAE
2. http://salesforce.stackexchange.com/questions/14539/how-are-sites-partner-portal-customer-portal-and-communities-different-from-ea -
Abhinav
MemberApril 30, 2016 at 10:25 am in reply to: How to display a message when the trigger finishes?Hello Ravi,
You can't display an alert from a trigger. Trigger doesn't have any direct access to the user interface.
-
Abhinav
MemberApril 30, 2016 at 10:08 am in reply to: How many communities can we create in Salesforce?It depend upon the edition which you are using. Because for every salesforce edition there is different limitation. And even there is some soft limit to which you extent you limitation. But this can only be possible i you will contact salesforce. Because salesforce can only tell that till what limit they can increase. Or you can log a case from your salesforce org to reach out to salesforce.
-
Abhinav
MemberApril 30, 2016 at 10:01 am in reply to: What are member based, login based licenses in Salesforce?Can you please elaborate your question this will help in understanding the question more.
-
Abhinav
MemberApril 30, 2016 at 10:00 am in reply to: How can we build an ecommerce website on Salesforce platform?Yes, you can built that you can use the sites.com feature of salesforce or can use any portal which will be same as that of the ecommerce site. You can change there UI front end according to your requirement. And in the back-end you can save the records or products in salesforce.
-
Abhinav
MemberApril 30, 2016 at 9:58 am in reply to: What is the difference between individual and zipped static resources?Individual static resource will contain only one single jquery file but zip static resource will contain many jquery files. Zip help us to hold as many as files to store inside that.
-
Abhinav
MemberApril 30, 2016 at 7:39 am in reply to: What is the difference between Chatter and Community Cloud in Salesforce?Hi
Please refer here below. Hope this will help.