Forum Replies Created

Page 4 of 12
  • PRANAV

    Member
    March 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.

  • 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 articleemailtrack

    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.

     

  • 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

    Member
    March 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.

  • 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.

  • 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.

  • 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.

  • 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.

     

  • PRANAV

    Member
    March 20, 2018 at 10:28 am in reply to: What is metadata API in Salesforce?

    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.

  • 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.

  • 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

  • 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.

  • 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.

  • 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.

  • 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

    Member
    March 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

    Member
    March 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

  • 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.

     

  • 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

    Member
    March 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

    Member
    March 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.

    1. Open Quick Text in your app.
      In Salesforce Classic, click the Quick Text tab.
      In Lightning Experience, select Quick Text from the item picker.
    2. Click New.
      If you have more than one quick text record type, select a record type for the new message, and then click Continue.
    3. Enter a message name.
      Use a name that helps users identify when to use this message.
    4. Enter the message.
      The message can include line breaks, lists, special characters, merge fields, and up to 4,000 characters.
    5. 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
    6. 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.
    7. Click Save.

    Hope this helps you.

  • PRANAV

    Member
    March 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

    Member
    March 15, 2018 at 8:26 am in reply to: Value not shown in a Picklist Field?

    Hi Shubham,

    This issue may occur when you add picklist list value but you dont assign that value to the record type you are using.

    picklist Hope this helps you.

  • PRANAV

    Member
    March 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:

    1. Click on "Setup" button.
    2. Search "Quick Text Settings" under Quick Text option in "Quick Search/Find" box.
    3. Now you can disable it by unchecking the checkbox.
    4. Then click on "Save" button.

    Hope this helps you more.

  • PRANAV

    Member
    March 14, 2018 at 3:57 pm in reply to: How many records can we display on page for a report in Salesforce?

    Hi Kapil,

    report limits

    Hope this helps you.

Page 4 of 12