Piyush
IndividualForum Replies Created
-
Piyush
MemberNovember 18, 2019 at 4:55 am in reply to: What happens if some records do not meet the data validation cretaria when importing data?Hi Prachi,
Validation rules ensure accurate data entry. Validation rules also catch errors at the data entry level, and the mistakes never make it into your database. If the data doesn’t satisfy the conditions that have been set, access won’t accept the input value.
Validation rules are more efficient than clearing up after the fact. To protect the validity of your date, you start at the foundation. The field’s data type will restrict input value to specify types of data. The second line of action is the field table and validation rule, which restricts the input value conditionally.
-
Piyush
MemberNovember 18, 2019 at 4:52 am in reply to: How to create a regular expression to validate SSN in lightning component in Salesforce?Hi Nikita,
You can write a function to create a regular expression to validate SSN in lightning component:-
For Example:-
function validat (value){ var ssnPattern = /^[0-9]{3}-?[0-9]{2}-?[0-9]{4}$/; return ssnPattern.test(value); }
-
Piyush
MemberNovember 15, 2019 at 12:01 pm in reply to: can we use google address auto complete Salesforce API without paying?Hi Yogesh,
Please have a look to the following URL for the google address auto complete api without paying :-
https://developers.google.com/maps/documentation/javascript/places-autocomplete
- This reply was modified 5 years, 1 month ago by Piyush.
-
Piyush
MemberNovember 15, 2019 at 6:06 am in reply to: How to insert a user using apex with a contact linked with it in Salesforce?Hi,
We can crteate a user using apex like this:-
User u = new user(); u.LastName = 'Temp'; u.Email = '[email protected]'; u.Alias = 'Tc'; u.Username = '[email protected]'; u.CommunityNickname = 'test12'; u.LocaleSidKey = 'en_US'; u.TimeZoneSidKey = 'GMT'; u.ProfileID = '00e90000000oyi5'; u.LanguageLocaleKey = 'en_US'; u.EmailEncodingKey = 'UTF-8'; insert u;
and add contact like this :-
try { Account acct = new Account(Name='Account'); insert acct; // Add a contact to this account. Contact con = new Contact( FirstName='Jojo', LastName='Smoke', Phone='7875666677', AccountId=acct.id); insert con; } catch(DmlException e) { System.debug('An unexpected error has occurred: ' + e.getMessage()); }
I hope this will help you.
-
Piyush
MemberNovember 15, 2019 at 5:50 am in reply to: Can anybody help me in getting actions on standard New button using Metadata in salesforce.Hi Prachi,
Action overrides are defined as part of a standard or custom object.
Please have a look to the following pdf Url:- -
Piyush
MemberNovember 15, 2019 at 5:44 am in reply to: How to add multiple checkbox list in a lightning component in Salesforce?Hi,
Take the help of the following URL to add mulriple checkbox list in a lightning component in salesforce:
-
Piyush
MemberNovember 15, 2019 at 5:33 am in reply to: How to delete records in query editor in developer console in Salesforce?Hi,
you can take help from the following Url to delete records in salesforce:
https://success.salesforce.com/answers?id=90630000000heONAAY
-
Piyush
MemberNovember 14, 2019 at 10:10 am in reply to: Can a visualforce page reference both the Opportunity and OpportunityLineItem objects in Salesforce?Hi,
I am not sure about the visualforce but you can reference both the Opportunity and OpportunityLineItem objects in Apex.
-
Piyush
MemberNovember 14, 2019 at 10:05 am in reply to: how to implement custom lookup input text in a lightning component in Salesforce?Hi Yogesh,
Please have look to the following URL below. I am sure this will help you a lot to implement custom lookup input text in a lightning component:-
http://sfdcmonkey.com/2017/01/07/custom-lookup-lightning-component/
-
Piyush
MemberNovember 14, 2019 at 9:56 am in reply to: how to implement add and remove row functionality in a lightning component in Salesforce?Hi,
For add new row event:-
<aura:event type="COMPONENT" description="Use For Add New Row"></aura:event>
For remove row event:-
<aura:event type="COMPONENT" description="Event to remove Row" > <aura:attribute name="indexVar" type="Integer" description="Use For Delete Row" /> </aura:event>
-
Piyush
MemberNovember 14, 2019 at 5:40 am in reply to: How to query the Id Field of the campaignInfluenceModel in Salesforce?Hi Prachi,
You can try the below query for your help:
[ SELECT Id FROM CampaignInfluenceModel ]
I Hope this will work.
-
Piyush
MemberNovember 14, 2019 at 5:34 am in reply to: How can I save an attachment on account while sending an email in Salesforce?Hi Laveena.
In Classic
- Go to Setup.
- Under Administer, click on Communication Templates | Classic Email Templates.
- Click on the name of the email template that you would like to attach a file to.
- Click the Attach File button.
- Complete the three steps and click the Done button.
In Lightning
- Go to any object that has Email publisher available.
- Go to the Email tab.
- Select the Email template that you wish to add an attachment to by clicking on the Insert, create or update Template button.
- Select Insert Template.
- Click the Attach file button and select the file you wish to attach to the template.
- If you would like to save this template with the attachment for future use, click Insert, create or update Template and select Save Template.
-
Piyush
MemberNovember 14, 2019 at 5:17 am in reply to: How to override new button to choose the record type automatically in Salesforce?Hi,
- Click on Name | Setup | App Setup | Customize | Cases | Buttons, Links and Actions
- Click on Edit link available near to New button
- Navigate to Override Properties Section select Visualforce page and then select a value for Skip Record Type Selection Page checkbox
I hope this will help You.
Thank you
-
Piyush
MemberNovember 13, 2019 at 1:42 pm in reply to: How to calculate time spent on the record in a Salesforce case queue?Hi,
You should have a look at the following URL to calculate the time spent on the record in a Salesforce case queue. I hope this will help you.
https://success.salesforce.com/apex/answers?id=90630000000CufOAAS
-
Piyush
MemberNovember 13, 2019 at 1:37 pm in reply to: how to retrieve data using fieldsets in a Salesforce lightning component?Hi,
Take help from the following URL to use fieldsets in a Salesforce lightning component:-
https://www.sfdcpanther.com/how-to-use-field-set-in-lightning-component/
-
Piyush
MemberNovember 13, 2019 at 7:26 am in reply to: How can I enable Async queries in a scratch org in Salesforce?Hi,
Async SOQL is a method for running SOQL queries in the background over Salesforce entity data, including sObjects, BigObjects, and external objects (accessed via Lightning Connect). It provides a convenient way to query large amounts of data stored in Salesforce.
Async SOQL is implemented in the form of a RESTful API that enables you to run queries in the familiar syntax of the SOQL language. You can run multiple queries in parallel, and monitor their completion status.For More you can take help from :-https://releasenotes.docs.salesforce.com/en-us/winter16/release-notes/rn_general_async_query.htm
-
Piyush
MemberNovember 13, 2019 at 4:40 am in reply to: In which objects lead can be converted in Salesforce?Hi,
Leads with a blank Company field are converted to person accounts. The default person account record type for your profile is applied to the new person account. Note that you can only create leads with a blank Company field using the Force.com API.
-
Piyush
MemberNovember 13, 2019 at 4:37 am in reply to: Which object can be ByPass when we convert a lead in Salesforce?Hi Nikita,
As per my knowledge, Contact object can be ByPass when we convert a lead.
-
Piyush
MemberNovember 12, 2019 at 6:07 am in reply to: How to transfer data from one managed package to another managed package in Salesforce?Hi Prachi,
You can write a script in the anonymous window to transfer data from one org to another or one managed package to another.
-
Hi,
Please send your Test class with 55% code coverage. Then we will try to help you in your test class.
Thank you
-
Piyush
MemberNovember 12, 2019 at 5:41 am in reply to: How to show child query count in lightning component in Salesforce?Hi,
You can try below code to show child query count in lightning component in salesforce:-
List<Account> lstAccount = [ Select id,name,(SELECT id,Name From abc__Site__r ) from Account ]; For ( Account acc : lstAccount ) { List<SVMXC__Site__c> lstSite = acc.abc__Site__r; if( lstSite.size() > 1 ) { System.debug('More then one site'); } }
For more:-https://developer.salesforce.com/forums/?id=906F0000000DBc6IAG
-
Piyush
MemberNovember 12, 2019 at 5:37 am in reply to: Is it possible to change the Price book in Quote object? Please explain with proper reason.Hi,
With the help of following steps you can enable Quotes in Salesforce:
- From Setup, enter Quote in the Quick Find box, then select Quote Settings (Lightning Experience) or Quotes Settings (Salesforce Classic).
- If Quotes are not enabled then, select the option for enabling quotes.
- To display the Quotes related list on the standard opportunity page layout, select all the Opportunity Layout displayed.
- To add the Quotes related list to all opportunity page layouts that users have customized, select Append to users’ personal related list customization.
- Save your changes.
-
Piyush
MemberNovember 12, 2019 at 5:32 am in reply to: How we can identify if a case was generated through email-to-case?Hi Nikita,
You can do this via Workflow or process builder. Create a Workflow rule on Case Object and check if case is created from a particular email then send an email alert to the queue members.
-
Piyush
MemberNovember 11, 2019 at 1:34 pm in reply to: What is the use of SeeAllData = True in test class in salesforce?Hi,
The @isTest(SeeAllData=true) annotation is used to open up data access when applied at the class or method level. However, if the containing class has been annotated with @isTest(SeeAllData=true) , annotating a method with @isTest(SeeAllData=false) is ignored for that method.
-
Piyush
MemberNovember 11, 2019 at 1:33 pm in reply to: What is object relationship overview in salesforce?Hi,
The object relationship overview links custom object records to standard object records in a related list. This is helpful to track product defects in related customer cases. Salesforce allows users to define different types of relationships by creating custom relationship fields on an object.