Saurabh Gupta
IndividualForum Replies Created
-
Saurabh
MemberMay 12, 2017 at 7:21 am in reply to: After activating the approval process, I want to add one more step. Is it possible?Hi Suraj
You can add steps to an approval process only if it is inactive.
For more infohttps://help.salesforce.com/articleView?id=approvals_creating_approval_steps.htm&type=0
Hope it may help you
-
Saurabh
MemberMay 12, 2017 at 7:19 am in reply to: What is the use of Floating Report Header in Salesforce? What type of Report It Support?Hi Suraj
It is hard to remember the headers when you are viewing a report with thousands of rows. Instead of scrolling, create floating headers by freezing columns and rows. After Spring’14 release when you scroll down to read a report, you can choose to have the header rows at the top or on the left of the report stay visiblility
Hope it may help you
-
Hi Manpreet
It won't trigger in the schedule date because if we modify the record to not meeting criteria that queued field update will be removed from the 'time based flow' queue.
Hope it may help you
-
Saurabh
MemberMay 12, 2017 at 7:05 am in reply to: What is the difference between the “Salesforce” and “Salesforce Platform” licenses?Hi Suarj
Salesforce licenses are designed for users who require full access to standard CRM and Force.com AppExchange apps. CRM apps are anything that requires access to Standard Objects like...
Leads
Opportunities
Forecasts
Cases
SolutionsSalesforce Platform licenses are designed for users who only need access to custom apps, and NOT the standard CRM functionality. Salesforce Platform users DO have access to the "core" Salesforce Standard Objects and functionality, like...
Accounts
Contacts
Reports
Dashboards
Documents
Custom TabsSo, if a user only needs to access custom Force.com or AppExchange apps, it's OK to assign them a Salesforce Platform license. On the other hand, if a user needs access to any CRM functionality (eg Sales or Service Cloud), they must be assigned a Salesforce license.
Hope it may help you
-
Hi Suraj
Business Hours
Specifies the business hours of your support organization. Escalation rules are run only during these hours.
If business hours are associated with any Holiday records, then business hours and escalation rules associated with business hours are suspended during the dates and times specified as holidays.For more infohttps://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_businesshours.htm
Hope it may help you
-
Saurabh
MemberMay 12, 2017 at 7:01 am in reply to: What are the advantages of building applications using force .com?Hi Suraj
Developing applications using force .com has these clear advantages:
Faster, more active development – Force.com is fast because it needs minimal coding. A developer can assemble his apps in building-block fashion utilizing visual tools, existing data structures, and a library of elements.
Easier to obtain started – Standard ASP.NET or JAVA applications require software setup and maintenance. With cloud computing, designers require only an Internet connection to create product, due to the fact that the source code and put together courses are stored directly on the cloud.
Simpler and less expensive to keep – Running on-premise applications has actually constantly been complicated, costly, and slow. Each application hosted by a venture requires the purchase and upkeep of the requisite hardware, operating systems, databases, middleware, Web servers, and other associated software. With Salesforce.com, this whole stack is offered you without the hassle of upkeep.
Conceived with the future of the web in mind – Force.com includes an enterprise-wide social media network framework called Chatter with built in parts like feeds, profiles, discussions, updates, and file sharing. You can also build native mobile apps powered by a safe cloud database, with powerful APIs or develop mobile-optimized browser apps.
Developed for change – Unavoidably, changing company requirements require modifications be made to enterprise applications. This need for modifications usually kicks off another lengthy development, screening, and re-deployment cycle. The Salesforce platform fills out all these spaces and allows firms to benefit from faster re-deployment. Companies have actually embraced cloud options like Salesforce.com in big part because of their ease of use, scalability, dependability, and on-going upgrades.
Don’t fret over security – Force.com provides incredibly effective and flexible security architecture. It showcases a multi-layered security method to safeguard crucial information from not only external sources, however also from wrongful internal access.
Seamlessly integrate with other innovations – Force.com can be quickly integrated with other leading technologies like ASP.NET or C# by exposing a custom function as a web service. Force.com pages are hosted by the Force.com platform, which supplies services such as security and memory management to one’s application.
Quick access to Salesforce‘s existing 82,400 company user base (which has money to spend) through the AppExchange (just a $300 listing charge).
Piggy back off Salesforce‘s effective existing functionality, consisting of:
User management and authentication
Management user interface
Reporting and analytics
Dynamic API
Toolkits and integrations for other languages and platforms
PaaS providing allows you not to fret about server upkeep or architectureSecurity, both because of code review and because of high degree of control on the platform
Java-like syntax speeds finding out curve for new designers
Native “Visualforce” elements permit fast and simple information output
Active community. Great deals of information out there and active participation from Salesforce staff
Object metadata can be leveraged for effective performance
Actively under development (Big things underway with VMForce)
Hope it may help you
-
Saurabh
MemberMay 12, 2017 at 6:57 am in reply to: Where SObject Field Class is used in Salesforce?Hi Suraj
A Schema.sObjectField object is returned from the field describe result using the getControler and getSObjectField methods.
for more infohttps://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_Schema_SObjectField.htm
Hope it may help you
-
Hi Suraj
Custom Objects:
Custom Objects are custom database tables that allow to store information to your organization.
All Custom field types supported.
Records are updated by users.
Data stored in database.
Requires lookup or master-detail relationship to reference from another object.
Counts against cross-object reference limit when used in formulas.
Custom Objects are SOQL expensive.
We can use Page layouts, record types, validation rules, triggers and workflow rules on Custom Objects.Custom Settings:
Custom Settings are similar to Custom Objects and enable application developers to create custom sets of data, as well as create and associate custom data for an organization, profile, or specific user. We can say Custom Settings are like configuration file that we used to have.
Custom Settings support only Checkbox, Currency, Date, Date/Time, Email, Number, Percent, Phone, Text, Text Area, and URL field types.
Records are updated by admins or developers.
Cached in memory (limited to 2mb).
No relationship field required.
Not a cross-object reference.
Custom Settings are SOQL inexpensive.
No Page layouts, record types, validation rules, triggers and workflow rules can be used on Custom Settings.hope it may help you
-
Saurabh
MemberMay 11, 2017 at 7:07 am in reply to: Why we can't make Salesforce Query in the Constructor?Hi Suraj
No you can't perform any DML in Constructor.
If you want to Perform DML then you have to write a function in class and call this functon by action attribute of <apex:page action="YOUR Funciton Name">
for more infohttp://salesforceworld4u.blogspot.in/2014/08/how-to-do-dml-operation-when-page-loads.html
Hope it may help you
-
Hi Manpreet
You can enable view state of vf page by going through in to setup->manage->user
In user you can go into the system admin profile and checking Development Mode and Show View State in Development Mode
View state provide you information about the vf page and its controller like what are the methods use in controller and there size
its allow you only 135kb of size so with the help of view state you can maintain your size.
Let me know it help you
-
Saurabh
MemberMay 11, 2017 at 6:34 am in reply to: Scenario: After activating the approval process in Salesforce, I want to add one more step. Is it possible?Hi manpreet
You can add steps to an approval process only if it is inactive
Let me know it may help you
-
Saurabh
MemberMay 11, 2017 at 6:25 am in reply to: How to perform Inline Editing on contacts Related to Account in Salesforce?Hi Suraj
You can perform inline editing on contacts related to Account by using inline edit mode on page block or by using inlineeditsupport tag of visualforce
first you have to get all the contacts related to particular account id by using standard controller and making its extension.
And then iterate that list of contact by using page block table on which you can perform inline editing
Note:Before that you have to embed your vf page on page layout
hope it may help you:
-
Saurabh
MemberMay 8, 2017 at 2:45 pm in reply to: Why Encrypted Field type don't support change Field Type?Hi Suraj
Existing custom fields cannot be converted into encrypted fields nor can encrypted fields be converted into another data type.
Hope it may help
-
Saurabh
MemberMay 8, 2017 at 2:37 pm in reply to: What is the Sequence of Execution among beforeTrigger,AfterTrigger,VAlidationRule,WorkFlow?Hi Suraj
When a record is saved with an insert, update, or upsert statement, the following events occur in order:
1. The original record is loaded from the database (or initialized for an insert statement)
2. The new record field values are loaded from the request and overwrite the old values
3. All before triggers execute
4. System validation occurs, such as verifying that all required fields have a non-null value, and running any user-defined validation rules
5. The record is saved to the database, but not yet committed
6. All after triggers execute
7. Assignment rules execute
8. Auto-response rules execute
9. Workflow rules execute
10. If there are workflow field updates, the record is updated again
11. If the record was updated with workflow field updates, before and after triggers fire one more time (and only one more time)
12. Escalation rules execute
13. All DML operations are committed to the database
14. Post-commit logic executes, such as sending emailAdditional Considerations
Please note the following when working with triggers:
* When Enable Validation and Triggers from Lead Convert is selected, if the lead conversion creates an opportunity and the opportunity has Apex before triggers associated with it, the triggers run immediately after the opportunity is created, before the opportunity contact role is created. For more information, see “Customizing Lead Settings” in the Salesforce online help.
* If you are using before triggers to set Stage and Forecast Category for an opportunity record, the behavior is as follows:
o If you set Stage and Forecast Category, the opportunity record contains those exact values.
o If you set Stage but not Forecast Category, the Forecast Category value on the opportunity record defaults to the one associated with trigger Stage.
o If you reset Stage to a value specified in an API call or incoming from the user interface, the Forecast Category value should also come from the API call or user interface. If no value for Forecast Category is specified and the incoming Stage is different than the trigger Stage, the Forecast Category defaults to the one associated with trigger Stage. If the trigger Stage and incoming Stage are the same, the Forecast Category is not defaulted.Hope it may help
-
Hi Suraj
Well, here are few advantages of “Visualforce Remote Objects” :
- No need to write Controllers, Everything can be done in Visualforce only.
- As @RemoteAction annotated methods needs to be static so you had to take special precaution as it didn’t supported Viewstate. This hurdle is completely removed now.
- No need to write Test Class now, as no Controller is involved.
for more information you can refer tohttps://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_remote_objects_considerations.htm
Hope it may help
-
Hi Suraj
Floating report header essentially freezes the header of a report so that it is always at the top of the page, regardless of any scrolling. Thus even if your report contains thousands of rows, the header information is always visible so that users know what data they are looking at.Hope it may help
-
Saurabh
MemberMay 2, 2017 at 3:08 pm in reply to: Can i make a master detail relationship between Two Standard Objects in Salesforce?Hi Suraj
it is not possible as standard object can not be on detail side of the relationship
Hope it may help you:
-
Saurabh
MemberMay 2, 2017 at 2:58 pm in reply to: What is the use of Action Function and how to implement it in a Salesforce Visualforce Page?Hi Suraj
A component that provides support for invoking controller action methods directly from JavaScript code using an AJAX request.
//Example code
An <apex:actionFunction> component must be a child of an <apex:form> component.
<apex:page controller="exampleCon">
<!-- Add the onclick event listener to a panel. When clicked, the panel triggers
the methodOneInJavascript actionFunction with a param -->
<apex:outputPanel onclick="methodOneInJavascript('Yes!')" styleClass="btn">
Click Me
</apex:outputPanel>
<apex:form>
<apex:actionFunction action="{!methodOne}" name="methodOneInJavascript" rerender="showstate">
<apex:param name="firstParam" assignTo="{!state}" value="" />
</apex:actionFunction>
</apex:form>
</apex:page>In the above visualforce page javascript method in the onclickevent will call the apex controller method with the help of actionfunction.
Apex controller. With the help of actionfunction we can able to make a call to the apex controller class/*** Controller ***/
public class exampleCon {
String uname;public String getUsername() {
return uname;
}public PageReference sayHello() {
uname = UserInfo.getName();
return null;
}public void setState(String n) {
state = n;
}public String getState() {
return state;
}public PageReference methodOne() {
return null;
}private String state = 'no';
}Hope it may help:
-
Saurabh
MemberMay 2, 2017 at 2:53 pm in reply to: How do you write a unit test for a salesforce trigger whose only function is to make a callout?Hi Manpreet
Both future methods and callouts can be unit tested.To test future methods simply make your call to any future method between Test.startTest(); and Test.stopTest(); statements and the future method will return when Test.stopTest(); is called. See the documentation for the Test class here: System.Test
Testing callouts is a bit trickier though. Basically in your callout code you check to see if you're executing within a unit test context by checking Test.isRunningTest() and instead of getting your callout response from an HttpResponse.send() request, you return a pre-built test string instead. There's one example of this method here: http://www.iterativelogic.com/unit-test-callouts-in-apex-code-part-2/
There's also an older example of callout unit testing that uses a static variable you set in your unit test. Just replace that static variable with a call to Test.isRunningTest() and their example works fairly well as well. That example can be found here: http://sfdc.arrowpointe.com/2009/05/01/testing-http-callouts/
Hoping it may help you
-
Saurabh
MemberMay 2, 2017 at 2:52 pm in reply to: What is a concise function that formats a (String) decimal into a currency format in Salesforce Apex?Hi Manpreet
public static String currency(String i) {
String s = ( Decimal.valueOf(i==null||i.trim()==''?'0':i).setScale(2) + 0.001 ).format();
return s.substring(0,s.length()-1);
}Hope it may help
-
Saurabh
MemberMay 2, 2017 at 2:49 pm in reply to: How many ways we can share a record in Salesforce?Hi Suraj
ways in which you can share a record
Force.com Managed Sharing:-
Force.com managed sharing involves sharing access granted by Force.com based on record ownership, the role hierarchy, and sharing rules:Record Ownership
Each record is owned by a user or optionally a queue for custom objects, cases and leads. The record owner is automatically granted Full Access, allowing them to view, edit, transfer, share, and delete the record.
Role Hierarchy
The role hierarchy enables users above another user in the hierarchy to have the same level of access to records owned by or shared with users below. Consequently, users above a record owner in the role hierarchy are also implicitly granted Full Access to the record, though this behavior can be disabled for specific custom objects. The role hierarchy is not maintained with sharing records. Instead, role hierarchy access is derived at runtime. For more information, see “Controlling Access Using Hierarchies” in the Salesforce online help.
Sharing Rules
Sharing rules are used by administrators to automatically grant users within a given group or role access to records owned by a specific group of users. Sharing rules cannot be added to a package and cannot be used to support sharing logic for apps installed from Force.com AppExchange.Sharing rules can be based on record ownership or other criteria. You can’t use Apex to create criteria-based sharing rules. Also, criteria-based sharing cannot be tested using Apex.
All implicit sharing added by Force.com managed sharing cannot be altered directly using the Salesforce user interface, SOAP API, or Apex.
User Managed Sharing, also known as Manual Sharing
User managed sharing allows the record owner or any user with Full Access to a record to share the record with a user or group of users. This is generally done by an end-user, for a single record. Only the record owner and users above the owner in the role hierarchy are granted Full Access to the record. It is not possible to grant other users Full Access. Users with the “Modify All” object-level permission for the given object or the “Modify All Data” permission can also manually share a record. User managed sharing is removed when the record owner changes or when the access granted in the sharing does not grant additional access beyond the object's organization-wide sharing default access level.
Apex Managed Sharing
Apex managed sharing provides developers with the ability to support an application’s particular sharing requirements programmatically through Apex or the SOAP API. This type of sharing is similar to Force.com managed sharing. Only users with “Modify All Data” permission can add or change Apex managed sharing on a record. Apex managed sharing is maintained across record owner changesHope it may help you:
-
Saurabh
MemberApril 28, 2017 at 1:51 pm in reply to: Difference between controller and extensions in Salesforce?Hi Suraj
A custom controller is an Apex class that implements all of the logic for a page without leveraging a standard controller. Use custom controllers when you want your Visualforce page to run entirely in system mode, which does not enforce the permissions and field-level security of the current user.
A controller extension is an Apex class that extends the functionality of a standard or custom controller. Use controller extensions when:You want to leverage the built-in functionality of a standard controller but override one or more actions, such as edit, view, save, or delete.
You want to add new actions.
You want to build a Visualforce page that respects user permissions. Although a controller extension class executes in system mode, if a controller extension extends a standard controller, the logic from the standard controller does not execute in system mode. Instead, it executes in user mode, in which permissions, field-level security, and sharing rules of the current user apply.Hope it may help:
-
Saurabh
MemberApril 28, 2017 at 1:47 pm in reply to: How to write a rollup summary trigger for a lookup relationship in Salesforce?Hi Suraj
The link may can solves your problem:https://github.com/abhinavguptas/Salesforce-Lookup-Rollup-Summaries
You can also look in to this:https://andyinthecloud.com/2013/07/07/new-tool-declarative-rollups-for-lookups/
And if you have requirement for only one object ,you can prefer jeff solution as well:http://blog.jeffdouglas.com/2009/07/30/roll-up-summary-fields-with-lookup-relationships-part-1/
Hope it may help you
-
Saurabh
MemberApril 28, 2017 at 1:41 pm in reply to: Can I have a public APEX REST API in Salesforce?Hi Suraj
Yes you can. You will need to configure a public site and make the webservice available through it. There is an excellent tip on the developerforce blogs explaining it in more detail.
The biggest of which is that your request must have the proper Content-Type Salesforce restful webservices reject x-www-form-urlencoded and refactoring the legacy system was a bit of a problem.
Hope it may help you:
-
Hi Suraj
Inline editing lets users quickly edit field values, right on a record’s detail page. Editable cells display a pencil icon (Editable Field) when you hover over the cell, while non-editable cells display a lock icon
you can refer to: http://sfdcsrini.blogspot.com/2014/08/how-to-use-inline-visualforce-page.html
& you can refer to: http://blog.jeffdouglas.com/2009/05/08/inline-visualforce-pages-with-standard-page-layouts/
Hope it may help you