PRANAV
IndividualForum Replies Created
-
PRANAV
MemberMarch 21, 2018 at 11:00 am in reply to: Will one workflow affect the other workflow in Salesforce?Hi,
Yes, If one workflow field update one field and there is another workflow which gets trigger (provided that on field update "Re-evaluate Workflow Rules after Field Change" is checked).
Hope this helps you.
-
PRANAV
MemberMarch 21, 2018 at 10:52 am in reply to: When i am sending Email from Batch Class, why am i not getting email tracking in HTML Email Status?Hi Parv,
First, for tracking Email you have to enable its setting by following the below steps:
- From Setup, enter Activity Settings in the Quick Find box, then select Activity Settings.
- Select Enable Email Tracking.
- Click Submit.
Second, please check your environment in which you are running your code because if you are testing it in sandbox then there might be some issues as per the recent Salesforce knowledge article
As there's no fundamental reason why triggers would track the email while batchable classes would not.
Third, make sure you use this setSaveAsActivity(true) or by default its True if you don't define this.
Hope this helps you.
-
PRANAV
MemberMarch 21, 2018 at 9:32 am in reply to: How can we create a custom report with "Campaign with Influenced Opportunities" report type?Hi All,
I am able to get this done.
So I am sharing my workaround for this in my New Blog View Campaign Influence Report.
Hope this will help others also.
-
PRANAV
MemberMarch 21, 2018 at 8:58 am in reply to: How to get all the field names of an object using SOQL?Hi Kapil,
The below code snippet will help you
Map <String, Schema.SObjectType> schemaMap = Schema.getGlobalDescribe();
Map <String, Schema.SObjectField> fieldMap = schemaMap.get('Account').getDescribe().fields.getMap();
for(Schema.SObjectField sfield : fieldMap.Values())
{
schema.describefieldresult dfield = sfield.getDescribe();
system.debug('@@@API Name : ' + dfield.getname());
system.debug('####Label Name : ' + dfield.getLabel ());
}From this you will get the API Name as well as Label Name. For another sObject replace Account with your sObject.
Hope this helps you.
-
PRANAV
MemberMarch 21, 2018 at 8:28 am in reply to: Can i modify CreatedDate or LastModifiedDate of EmailMessage object on insert or update?Hi Ratnakar,
If you import data into Salesforce and want to retain the audit field values of the source system, you can set the values for audit fields on the following objects: Account, ArticleVersion, Attachment, CampaignMember, Case, CaseComment, Contact, ContentVersion, Contract, Event, Idea, IdeaComment, Lead, Opportunity, Question, Task, Vote, and custom objects. The only audit field you cannot set a value for is systemModstamp.
So I think you cant change the audit fields of EmailMessage.
Hope this helps you.
-
PRANAV
MemberMarch 20, 2018 at 2:31 pm in reply to: How can we find the deleted records in After delete trigger in Salesforce?Hi Kapil,
To get or Query deleted records you need to use ALL ROWS So your query will be
List<Object__c> lstTriggerOld = trigger.old;
List<Object__c> lstAllRecords = [SELECT Id FROM Object__c WHERE ID != NULL];
List<Object__c> deletedRecords = [SELECT Id FROM Object__c WHERE ID IN :lstTriggerOld AND ID NOT IN : lstAllRecords ALL ROWS];
Hope this helps you.
-
PRANAV
MemberMarch 20, 2018 at 2:27 pm in reply to: Is there any way to get all the fields of the sObject without using their API names?Hi Kapil,
You can use “WORKBENCH” for this. In workbench you have to first login with your salesforce credentials and then go to Queries tab and select SOQL Query. There you have option to select your object and all their fields with filter and sort functionality also.
Hope this will helps you.
-
PRANAV
MemberMarch 20, 2018 at 11:59 am in reply to: How to add error on a Salesforce visualforce page through apex class and through the visualforce page?Hi,
You can add error on a visualforce page through the mention below error messages.
ApexPages.addmessage(new ApexPages.message(ApexPages.severity.FATAL,’Please enter some value’));
ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,’Please enter some value’));
ApexPages.addmessage(new ApexPages.message(ApexPages.severity.WARNING,’Please enter some value’));
ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO,’Please enter some value’));
ApexPages.addmessage(new ApexPages.message(ApexPages.severity.CONFIRM,’Please enter some value’));
Hope this helps you more. -
Hi,
Most applications manipulate data, which is often stored in a database. Typically this data is information such as Account details or Contact information. However, you can consider the source code for the application itself as data that provides the information on how your application looks, feels, and functions. You can refer to this information as metadata.
Use Metadata API to retrieve, deploy, create, update or delete customization information, such as custom object definitions and page layouts, for your organization. This API is intended for managing customizations and for building tools that can manage the metadata model, not the data itself. To create, retrieve, update or delete records, such as accounts or leads, use data SOAP API or REST API.
For more info you can refer to the Standard Salesforce Guide.
-
PRANAV
MemberMarch 19, 2018 at 2:58 pm in reply to: How to use Salesforce Custom Metadata Loader to load bulk records in one go?Hi Kapil,
The custom metadata loader lets you load or update up to 200 records with a single call.
For its more info you can search "Load or Update Records with the Custom Metadata Loader" in the Salesforce Help Articles.
You can get a transparent clarification regarding this.
-
PRANAV
MemberMarch 19, 2018 at 2:36 pm in reply to: What are the steps for generating documents using Nintex with Salesforce?Hi Kapil,
You can see the following forcetalks blog for this
Click here to go to Document Generation in Salesforce with Nintex DocGen Blog.Hope this helps you
-
PRANAV
MemberMarch 19, 2018 at 2:34 pm in reply to: Which is better Nintex or Conga composer for generating of documents and why?Hi Kapil,
Nintex Document Generation (formerly Drawloop) lets you tap into content from Salesforce data, Apex or external sources. Use predefined templates to generate high impact document packages using any combination of Word, Excel, PowerPoint, PDF or Visualforce pages. Route generated documents to virtually anywhere via email, e-Signature or Nintex Workflow.
Conga Composer lets you create templates & produce consistent, on-brand documents automatically in one click, using ANY standard or custom Salesforce object. Eliminate time-consuming, error-prone manual tasks. You can scale up to produce 1,000s of documents a day without more staff.
WebMerge automates your document creation so you can get back to business. Automatically merge Salesforce object data into a PDF, Word document, Excel spreadsheet, or PowerPoint presentation in an instant. Never copy and paste again!
And there are alot more apps on appexchange that performs document generation task with different customizations, So it upto you or your business logic which app you want to use. Because there are many factors that changes you app selection {Like App Pricing,etc}
Hope this helps you.
-
PRANAV
MemberMarch 19, 2018 at 1:56 pm in reply to: What is the actual use of Serialization and Deserialization of a JSON?Hi Kapil,
Deserializes the specified JSON string into an Apex object of the specified type.
Serializes Apex objects into JSON content.If you didn't serialize the object into JSON, then the object would not be in a format that the consumer (the system who did the request) would understand. The purpose of serializing it into JSON is so that the message will be a format that can be understood and from there, deserialize it into an object type that makes sense for the consumer.
Hope this helps you.
-
PRANAV
MemberMarch 19, 2018 at 10:55 am in reply to: How to get values stored in custom metadata type object in Salesforce Apex?Hi Kapil,
The Custom Metadata Type has a suffix of __mdt instead of __c (for Custom objects/fields).
Custom metadata type field names have a suffix of __c, like other custom fields.
You can do query like this
SELECT Entity_Relationship__c, Field_Relationship__c, Default__c FROM Source_Default_Value__mdt WHERE Entity_Relationship__c = 'Account'
For more you can refer to the standard salesforce guide "Custom Metadata Types
Implementation Guide" and practise this on Trailhead "Custom Metadata Types".Hope this helps you.
-
PRANAV
MemberMarch 15, 2018 at 1:59 pm in reply to: Using Apex code for automatic generation of documents by nintex for Salesforce Objects?Hi Ankit,
Yes, you can write your own customize apex code. To do this you can refer to their developer API reference guide.
Here's the link https://help.nintex.com/en-US/sdks/docgen/
Thanks
-
PRANAV
MemberMarch 15, 2018 at 1:56 pm in reply to: How to enable outbound message for a Salesforce org?Hi,
Contact Salesforce support with the following information to enable outbound messages for a Salesforce Organization:
1. What is Organization ID of the production or sandbox? (Navigate to Setup > Company Profile > Company Information):
2. Are you the system administrator authorized on behalf of this organization to request this feature?:
Once this feature is enabled, the following options will be visible under SetUp menu;1. Outbound Message Notification
SetUp | Monitor | Outbound Message Notifications
2. Failed Outbound Messages
SetUp | Monitor | Outbound Messages | Failed Outbound Messages
Thanks
-
PRANAV
MemberMarch 15, 2018 at 1:55 pm in reply to: Which one to use and why - JavaScript Remoting and Remote Objects?Hi Kapil,
Visualforce Remote Objects:
- Makes basic “CRUD” object access easy
- Doesn’t require any Apex code
- Supports minimal server-side application logic
- Doesn’t provide automatic relationship traversals; you must look up related objects yourself.
JavaScript Remoting:
- Requires both JavaScript and Apex code
- Supports complex server-side application logic
- Handles complex object relationships better
- Uses network connections (even) more efficiently
Thanks
-
PRANAV
MemberMarch 15, 2018 at 1:54 pm in reply to: What is the difference between apex:selectOption and apex:selectList?Hi Kapil,
apex:selectOption
A possible value for an <apex:selectCheckboxes> or <apex:selectList> component. The <apex:selectOption>component must be a child of one of those components.
This component supports HTML pass-through attributes using the "html-" prefix. Pass-through attributes are attached to the generated <input> tag for components within an <apex:selectCheckboxes> or <apex:selectRadio> parent component, or to the generated <option> tag for components within an <apex:selectList> parent component.
apex:selectList
A list of options that allows users to select only one value or multiple values at a time, depending on the value of its multiselect attribute.
This component supports HTML pass-through attributes using the "html-" prefix. Pass-through attributes are attached to the generated <select> tag.
Hope this helps you.
-
PRANAV
MemberMarch 15, 2018 at 1:51 pm in reply to: How to get global picklist value set in a Salesforce Visualforce page?Hi Kapil,
It doesn't look like it's possible to access global picklists in Apex/Visualforce right now. At least, not the same way that you'd access a fieldset or a (Hierarchy) Custom Setting.
Hope this helps you.
-
PRANAV
MemberMarch 15, 2018 at 9:16 am in reply to: Why CSS is not working in PDF created by Salesforce Visualforce?Hi Saurabh,
With addition to the Suraj's response, you can also check you use the below code snippet
<apex:page renderAs="pdf" showHeader="false" sidebar="false" standardStylesheets="false" applyBodyTag="false" applyHtmlTag="false">
Might be the standard style sheet overwrites your custom CSS.
Hope this helps you more.
-
PRANAV
MemberMarch 15, 2018 at 8:45 am in reply to: How to insert Quick Text in Salesforce Lightning?Hi Kapil,
In Setup, add quick text to your app to let your users view the quick text list view.
- Open Quick Text in your app.
In Salesforce Classic, click the Quick Text tab.
In Lightning Experience, select Quick Text from the item picker. - Click New.
If you have more than one quick text record type, select a record type for the new message, and then click Continue. - Enter a message name.
Use a name that helps users identify when to use this message. - Enter the message.
The message can include line breaks, lists, special characters, merge fields, and up to 4,000 characters. - Select the channels in which you want the message to be available.
Depending on which features are enabled in your org, these channels might be available.Email—the Email action
Live Agent—Live Agent in the Service Console
Phone—the Log a Call action
Portal—a community or a customer portal
Internal—works with internal fields, like the Change Status action - Select a category.
In orgs created before Spring ’18 that enabled quick text in Salesforce Classic, this field is required and a default Category is provided for you. In orgs created after Spring ’18, this field isn’t required. - Click Save.
Hope this helps you.
- Open Quick Text in your app.
-
PRANAV
MemberMarch 15, 2018 at 8:33 am in reply to: How can we remove the action column in list view?Hi,
It is not possible to hide the action column in the related list/list view page through standard options. The only way to go about doing this would be through visualforce pages. You would need to replace the standard pages with visualforce pages and only then you will have the control to show/hide the columns.
Also this "Enable Action Links (Edit & Del) to be hidden on ListViews and Related Lists" is an idea on Salesforce Community and its in UNDER CONSIDERATION.
Hope this helps you.
-
-
PRANAV
MemberMarch 14, 2018 at 4:07 pm in reply to: How to disable Quick Text in Salesforce Classic after enabling it?Hi Kapil
In addition to the above response, you can find this by following the bellow steps:
- Click on "Setup" button.
- Search "Quick Text Settings" under Quick Text option in "Quick Search/Find" box.
- Now you can disable it by unchecking the checkbox.
- Then click on "Save" button.
Hope this helps you more.
-
PRANAV
MemberMarch 14, 2018 at 3:57 pm in reply to: How many records can we display on page for a report in Salesforce?