Avnish Yadav
IndividualForum Replies Created
-
Avnish Yadav
MemberSeptember 30, 2018 at 5:09 am in reply to: How To Write The “where” Clause In Soql When Group By Is Used in Salesforce?Hello,
We using HAVING clause insted of WHERE clause in GROUP BY
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 5:07 am in reply to: Does sharing rule override the profile settings in salesforce?Hello,
Sharing setting allows you to provide permission for records where Profiles and Permission Sets tell you whether a user can create an account,
it doesn't tell you which account they can read or edit. so, Without profile permission, they can't create new records. Sharing provide you access
for record level and profile provide access on object level.Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 5:05 am in reply to: Difference between JavaScript Remoting and ActionFunction in Salesforce?Hello,
@RemoteAction is an Apex annotation used to mark a method as being available for javascript remoting. This allows you to call the method from javascript yourself and retrieve the result as a javascript object for manipulation, as per the example in the documentation. They are static and global, and hence don't have access to your current controller variables and methods.
Action Function
Action function used to call the server side method using JavaScript.
Explanation:-
----------------
ActionFunction: provides support for invoking controller action methods directly from JavaScript code using an ajax requestUsed when we need to perform the similar action on various events. Even though you can use it in place of actionSupport as well where the only event is related to only one control.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:59 am in reply to: Can a variable be passed to an apex:repeat in Salesforce?I would suggest as a best practice to use <apex:param> than passing through url since I have seen browsers like IE having URL limits of 2000 characters 🙂
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:58 am in reply to: Can a variable be passed to an apex:repeat in Salesforce?Hello,
It's not possible to pass a value to a getter.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:57 am in reply to: Can anyone provide some tips for testing in Salesforce?Hello,
Follow this blog - https://www.algoworks.com/blog/testing-in-salesforce/
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:52 am in reply to: How can I update Metadata Components using Salesforce Apex?Hello,
I suggest you to use Tooling API.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:51 am in reply to: How to apply uniqueness on Junction object in Salesforce?Another solution would be to create a validation rule on object C which will do a VLOOKUP on A and B based on the populated lookups and also exclude the record itself. You can also handle this with a nicer error message.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:51 am in reply to: How to apply uniqueness on Junction object in Salesforce?You could create a trigger that queries for other junction objects that have the same combination of A and B.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:50 am in reply to: What is Master Detail relationship and look up relationship in Salesforce?Hello,
Lookup Relationship:
This type of relationship links two objects together. This is loosely bounded. We can use lookup when objects are only related in some cases. Objects in lookup relationship usually work as standard alone objects.Master-Detail Relationship:
This is Parent (Master) Child (Detail) relationship in which the master object controls certain behaviors of the detail object. This is tightly bounded.
For Ex – In program Event Management with a Master-Detail between Events and Budget, you can delete the Event and the entire related Budget.Thanks.
-
Hello
Dynamic Apex enables developers to create more flexible applications by providing them with the ability to: Access sObject and field describe information
Describe information provides metadata information about sObject and field properties. For example, the describe information for an sObject includes whether that type of sObject supports operations like create or undelete, the sObject's name and label, the sObject's fields and child objects, and so on. The describe information for a field includes whether the field has a default value, whether it is a calculated field, the type of the field, and so on.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:46 am in reply to: How to set time limit between queued jobs in Salesforce?Hello,
The scheduler documentation in the apex developers guide states:
You can only have 25 classes scheduled at one time. You can evaluate your current count by viewing the Scheduled Jobs page in Salesforce or programmatically using the Force.com Web services API to query the CronTrigger object.
while the batch apex states:Up to five queued or active batch jobs are allowed for Apex.
So I'd say that they are independent, although the scheduled job starts batch apex or vice versa it will impact both.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:43 am in reply to: What is the Salesforce sObject for a private message?Hello,
With Salesforce Spring'15, we have the ability to write trigger on 'ChatterMessage' Object.
So, you can easily monitor the ChatterMessage Activity(Provided the user have the "Manage Chatter Message" on the profile; as mentioned by Samuel)
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:40 am in reply to: What are different Salesforce Editions?Hello,
Below is the list of Salesforce Editions:
1. Essentials: Designed for small businesses that want to get started with a CRM system quickly. It includes intuitive walkthroughs and a setup assistant to get started, an easy-to-use UI, and administration tools to customize your deployment as you grow.
2. Professional: Designed for businesses requiring full-featured CRM functionality. It includes straightforward and easy-to-use customization, integration, and administration tools to facilitate any small to midsize deployment.
3. Enterprise: Meets the needs of large and complex businesses. It gives you advanced customization and administration tools, in addition to all the functionality available in Professional Edition, that can support large-scale deployments. Enterprise Edition also includes access to Salesforce APIs, so you can easily integrate with back-office systems.
4. Unlimited: Maximizes your success and extends it across the entire enterprise through the Lightning platform. It gives you new levels of platform flexibility for managing and sharing all your information on demand. Includes all Enterprise Edition functionality, Premier Support, full mobile access, unlimited custom apps, increased storage limits, and other features.
5. Developer: Provides access to the Lightning platform and APIs. It lets developers extend Salesforce, integrate with other applications, and develop new tools and applications. Developer Edition also provides access to many of the features available in Enterprise Edition.
Thanks
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:38 am in reply to: Is it possible to create a reusable inline Salesforce Visualforce page?Hello,
You can implement a VF page and as long as it shares the standard controller of the object whose page layout your trying to add it too, it's available to be added to that page in the standard page-layout controller.
Thanks. -
Avnish Yadav
MemberSeptember 30, 2018 at 4:34 am in reply to: How to clear the Time based workflow action queue in Salesforce?Hello,
First you need to remove all schedule action from Time-Based Workflow (Monitor) que . Then you can deactivate or delete the workflow
Setup->Monitor–>Time-Based Workflow–> Then search record and deleteThanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:32 am in reply to: Not receiving my CheckMarx Security Scanner report from SalesforceHello,
Keep patience, Checkmarx report contains the time it started scan. That is the version scanned at that moment. or you can log a case as said by Mr. piyush.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:29 am in reply to: What is the Actual meaning of ALL ROWS in Salesforce SOQL?Hello,
All ROWS = existing reords in Object + existing records in recycle bin + allready expiry records in recycle bin(which is deleted from first).
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:26 am in reply to: Difference between Communities and Sites in Salesforce?Hello,
Communities - Sub-domain sites built with Community Builder (Lightning), standard Salesforce UI (Tabs), or custom Visualforce.
Community Builder - A UI for click-and-drag construction of community pages.
Site.com Studio - Replaced by Community Builder (except for a couple features that take you back to Site.com Studio).
Site.com Sites - Replaced by Communities built with Community Builder.
Force.com Sites - Sub-domain sites that have no authentication built with Visualforce. (Authenticated VF communities are built in much the same way, but are technically distinct because of authentication).Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:23 am in reply to: Salesforce Remote Action not working in JavaScript?Hello,
kindly share the code.
Thanks in advance.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:22 am in reply to: How to create collapsible/expandable rows in a table based on user action in Salesforce Lightning?This approach perfectly worked for my requirement. Thank you so much for the help.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:21 am in reply to: "currency" in json Response but while deserializing Reserved Word Exception is shown in Salesforce?Hello,
You have two choices: JSON.deserializeUntyped or JSON.createParser. But if still find error, Please share the code.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:17 am in reply to: What is enqueue action and app hostile in Salesforce?Hello,
If we need to call more than one server side controller then we need to write a second controller inside the First setCallBack method , the third controller inside the second Controller and so on .
Like this way we can achieve the right output always . This is the correct way to call $A.enqueueAction() .Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:16 am in reply to: How can we perform arithmetic operation on child object and get result in Salesforce Parent Object?Hello,
We use Roll up summary or trigger for this.
Thanks.
-
Avnish Yadav
MemberSeptember 30, 2018 at 4:13 am in reply to: How can I use this keyword in Salesforce? What's the main advantage of using it?Hello,
As per your question on advantage of using this keyword over passing the object itself is thisis a final variable in Java whereas the object when passed may or may not be final.
Thanks.