Abhinav Bhatia
IndividualForum Replies Created
-
Abhinav
MemberApril 21, 2016 at 2:14 pm in reply to: Workbench to delete records (Custom Object) from Salesforce OrgYou can easily accomplish this with Batch Apex. It is very easy and efficient.
-
Abhinav
MemberApril 21, 2016 at 2:09 pm in reply to: How can I view Partner object in Salesforce Lightning?Please refer this link-http://help.salesforce.com/apex/HTViewHelpDoc?id=partners_edit.htm. Hope this will help.
-
Abhinav
MemberApril 21, 2016 at 2:06 pm in reply to: How to add conditions in a Batch class when there are infinite number of clauses?Please, can you refer your code where you are stuck. It will help us to understand your problem.
-
Abhinav
MemberApril 21, 2016 at 2:04 pm in reply to: Is there any way to specify the directory for a file to download in an APEX class?It simply can't be done.
-
Abhinav
MemberApril 21, 2016 at 1:53 pm in reply to: Page view state error while showing large data on Visualforce pageYes, pagination works some extent of data.
-
Hi, please refer to the link below. Hope this will help.
-
Abhinav
MemberApril 21, 2016 at 1:49 pm in reply to: How can I export Lightning Experience Navigation Menus config?Hi, you can export Lightning Experience Components using Eclipse IDE.
Make sure that you are using apex API version 33.0
1. Open Eclipse package.xml
2. Use following package.xml code<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>*</members>
<name>AuraDefinitionBundle</name>
</types>
<version>33.0</version>
</Package>
3. Right click on your Project Force.com -> Refresh from server.
-
Abhinav
MemberApril 21, 2016 at 1:46 pm in reply to: How to embed a report using Visualforce on the Home Tab?Hi try to create an HTML area home page component with a little javascript that redirects from the home page to the visualforce page:
<script language="JavaScript">
window.location.replace("/apex/YourVfPageName");
<script> -
Abhinav
MemberApril 21, 2016 at 1:42 pm in reply to: Can we upload and run Java project from Salesforce?Not exactly upload but you can run your JAVA app within Canvas in Salesforce.
-
Abhinav
MemberApril 21, 2016 at 1:40 pm in reply to: Can I do Salesforce App distribution without AppExchange?Yes - it is called managed package - and you can distribute an install link to your small group of users.
-
Use the standard URL without your custom domain like this.
https://cs5.salesforce.com/0Ab
This will open upon the Lightning Components Page. In there set the flag on "Enable Debug Mode". Once this is set then try opening your process builder.
-
Abhinav
MemberApril 14, 2016 at 9:25 am in reply to: Page view state error while showing large data on Visualforce pageYou can use the pagination in your visualforce page. Through pagination you can fetch the records step by step.
-
Abhinav
MemberApril 14, 2016 at 8:51 am in reply to: Want to merge two organisations with a third party applicationRecord type would be helpful because on the basis of record type you can differentiate the 2 salesforce Org.
-
Abhinav
MemberApril 14, 2016 at 8:37 am in reply to: Can I Insert a Static Resource using Apex Code in Salesforce?It is also there in Tooling WSDL :-
Please see the class below-
<xsd:complexType name="StaticResource">
<xsd:complexContent>
<xsd:extension base="tns:sObject">
<xsd:sequence>
<xsd:element name="Body" minOccurs="0" type="xsd:base64Binary" nillable="true"/>
<xsd:element name="BodyLength" minOccurs="0" type="xsd:int" nillable="true"/>
<xsd:element name="CacheControl" minOccurs="0" type="xsd:string" nillable="true"/>
<xsd:element name="ContentType" minOccurs="0" type="xsd:string" nillable="true"/>
<xsd:element name="CreatedBy" minOccurs="0" type="tns:User" nillable="true"/>
<xsd:element name="CreatedById" minOccurs="0" type="tns:ID" nillable="true"/>
<xsd:element name="CreatedDate" minOccurs="0" type="xsd:dateTime" nillable="true"/>
<xsd:element name="Description" minOccurs="0" type="xsd:string" nillable="true"/>
<xsd:element name="LastModifiedBy" minOccurs="0" type="tns:User" nillable="true"/>
<xsd:element name="LastModifiedById" minOccurs="0" type="tns:ID" nillable="true"/>
<xsd:element name="LastModifiedDate" minOccurs="0" type="xsd:dateTime" nillable="true"/>
<xsd:element name="Name" minOccurs="0" type="xsd:string" nillable="true"/>
<xsd:element name="NamespacePrefix" minOccurs="0" type="xsd:string" nillable="true"/>
<xsd:element name="SystemModstamp" minOccurs="0" type="xsd:dateTime" nillable="true"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType> -
Abhinav
MemberApril 14, 2016 at 8:35 am in reply to: Can I Insert a Static Resource using Apex Code in Salesforce?But looks like we can insert the static resource through API. Because static resource is present in the metadata WSDL. So, i guess we can insert from API.
Below are 2 static resources classes :-
<xsd:complexType name="StaticResource">
<xsd:complexContent>
<xsd:extension base="tns:MetadataWithContent">
<xsd:sequence>
<xsd:element name="cacheControl" type="tns:StaticResourceCacheControl"/>
<xsd:element name="contentType" type="xsd:string"/>
<xsd:element name="description" minOccurs="0" type="xsd:string"/>
</xsd:sequence>
</xsd:extension></xsd:complexContent>
</xsd:complexType>
<xsd:simpleType name="StaticResourceCacheControl">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Private"/>
<xsd:enumeration value="Public"/>
</xsd:restriction>
</xsd:simpleType> -
Abhinav
MemberApril 14, 2016 at 8:24 am in reply to: How to use Switch Clause in Apex as it is used in Java or C?Apex does not support switch case statements.Use if else if .statements for this. However, Yes formula fields support case syntax but Apex doesn't.
-
I've used closures to do things like:
a = (function () {
var privatefunction = function () {
alert('hello');
}return {
publicfunction : function () {
privatefunction();
}
}
})();As you can see there, a is now an object, with a method publicfunction ( a.publicfunction() ) which calls privatefunction, which only exists inside the closure. You can NOT call privatefunction directly (i.e. a.privatefunction() ), just publicfunction().
Its a minimal example but maybe you can see uses to it? We used this to enforce public/private methods.
-
Abhinav
MemberApril 14, 2016 at 8:08 am in reply to: When developing a Chrome Extension, how to determine if it is running for the first time?You can listen to the runtime.onInstalled event.
Please refer here https://developer.chrome.com/extensions/faq#faq-lifecycle-events for more information.
-
Abhinav
MemberApril 14, 2016 at 8:06 am in reply to: How can I use Custom Pagination in Salesforce? -
Yes, sounds great.
-
Abhinav
MemberApril 14, 2016 at 7:59 am in reply to: How to stop a trigger of managed package from failing as it is being envoked by Salesforce Batch Apex?Hello Rachit,
What is the batch size you are using in your batch class?
-
Yes, right Custom buttons with OnClick Javascript will not be available in Salesforce1, and it is expected functionallity.
-
Abhinav
MemberApril 14, 2016 at 7:13 am in reply to: Asynchronous method call to fetch data at particular time intervalHello Ravi,
Please use actionPoller in this case on the visualforce page. Using the actionPoller it will not call the method again.
I hope this will work.
-
Abhinav
MemberApril 13, 2016 at 1:16 pm in reply to: How to validate Subdomain in JavaScript custom button?Hello, you can use the following function to check the above subdomain on the custom button :-
function validSubdomain() {
var validCases = /[^a-zA-Z0-9\-]/;
var valueOfSubDomain = 'mySubdomain'
if(validCases.test(valueOfSubDomain)) {
alert("invalid Subdomain");
}
else{
alert("valid Subdomain");
}
}Hope this will work.
-
Abhinav
MemberApril 11, 2016 at 12:38 pm in reply to: Enable Quotes and Order using Post install ScriptThe above code is to enable the quote in the Org. But we cannot get the SessionId in the post install script. Please see the link below :- https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/apex_post_install_script.htm#apex_post_install_script