Anish Kumar and
Ajay Prakash are now friends 3 days, 12 hours ago
Rahul and
Ajay Prakash are now friends 1 month ago
Abhishek and
Ajay Prakash are now friends 1 month ago
Rajat and
Ajay Prakash are now friends 1 month ago
Dhanraj Bhandari and
Ajay Prakash are now friends 1 month ago
Subhendu and
Ajay Prakash are now friends 1 month ago
Ajay Prakash replied to the topic How can I append entire fields at once in query? Like ‘SELECT * FROM ACCOUNT’ in SQL . in the forum Salesforce Questions and Answers 1 month, 3 weeks ago
Hi Pranav,
In SOQL you cannot use * to retrieve all the field values. You have to mention each and every fields API name in your SOQL query.
Thanks.
Ajay Prakash wrote a new blog, Enhanced Lookups In Salesforce 1 month, 3 weeks ago
Records in custom lookup are searchable by Object Name or AutoNumber. What If we want to search the record for any other field value. Just Think…
Don’t need to worry about that there is also a solution for t […]
Ajay Prakash replied to the topic How to grant permission to user through apex code? in the forum Salesforce Questions and Answers 1 month, 3 weeks ago
Hi Pranav,
You can assign permission set to user dynamically using following code in your apex –
PermissionSetAssignment psa = new PermissionSetAssignment
(PermissionSetId = yourPermissionSetId, AssigneeId = yourAssigneeId);
insert psa;Thanks.
Ajay Prakash replied to the topic How to create reusable methods in Lightning JS client side controller for reuse within the client side controller itself? in the forum Salesforce Questions and Answers 1 month, 3 weeks ago
I agree with Himanshu. If you write the code in the helper.js then this code will be accessible from the controller.js, renderer.js and helper.js itself. It will improve your code reusability.
Ajay Prakash replied to the topic If we declare lightning style in a Salesforce lightning component does it affect lightning application? in the forum Salesforce Questions and Answers 1 month, 3 weeks ago
Hi Pranav,
Only including the style from the static resource in your lightning component will neither affect your lightning component nor your Lightning application. However, it will affect the preview of the lightning application if the component is included in the Lightning application and uses the CSS attributes. The scope of this static res…[Read more]
Ajay Prakash wrote a new blog, Report and Report Type for a Custom Object in Salesforce 1 month, 3 weeks ago
It’s an easy task to create a Report for a Standard Object because salesforce provides some standard report types for the standard object, But when we want to create a report for a custom object then we have to […]
Ajay Prakash replied to the topic Is there any method to limit the maximum number of characters that can be typed into input field in Salesforce? in the forum Salesforce Questions and Answers 1 month, 4 weeks ago
Hi Pranav,
You should use maxlength attribute of the input field instead of calling a method for the validation. If you want to write some custom logic or you want to show a message to the user then you can call a method and follow the approach provided by Abhinav.
Thanks.
Ajay Prakash replied to the topic How to get the old value of a field in a Salesforce Apex Controller? in the forum Salesforce Questions and Answers 1 month, 4 weeks ago
The above solution will help you definitely. There can be one more possible approach that you can perform a SOQL query on the object in the current transaction where you want old values of any record.
Ajay Prakash replied to the topic Calling Batch class with Salesforce Apex Trigger in the forum Salesforce Questions and Answers 2 months ago
Hi Anish,
As I can see Stage__c is an custom Object and you are referring object label Stage in your batch class. You should refer API name Stage__c of the Stage object in your batch class as well.
One more mistake I can see in your code that you have defined setQry(string soqlquery) method in your batch class but this method is not called from…[Read more]
Ajay Prakash replied to the topic Need help in changing Standard Price Book in Salesforce in the forum Salesforce Questions and Answers 2 months ago
Hi Ravi,
Unfortunately it is not possible to change Price Book for existing Order, like on Opportunity. This Feature is not delivered by Salesforce and still is in Idea.
Ajay Prakash started the topic Window.location.href is not working in Microsoft edge in the forum Salesforce Questions and Answers 2 months ago
I have used window.location.href in my lightning component javascript controller. It is working fine in Chrome/Mozilla but not in Microsoft edge. Is there any alternate solution?
Ajay Prakash replied to the topic Is there any method to test a Visualforce page like an apex class? in the forum Salesforce Questions and Answers 2 months, 1 week ago
You need to do unit testing for apex classes not for visualforce pages. Yes you will need to write test classes for visualforce page controller before deployment.
Ajay Prakash replied to the topic Permission set is assigned to user, how does it assign to a particular profile not user? in the forum Salesforce Questions and Answers 2 months, 1 week ago
Hi Pranav,
There is no sense of assigning the permission set to a profile. The permission set is for adding an exception on the profiles means providing additional access. You can add permission set’s permission on the profile directly.
Ajay Prakash replied to the topic What is the difference between Readable,Visible and Read Only in permission set? in the forum Salesforce Questions and Answers 2 months, 1 week ago
Read-Only: If you check the “Read-Only” checkbox, that field will be read-only for the users of that profile. The user can only see that field, he can’t edit. The field must be Visible to be Read-Only.
Visible: If you check the “Visible” checkbox, that field will be visible to that profile. User can read & edit that field
Readable: Read perm…[Read more]
- Load More