Himanshu Jasuja
IndividualForum Replies Created
-
Himanshu
MemberAugust 16, 2016 at 8:34 am in reply to: How can I make a pdf from visualforce page in Salesforce?Hi Pranav,
use this tag to convert the page into pdf.
-
Himanshu
MemberAugust 16, 2016 at 8:20 am in reply to: I want to generate a random string,which contain alphabet and number both,please help to write a code.Hi Tanu,
Use the below code:-
Integer len = 6;
Blob blobKey = crypto.generateAesKey(128);
String key = EncodingUtil.convertToHex(blobKey);
String pwd = key.substring(0,len);
System.debug('************ '+pwd);Hope this helps you.
-
Himanshu
MemberAugust 16, 2016 at 8:11 am in reply to: Where to use ISBLANK and ISNULL, make it clear please?Hi Tanu,
ISBLANK has the same functionality as ISNULL, but also supports text fields.ISNULL mainly use for check the numeric values.
-
Himanshu
MemberAugust 11, 2016 at 5:13 am in reply to: Can we generate a VF page as PDF format and downlaod it on local system?Hi Mohit,
You can use 'renderAs="pdf"' tag in Visualforce Page.
-
Hi Tanu,
String EmailFiels = '';
for(Schema.SObjectField field : ObjectName.getSobjectType().getDescribe().fields.getMap().values())
{
if(Schema.DisplayType.EMAIL == field.getDescribe().getType())
EmailFiels += ', ' + field.getDescribe().getName();}
EmailFiels = EmailFiels.removeStart(',');
you can get all the email type field of any object using the describe call. -
Himanshu
MemberAugust 9, 2016 at 2:06 pm in reply to: How can I append entire fields at once in query? Like 'SELECT * FROM ACCOUNT' in SQL .Hi Pranav,
you can use the eclipse for the entire fields to make the query.
-
Himanshu
MemberAugust 9, 2016 at 1:20 pm in reply to: How would we know that the process builder is executing our process in the way we want?Hi Mohit,
You can test the functionality of process builder for different scenarios(Insert/update/delete) to verify/check the functionality.
-
Himanshu
MemberAugust 9, 2016 at 12:24 pm in reply to: How To add a link on standard contact detail page ?Hi Piyush,
you can use the Hyperlink() function in the formula and have it generate the URL to that Visualforce page.
Hope this helps you.
-
Himanshu
MemberAugust 5, 2016 at 1:32 pm in reply to: Is it possible to run a SOQL Query and get a MAP returned?Hi Tanu,You can use the below query
Map m = new Map([SELECT Id, Name FROM Account]);
-
Himanshu
MemberAugust 5, 2016 at 1:29 pm in reply to: How to change the page block title font size in vf page?Hi Pranav,
Use css to style it as needed.It will change the font size.
Example:-
Add in style - font-size: %; -
Himanshu
MemberAugust 5, 2016 at 1:23 pm in reply to: How to apply EDIT/DELETE link to each record in pagetable?Hi Tanu,
For Example - We are taking Account object
Edit
Delete
Hope this helps you.
-
Himanshu
MemberAugust 5, 2016 at 7:45 am in reply to: How can I add send an Email functionality button for custom object as it is available for Account/contact/opportunity?Hi Pranav,
Create a visualforce button that updates a field on the record and fires off a workflow email alert.
You can choose the email template that email workflow alert fires off of.Hope this helps you.
-
Himanshu
MemberAugust 5, 2016 at 7:32 am in reply to: What are the standard validations in Salesforce?Hi Pranav,
The ones provided by Salesforce are standard validation rules - like data type validation for all the fields (email validation for email fields and similar for currency, number type fields etc); universally required; unique fields.
-
Himanshu
MemberAugust 5, 2016 at 7:18 am in reply to: How to get download link/url from attachment file in salesforce?Hi Tanu,
Download Now!
-
Hi Tanu,
Refer this link :- https://andyinthecloud.com/2013/02/02/spring-cleaning-apex-code-with-the-tooling-api/
In this link we have some tools that helps to find the unused methods in apex.
Hope this helps you.
-
Himanshu
MemberAugust 5, 2016 at 7:06 am in reply to: How can we control trigger to fire only for some users which share same profile?Hi Tanu,
you can use UserInfo.getProfileId() method will give you the logged in user profile. Accordingly, you can implement conditions in your trigger code
-
Himanshu
MemberAugust 5, 2016 at 7:03 am in reply to: How to combine the blob value of multiple blob in Salesforce Apex Code?Hi Mohit,
Blob bb1 = Blob.valueOf(‘s1’); Blob bb2 = Blob.valueOf(‘s2’); Blob bb3 = Blob.valueOf(‘s3’); String combinedDataAsHex = EncodingUtil.convertToHex(bb1) + EncodingUtil.convertToHex(bb2) + EncodingUtil.convertToHex(bb3); Blob combinedDataAsBlob = EncodingUtil.convertFromHex(combinedDataAsHex);
-
Himanshu
MemberAugust 5, 2016 at 6:56 am in reply to: Can we have the lookup on the email templates and how?Hi Mohit,
you cannot have a Lookup field in either a standard object or custom object that points to an email template.
Refer this linki:- https://success.salesforce.com/ideaview?id=08730000000HQ9QAAW
-
Himanshu
MemberAugust 4, 2016 at 7:27 am in reply to: Can we dynamically assign value to apex:repeat in VisualForce Page?Hi Mohit,
<apex:repeat value="{!listItems}" var="item">
<tr>
<td>
{!item[attribute]}
</td>
</tr>
</apex:repeat -
Himanshu
MemberAugust 4, 2016 at 7:23 am in reply to: How to create the JavaScript Tree in Salesforce?Hi Mohit,
Refer this link:- http://www.forcetree.com/2011/04/tree-view-in-visualforce-page.html
http://www.infallibletechie.com/2012/11/tree-view-in-visualforce-page.html
this links helps you to create the tree view in salesforce.
-
Himanshu
MemberAugust 4, 2016 at 7:18 am in reply to: How to get custom label value in custom link?Hi Mohit,
<apex:commandLink value="{!$Label.MyLabel1}" onclick="return confirm('{!$Label.QuestionLabel}')" >
</apex:commandLink>MyLabel1 - Label Name
-
Himanshu
MemberAugust 4, 2016 at 7:14 am in reply to: How to create NEW CASE button within Opportunity screen?Hi Tanu,
Create a "NEW CASE" custom button under the Case Object.
Enter the URL from the address bar of the page you want them to be directed to. In my case I wanted a specific record type for cases created from an opportunity.
Save the new button and then on the Opportunity layout page, go to the Case Related list section, and click on the wrench icon to edit the field - the option to add the new button is now there.
Hope this helps you.
-
Himanshu
MemberAugust 4, 2016 at 7:10 am in reply to: Can we have the same picklist data in multiple objects?Hi Tanu,
You can use the Global picklist feature to achieve this functionality.
-
Hi Tanu,
To update converted leads:
"Set Audit Fields upon Record Creation"AND"Update Records with Inactive Owners"
From Setup, enter User Interface in the Quick Find box, then select User Interface.
Select Enable "Set Audit Fields upon Record Creation" and "Update Records with Inactive Owners" User Permissions.
Save your changes.
Add the setting to your profiles. From Setup, enter Profiles in the Quick Find box, then select Profiles. Select the profile and then select Set Audit Fields upon Record Creation.
Save your changes. -
Himanshu
MemberAugust 2, 2016 at 1:29 pm in reply to: How to determine whether to use After or before in Salesforce trigger?Hi Pranav,
Before Trigger:-
I'm updating the record that's being updated/inserted - or doing something based on the record being modified
Examples: Set value of a pick list based on criteria. Send apex e-mail based on the record updated/inserted.After Trigger:-
I'm updating or creating records that are NOT being updated/inserted
Examples: Create a task of an Opportunity that's been edited, Change a look up value on a related record from the Opportunity being edited
The main thing to consider is that the Before happens before the data has been written to the server. This means you can modify the records in "Trigger.new" without having to call a separate "Update." This is ideal if you want to modify data in the records within Trigger.newAfter happens after the data has been written to the server. This is important when wanting to create additional related records (Can't create a related record until AFTER the parent has been inserted).