Piyush Kumar
IndividualForum Replies Created
-
Piyush
MemberJanuary 22, 2018 at 7:37 am in reply to: How to use IF ELSE clauses in a button which is of the "URL" type in Salesforce?Hi Manpreet,
No, you can't use functions from the formula language in custom URL button . If you want, you can make a formula field of type URL and have the button emit that field. Then your formula logic would be in the field.
Hope this will help you...
-
Piyush
MemberJanuary 22, 2018 at 7:32 am in reply to: Is it possible to update a custom subject picklist via Salesforce workflow rule?Hi Manpreet,
Create a new Custom Picklist Field for Events and/or Tasks
- From Setup, go to Customize > Activities > Activity Custom Fields.
- Create a Custom Picklist called “Event Subject".
- Populate the picklist with the preset phrases you want to use for the "Subject" field.
Note: No need to add this new field to existing Page Layouts.
Add the new Custom Picklist to the Publisher Action Layout
- From Setup, go to Create > Global Actions > Global Actions.
- Next to the “New Event” action, click Layout.
- Remove the existing "Subject" field from the layout and replace it with your new “Event Subject” field.
- Once this is saved you can check the "Publisher Action" button on your device and see your new picklist.
Build a Workflow Rule
To copy the value from our Custom Picklist to the built-in Subject field:
- From Setup, go to Create > Workflow & Approvals > Workflow Rules.
- Create a new Rule:
Step 1: Object = Event
Step 2: Rule Name = Copy Event Subject
Evaluate the rule when a record is = Created
Run this rule if the following = criteria are met
Field = Event: Subject
Operator = equals
Value = (leave this area blank)
Step 3: Add Workflow Action “New Field Update”
Name = CopyEventSubject
Field to Update = Standard field: Subject
Use a formula to set the new value
Formula Value (Text) = TEXT ( Event_Subject__c )
Note: the value inside the parentheses is the API name of your custom picklist
Save- Click Activate at the top of the Workflow Rule detail page.
-
Piyush
MemberJanuary 22, 2018 at 7:31 am in reply to: How to change Subject field of Event object to picklist in Salesforce Lightning?Hi Manpreet,
In Lightning, Subject picklist is not available. You have to enter the text into the subject while working in lightning. If you want then you can create a new subject with picklist and customize the Task composer window and put that custom field there. Take a look here to customize the composer window here
- This reply was modified 6 years, 10 months ago by Piyush.
-
Piyush
MemberJanuary 22, 2018 at 7:28 am in reply to: How to avoid TotalLimitsExceeded warning in Salesforce?Hi Manpreet,
Reason why It Occurs:
The maximum number of given API calls allowed for your Salesforce Organization have been reached. Can occur after syncing large amounts of data.
Resolution:
API calls are reset 24 hours from when they are used. To learn more about Salesforce API calls, please refer to their API Usage Metering.
As per this we need to wait till or less, until its resetting itself.
-
Piyush
MemberJanuary 18, 2018 at 8:47 am in reply to: How we can change the Grant access using role hierarchy for standard objects in Salesforce?Hi Manpreet,
It is not possible , by default Grant Access Using Hierarchies options are enabled for standard objects and they can not be changed. For custom objects we can change “Grant Access Using Hierarchies “settings .
Hope this help you.
-
Hi Manpreet,
Transient keyword to declare instance variables that can't be saved, and shouldn't be transmitted as part of the view state for a Visualforce page.
Given below example is use of transient variable where we have created two Date Time and populating. Refresh button is using for refresh the VF page however only time T2 will change at because of this is declare as transient.
<apex:page controller="TransientController">
T1: {!t1} <br/>
T2: {!t2} <br/>
<apex:form>
<apex:commandLink value="refresh"/>
</apex:form>
</apex:page>public class TransientController {
DateTime t1;
transient DateTime t2;public String getT1() {
if (t1 == null) t1 = System.now();
return '' + t1;
}public String getT2() {
if (t2 == null) t2 = System.now();
return '' + t2;
}
}Hope this will help you .
- This reply was modified 6 years, 10 months ago by Piyush.
-
Piyush
MemberJanuary 17, 2018 at 7:34 am in reply to: What is the use of External Id in Salesforce?Hi Manpreet,
When a field is marked as an External ID, its values can be used to match and associate related records to one another. External IDs are commonly used to store unique record identifiers from external systems and allow for routinely loading data into Salesforce without having to prepare your import file with existing or related Salesforce record IDs each time.
- External ID prevent duplicate records from being created as a result of the import operation.
- If we perform an upsert operation using the External ID filed it Insert for new records or perform an Update for existing records.
-
Piyush
MemberJanuary 11, 2018 at 10:08 am in reply to: How to give a permissions of business units in Salesforce marketing cloud?Hi Rajan,
In the Admin Tab:
- Click on the “Admin” Tab Click on “Business Units”
- Search for your Business Unit by typing parts of the name in the “Search”
- Press Search
- Choose your Business Unit
- Click Define Subscriber filter
A prerequisite to this will be to create a Subscriber Profile Attribute from Subscribers > Profile Management.
You will need to set the Subscriber with the profile attribute in order to define which business unit / Subscriber Filter they shall apply to.
Hope this will help you ...
-
Piyush
MemberJanuary 11, 2018 at 8:23 am in reply to: How to get the access token or session id for integration by using standard API in Salesforce?Hi Abhishek,
You can get the session id using this:-
String sessionID = UserInfo.getSessionId();
You can get the accessToken using this:-
Create connected app then fill all the details then call this https method it will provide you access token
public final String clientId ='';
public final string clientSecret='';
public final String userName = '';
public final String password = '';
HttpRequest req = new HttpRequest();
req.setMethod('POST');
req.setEndpoint(endPointUrl);
req.setBody('grant_type=password' +
'&client_id='+ clientId +
'&client_secret='+ clientSecret +
'&username=' + EncodingUtil.urlEncode(userName, 'UTF-8') +
'&password=' + EncodingUtil.urlEncode(password, 'UTF-8'));
Http h = new Http();
Httpresponse res = h.send(req);
string body = res.getBody();system.debug('***** Body -- '+ body);
wrapperForHttp wObj = (wrapperForHttp)Json.deserialize(body,wrapperForHttp.class);
string accessToken = wObj.access_token;
system.debug('***** accessToken -- '+ accessToken);Hope this help you..
- This reply was modified 6 years, 10 months ago by Piyush.
-
Piyush
MemberJanuary 11, 2018 at 8:16 am in reply to: How to Validate string that is Numeric in AngularJs ?Hi Adarsh,
Thanks for the response but I need this functionality in AngularJS. In AngularJs we did not support "return event.charCode".
-
Piyush
MemberJanuary 10, 2018 at 9:47 am in reply to: How to delete duplicate records in Salesforce?Hi Ankit,
How you identify that the record was duplicate. Can you please explain more on that.
-
Hi Swapnail,
Can you please explain more on this Question so we can provide some solutions or view on that .
Thanks.
-
Piyush
MemberJanuary 9, 2018 at 1:51 pm in reply to: What are the differences between Workflows and Process Builder in Salesforce?Process Builder
The Lightning Process Builder is a new workflow tool that helps you easily automate your business processes by providing a powerful and user-friendly visual representation of your process as you build it. Instead of doing this repetitive work manually, you can configure processes to do it automatically. The Process Builder’s simple and powerful design allows you to automate processes.You can use the Process Builder to perform more actions than with workflow:
- Create a record
- Update any related record
- Use a quick action to create a record, update a record, or log a call
- Launch a flow
- Send an email
- Post to Chatter
- Submit for approval
- Call apex methods
- But the process builder doesn’t support outbound messages.
Workflow
Workflow is business logic that evaluates records as they are created and updated and determines if an automated action needs to occur. In a way it allows records to speak up or do something – update data, notify people or external systems.Workflow does only 4 actions
- Create Task
- Update Field
- Email Alert
- Outbound Message
Hope this will help you.
- This reply was modified 6 years, 10 months ago by Piyush.
-
Piyush
MemberJanuary 9, 2018 at 1:46 pm in reply to: What is the use of Custom Label in Salesforce?Hi Kapil,
Custom labels enable developers to create multilingual applications by automatically presenting information (for example, help text or error messages) in a user’s native language. Custom labels are custom text values that can be accessed from Apex classes, Visualforce pages, or Lightning components. The values can be translated into any language Salesforce supports. We have also use custom label in our visulforce page to make that label dynamically .
Thanks
-
Piyush
MemberJanuary 9, 2018 at 10:42 am in reply to: How is Marketing Cloud different from Sales Cloud in Salesforce?Hi Suryadeep,
Marketing Cloud is a platform comprised of several products that helps you reach your customers at the right time, with the right message, and in the right way. It helps you connect with your customers via email, text message, push notification, dynamic web and landing pages, Facebook, Twitter, LinkedIn, Instagram…whew! That’s right, it’s about way more than just email.
Sales Cloud is a customer relationship management (CRM) platform designed to support sales, marketing and customer support in both business-to-business (B2B) and business-to-customer (B2C) contexts.
"Sales Cloud" refers to the "sales" module in salesforce.com. It includes Leads, Accounts, Contacts, Contracts, Opportunities, Products, Pricebooks, Quotes, and Campaigns (limits apply).Thanks
-
Piyush
MemberJanuary 9, 2018 at 9:07 am in reply to: What is the difference between SaaS and PaaS concepts in Salesforce?Hi Suryadeep,
Software as a service (or SaaS) is a way of delivering applications over the Internet—as a service. Instead of installing and maintaining software, you simply access it via the Internet, freeing yourself from complex software and hardware management.
Platform as a service (PaaS) or application platform as a service (aPaaS) is a category of cloud computing services that provides a platform allowing customers to develop, run, and manage applications without the complexity of building and maintaining the infrastructure typically associated with developing and launching an app.
Thanks.
-
Hi Manpreet,
Have you add attribute docType="html-5.0" in your apex page tag ? If Not please add this attribute it will resolve your issue.
Thanks.
-
Piyush
MemberJanuary 9, 2018 at 8:16 am in reply to: How to insert duplicate values using Salesforce DataLoader?Hi Ravi,
1) Have you checked that if the field "ZipCode" is marked as unique? If yes then deselect the checkbox and then try again.
2) Check if there is any duplicate rule on that Object.
3) Also, check if there is any Trigger is active .Thanks
-
Piyush
MemberJanuary 9, 2018 at 7:55 am in reply to: Url hacking alternative in Salesforce Lightning?Hi Manpreet,
In AURA , it is made easy to pass the URL parameters to the controllers. This only works for attributes of type String and must be appended in .app resource. You can’t request URL parameter value for a .cmp resource directly.
Please have a look on this blog :- https://www.forcetalks.com/blog/passing-url-parameters-to-apex-controller-in-a-lightning-components/
Thanks,
Piyush Kumar -
Piyush
MemberNovember 4, 2016 at 1:49 pm in reply to: How to get a beep sound in Salesforce Visualforce Page?Hello Tanu ,
It's not possible to do directly in JavaScript or Visualforce page. You'll need to embed a short WAV file in the HTML, and then play that via code.
-
Piyush
MemberNovember 4, 2016 at 1:46 pm in reply to: The autocomplete functionality is not working with custom lookupHello Tannu,
Have you enabling Auto Complete for your custom object on the search page?
Please follow the process to use Custom lookup in the given blog :- http://opfocus.com/visualforce-autocomplete-lookup-fields/
This may be helps you.
-
Piyush
MemberSeptember 15, 2016 at 2:39 pm in reply to: How many fields can be grouped in the soql(Salesforce Object Query Language)?Hello Mohit,
Maximum 32 fields can be grouped in SOQL .
Thanks.
-
Piyush
MemberAugust 26, 2016 at 2:35 pm in reply to: How to delete all contacts which are not related to any account?Hello ,
Try this sample of code to delete the contacts which are not associated with Account.
List<Contact> conList =[select Id,Name from contact where AccountId = null];
System.debug('List of contacts Whoes Account Id is null'+conList);
delete conList;Thanks.
-
Piyush
MemberAugust 26, 2016 at 2:23 pm in reply to: How can we hide 'new' Button on Sobject tab in salesforce?Hello
Yes, You can hide "new" button on Standard Object using the home page component . In background of the home page component you should write your java script code to hide the new button.
This might be helped you to hide New button.
Thanks.
- This reply was modified 8 years, 3 months ago by Piyush.
-
Piyush
MemberAugust 26, 2016 at 12:39 pm in reply to: Uncaught ReferenceError: jQuery is not defined throws at /resource/select_3/select2.min.js:4:188Hi Arun,
You have to add one more JQuery file named "jquery-2.2.3.min.js" before the "select2.min.js" script. When the "select2.min.js" file load it can not find the main jquery file that's why it was failed.
Regards
Piyush Kumar