Avnish Yadav
IndividualForum Replies Created
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:10 am in reply to: An action is scheduled to be executed in “Time Based Workflow” in Salesforce ,can it be deleted ?Hello,
You can't delete the scheduled workflow.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:08 am in reply to: How to combine the blob value of multiple blob in Salesforce Apex Code?Hello,
Blob is a sequence of Bytes and it need to be converted to string representation for concatenation. In Apex there are only two ways to convert Blob to String, either use base64Encode or convertToHex as suggested above. base64Encode will not work in this case as base64Encode appends additional information during encoding and this causes corrupted data if two base64Encoded Blob values are combined and converted back to Blob using EncodingUtil.base64Decode() method.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:07 am in reply to: What is the default namespace of Salesforce lightning component?Hello,
If your organization hasn’t set a namespace prefix, use the default namespace c when referencing Lightning components that you’ve created.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:05 am in reply to: Difference between Sandbox and Development environment in Salesforce?Hello,
A sandbox is an environment that is associated with a particular production environment, runs on the sandbox pods (CS1, CS2, etc). Developer editions are their own independent environments, and run on the products pods (NA1, NA2, etc).
Thanks. -
Avnish Yadav
MemberSeptember 30, 2018 at 4:02 am in reply to: In below code snippet in Salesforce, what is going wrong?Can you explain to me how it is working? Because I didn't get it.
Thanks in advance.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:00 am in reply to: Salesforce.com Certification Study GuideHello,
Here is the pdf link - certification.salesforce.com/SG_CertifiedDeveloper.pdf
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 3:58 am in reply to: Can you use Group by clause inside inner query in Salesforce SOQL?No we cannot use aggregate expression.
Thanks. -
Avnish Yadav
MemberSeptember 30, 2018 at 3:56 am in reply to: How many Field dependencies can I use in a Salesforce Visualforce page?At max you can use 10 Field Dependencies in Visualforce Page.
Thanks
-
Avnish Yadav
MemberSeptember 30, 2018 at 3:53 am in reply to: Will Scheduled actions be deleted from queue if we deactivate the Salesforce Workflow?Hello,
No, it will not removed.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 3:51 am in reply to: How to avoid recursive trigger calls in Salesforce?Here is the code-
Apex class:-
public Class checkRecursive { private static boolean run = true; public static boolean runOnce(){ if(run){ run=false; return true; } else{ return run; } } }
Trigger -
trigger updateTrigger on anyObject(after update) { if(checkRecursive.runOnce()) { //write your code here } }
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 3:49 am in reply to: Generate MS-Word document (.docx) using Salesforce Visualforce pagesHello,
Let`s see how we can display Salesforce data using Visual force pages.
Generation of pdf file:
Salesforce data can be displayed in Visualforce page using Controllers as per the client template format
Visualforce can be easily converted to PDF documents automatically—simply add “renderAs” attribute of <apex:page> tag
Example:
<apex:page renderAs=”pdf”>
……
Code to display data in the desired format
……
</apex:page>Generation of word file:
To generate Ms-word file, we just use contentType=”application/vnd.msword” attribute of <apex:page> tag.
Example:
<apex:page contentType=”application/vnd.msword”>
……
Code to display data in the desired format
……</apex:page>
Generation of excel file:
Now if we need to generate Excel file, we just use contentType=”application/vnd.ms-excel” attribute of <apex:page> tag .
Example:
<apex:page contentType=”application/vnd.ms-excel”>
……
Code to display data in the desired format
……</apex:page> server headers site information expiration of domains .
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 3:47 am in reply to: How can we use a lightning component in a Salesforce VisualForce Page?Lightning Components for Visualforce is based on Lightning Out, a powerful and flexible feature that lets you embed Lightning components into almost any web page. When used with Visualforce, some of the details become simpler. For example, you don’t need to deal with authentication, and you don’t need to configure a Connected App.
In other ways using Lightning Components for Visualforce is just like using Lightning Out. Refer to the Lightning Out section of this guide for additional details
-
Avnish Yadav
MemberSeptember 30, 2018 at 3:47 am in reply to: How can we use a lightning component in a Salesforce VisualForce Page?Hello,
There are three steps to add Lightning components to a Visualforce page.
- Add the Lightning Components for Visualforce JavaScript library to your Visualforce page using the <apex:includeLightning/> component.
- Create and reference a Lightning app that declares your component dependencies.
- Write a JavaScript function that creates the component on the page using $Lightning.createComponent().
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 3:44 am in reply to: Flex security cross-domain issue in SalesforceHello,
You need to use your domain's copy of the crossdomain.xml file. For example, if you're on ap1, you need to load https://ap1.salesforce.com/crossdomain.xml.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 3:43 am in reply to: How to extend a standard Salesforce lightning ui component?Hello,
Extension can be very confusing! Try adding {!v.body} to your child component so that it knows where to put the content passed in from grandchild.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 3:42 am in reply to: Can we perform mass delete reports using Salesforce Apex?Hello,
With the summer 14 release, You can delete mass reports in Salesforce. In Setup, under Data Management > Mass Delete Records, select mass Delete Reports and configure a filter to find reports that need to be deleted. Reports that you delete go into the recycle bin.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 3:37 am in reply to: When you can’t add Time Dependent Action in Workflow Rule in Salesforce?Hello,
Time-dependent actions remain in the Workflow Queue until processed or therule criteria for the Workflow Rule are evaluated as "false." If a record no longer matches the rule criteria when the rule is evaluated, Salesforce removes the time-dependent actions queued for that record.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 3:36 am in reply to: How to send Visualforce Email using a template from a Salesforce Trigger?Hello,
- First, create a Visualforce email template:Click Setup | Email | My Templates. If you have permission to edit public templates, click Setup | Communication Templates | Email Templates.
- Click New Template.
- Choose Visualforce and click Next.
- Choose a folder in which to store the template.
- Select the Available For Use checkbox if you would like this template offered to users when sending an email.
- Enter an Email Template Name.
- If necessary, change the Template Unique Label.
- Select an Encoding setting to determine the character set for the template.
- Enter a Description of the template. Both template name and description are for your internal use only.
- Enter the subject line for your template in Email Subject.
- In the Recipient Type drop-down list, select the type of recipient that will receive the email template.
- Optionally, in the Related To Type drop-down list, select the object from which the template will retrieve merge field data.
- Click Save.
- Click Edit Template.
- Enter markup text for your Visualforce email template.
- Click Save to save your changes and view the details of the template, or click Quick Save to save your changes and continue editing your template. Your Visualforce markup must be valid before you can save your template.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 3:34 am in reply to: In what piece the salesforce Id composed of ?Hello,
The first 3 digits are a prefix that specifies the type of sObject.
I believe the rest of the Id is reference to the record itself. I should also add that the ID's are 15 digits long but can be 18 digits long with the last 3 digits for error correction making the the Id case-insensitive.
So:
3 Digits (Object) / 12 Digits (Record) / (Optional) 3 Digits (Error Correction)
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 3:32 am in reply to: Download Attachments in Salesforce ViewHello,
I would suggest you to use Dataloader.IO website = http://dataloader.io/
You can logIn and just follow through the UI and I am sure you will find a way to export notes and attachments. You can definitely export attachments from hereThanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 3:32 am in reply to: How to get Dynamic value in picklist by Javascript in Salesforce?Hello, I suggest use
Use aura attribute to bind ui:inputSelect value. You can populate selected value in doInit using component.set("v.selectedValue", selectedOption);
<aura:attribute name="selectedValue" type="String" />
<ui:inputSelect aura:id="inputPicklistId"
class="slds-input question-input"
change="{!c.onBlurQuestion}"
multiple="false" value="{!v.selectedValue}">istead of going to javascript.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 3:29 am in reply to: How to find that a field is not supported in Salesforce Metadata API?Hello,
The following components can’t be retrieved or deployed with Metadata API, and changes to them must be made manually in each of your organizations:
Account Teams
Activity Button Overrides
Analytic Settings
Automated Case User Settings
Auto-number on Customizable Standard Fields
Campaign Influences
Case Contact Roles
Case Feed Layouts
Case Team Roles
Console Layouts
Multiline layout fields for contract line items
Currency Exchange Rates
Data Category Visibility Settings
Delegated Administration
Divisions
Fiscal Year
File Upload and Download Security Settings
Lead Settings
Live Agent chats routed with Omni-Channel
Mail Merge Templates
Mobile Administration
Mobile Users and Devices
Multiline layout fields for opportunity teams
Offline Briefcase Configurations
Opportunity Big Deal Alerts
Opportunity Update Reminders
Organization Wide Email Addresses
Outlook Configurations
Partner Management
The following standard picklists: IdeaTheme.Categories, Order.Status, Question.Origin. (All other standard picklists are supported.)
Predefined Case Teams
Product Schedule Setup
Public and Resource Calendars
Quote Templates
Salesforce to Salesforce
Self-Service Portal Font and Colors
Self-Service Portal Settings
Self-Service Portal Users
Self-Service Public Solutions
Self-Service Web-to-Case
Service report templates
Site.com
Social Account/Contact Settings
Social Business Rules
Social Customer Service Settings
SoftPhone Layout
Solution Categories
Solution Settings
Standard fields that aren’t customizable, such as autonumber fields or system fields
Tag Settings
Territory Assignment Rules
User Interface Settings (except calendar features, which are supported in ActivitiesSettings)
Web Links on Person Account Page Layouts
Web-to-LeadThanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 3:28 am in reply to: Quickbooks online authentication from Salesforce -
Avnish Yadav
MemberSeptember 30, 2018 at 3:26 am in reply to: What is TestVisible Annotation in Salesforce?Adding more @testvisible is released before winter 15 .So you can use in your version to 30 or more
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 3:25 am in reply to: How to handle comma within a field while uploading using Salesforce Data Loader?Hello,
A properly formatted CSV can contain commas in its field values and can be used to import data.
Thanks.