Forum Replies Created

Page 2 of 3
  • Ravi

    Member
    June 24, 2016 at 2:39 pm in reply to: Content Deliveries in SF1

    Hi Prakhar,

    It's look like currently this functionality is not supported by salesforce . You can create a new salesforce idea for this functionality. May be salesforce add this functionality in further release.

     

  • Ravi

    Member
    June 17, 2016 at 10:38 am in reply to: How do we export dashboard into a PDF report in Salesforce?

    Hi Jay,

    There is no standard functionality that will allow you to do this,but you can do this by doing some manual work:
    1. First Create a visualforce page with renderAs = pdf.
    2. Go to your dashboard panel and copy the image url.
    3. Add the copied image url inside <img></imag> tag on visualforce page.

    <apex:page name="CustomDashBoard" renderAs="PDF" showHeader="true" sidebar="false" title="Custom DashBoard">
    <p><img src = "your image url"></img></p>
    <p><img src = "your image url1"></img></p>
    <p><img src = "your image url2"></img></p>
    <p>you can also customize image size, text format according your requirement </p>
    </apaex:page>

    4.Create a new Visual Force tab for this page.
    Since your page has renderAs="PDF" you can export your dashboard as pdf.

    There are also some Apps on Appexchnage you can try:
    http://appexchange.salesforce.com/listingDetail?listingId=a0N30000001U40NEAS.
    http://appexchange.salesforce.com/listingDetail?listingId=a0N300000016am4EAA.
    https://login.salesforce.com/packaging/installPackage.apexp?p0=04tC0000000YaH0.

  • Ravi

    Member
    May 25, 2016 at 6:45 am in reply to: How to split a string by comma and single quotation mark in apex?

    Hi Himanshu,

    Try with this

    First remove all single quotes and then split by comma

    String str = '\'First Name\',\'Last Name\',\'Account Name\',\'Email\',\'Title\',\'Description\'';
    System.debug('===str==='+str);
    for(String strFinal: str.replace('\'', '').split(','))
    {
    System.debug('===Final val==='+strFinal);
    }

  • Hi Himanshu,

    You can write a one time batch and execute it using anonymous window in dev console.

  • Hi Himanshu,

    Maximum number of collection items that can be iterated in an iteration component such as <apex:pageBlockTable> and <apex:repeat> -- 1,0000

  • Ravi

    Member
    May 25, 2016 at 6:35 am in reply to: How to tell if a field is not supported in metadata API?

    Hi Himanshu,

    You can validate before deployment. There is no way to get error before performing validation or deployment.

  • Ravi

    Member
    May 25, 2016 at 6:32 am in reply to: Chatter feeds not appearing correctly on Vf page

    Hi Himanshu,

    Try this :

    <apex:page sidebar="false" showHeader="false">

    <chatter:newsfeed />

    </apex:page>

    If you are facing any specific problem then mention it in your question.

  • Ravi

    Member
    May 25, 2016 at 6:29 am in reply to: Get creation date of metadata

    Hi Nitish,

    You could also use Tooling API Objects to get the Created Date of metadata (not all but some supported ones).

    For example, executing a sample query in query editor tab of developer console will be like this.

    select DeveloperName, CreatedDate from CustomObject where CreatedDate < TODAY

  • Ravi

    Member
    May 25, 2016 at 6:28 am in reply to: What is the entitlement process in Salesforce?

    Hi Naman,

    Entitlement processes are timelines that include all the steps (or milestones) that your support team must complete to resolve support records like cases or work orders. Each process includes the logic necessary to determine how to enforce the correct service level for your customers

    Entitlement process versioning lets you update existing entitlement processes, even if they’re assigned to active entitlements and cases. This can be useful if the business rules behind your entitlement processes change, for example, or if you need to create multiple versions of the same entitlement process that have only minor differences.

  • Hi Piyush,

    For Person accounts, custom fields ends with "__pc" and custom relationship ends with "__pr".

    • This reply was modified 8 years, 8 months ago by  Ravi.
  • Ravi

    Member
    April 30, 2016 at 2:20 pm in reply to: What are CRUD/FLS issues in Salesforce? How can it be resolved?

    Force.com allows developers and administrators to control access to data at many different levels. You can control access at the object-level, the record-level, and at the field-level.

    Object-level security within the salesforce.com environment is referred to as Create-Read-Update-Delete (CRUD) access. CRUD settings are applied at the profile level and can be used to restrict the actions that users can take on each type of standard and custom object. An example use of CRUD would be to remove the ability for a custom "auditor" profile to update, create, or delete any Account record.

    Field-level security (FLS) is configured similarly to CRUD but allows administrators to define the profiles that can see and write to most fields of standard and custom objects.

  • Ravi

    Member
    April 30, 2016 at 11:37 am in reply to: Which is better Heroku connect tool or custom integration?

    Hello Abhinav ,
    Why Heroku Connect is better?, while it will cost me a fortune to use it.

    • This reply was modified 8 years, 8 months ago by  Ravi.
  • Ravi

    Member
    April 30, 2016 at 11:16 am in reply to: Testing private method in Salesforce

    Hi abhinav,
    I am not asking how to test private method, my question is why should we test private method while it already called by another method.

    • This reply was modified 8 years, 8 months ago by  Ravi.
  • Ravi

    Member
    April 30, 2016 at 9:42 am in reply to: Facing SSL Certificate Error. Can Anyone Help?

    Hi Gaurav,

    Refer this link It may help you :

    https://developer.salesforce.com/forums/?id=906F0000000BF1rIAG.

  • Ravi

    Member
    April 30, 2016 at 9:38 am in reply to: Is it possible to fire a worlfow rule when formula field updates?

    Workflow doesn't fire on formula fields, as the field isn't stored in the database and so doesn't get updated. What happens is when you retrieve the record, the value is calculated and the field populated.

    There's a couple of ways around this:

    (1) Don't use a formula field, but use a regular field and a workflow field update that replicates the formula.  That way the field will be stored in the database.

    (2) Replicate the formula in your workflow rule and fire it every time a record is created or edited.

  • Ravi

    Member
    April 30, 2016 at 9:38 am in reply to: Using formula field in workflow rule action

    Workflow doesn't fire on formula fields, as the field isn't stored in the database and so doesn't get updated.  What happens is when you retrieve the record, the value is calculated and the field populated.

    There's a couple of ways around this:

    (1) Don't use a formula field, but use a regular field and a workflow field update that replicates the formula.  That way the field will be stored in the database.

    (2) Replicate the formula in your workflow rule and fire it every time a record is created or edited.

  • Ravi

    Member
    April 30, 2016 at 9:31 am in reply to: What is the difference between SOQL and SOSL?

    SOQL:
    SOSL:
    SOQL (Salesforce Object Query Language ) retrieves the records from the database by using “SELECT” keyword.
    SOSL(Salesforce Object Search Language) retrieves the records from the database by using the “FIND” keyword.
    By Using SOQL we can know in Which objects or fields the data resides.
    By using SOSL, we don’t know in which object or field the data resides.
    We can retrieve data from single object or from multiple objects that are related to each other.
    We can retrieve multiple objects and field values efficiently when the objects may or may not be related to each other.
    We can Query on only one table.
    We can query on multiple tables.

  • Refer this link for better understanding of How to publish an App on AppExchange

    https://developer.salesforce.com/page/Publish_Your_First_App_with_AppExchange_Checkout.

  • Ravi

    Member
    April 30, 2016 at 9:23 am in reply to: Getting error of 'BLOB is not a valid UTF-8 string'.

    Hi Nitish,

    The Blob type only supports UTF-8 encoded strings, you must ensure that the file your uploading complies with this encoding, otherwise you will get this error in cases where you have special characters.

  • Ravi

    Member
    April 28, 2016 at 1:39 pm in reply to: How to look for a string from a List of strings?

    Hi Gourav,

    You can do it without iterating list  by using regex:

    if (myList.toString().matches(".*\\bA\\b.*"))

    You have to make regex of search string.

  • Ravi

    Member
    April 28, 2016 at 11:46 am in reply to: What are the best practices followed when writing a test class?

    Hi Shubham,

    There are many resources available online for best practices to be followed when you are doing a unit testing.

    How to Write Good Unit Tests:

    1. Create Your Own Test Data.

    2. Test Small Parts.

    3. Test All Scenarios

    4. Always Assert

  • Ravi

    Member
    April 27, 2016 at 1:20 pm in reply to: How to disable the Person Account?

    Hello,

    Yes, but may be we can disable it by logging a case to salesforce. Salesforce guys can help us with that.

  • Ravi

    Member
    April 27, 2016 at 8:31 am in reply to: How do I change the date format?

    Hi Utsav,

    You can use  toUpperCase() method of string class.First you have to convert your date into string .

    Date testingDate = '24-Apr-2016';
    System.debug('testingDate >>>>>'+testingDate.toString().toUpperCase() +'<<<<<<<testingDate ');
    14:00:03:003 USER_DEBUG [2]|DEBUG|testingDate >>>>>24-APR-2016<<<<<<<testingDate
    • This reply was modified 8 years, 8 months ago by  Ravi.
  • Ravi

    Member
    April 27, 2016 at 7:01 am in reply to: Sharepoint Salesforce Integration - Getting Error "Moved Permanently"

    Hi Gaurav,

    A status code of 301 tells a client that the resource they asked for has permanently moved to a new location. The response should also include this location. It tells the client to use the new URL the next time it wants to fetch the same resource.

    If the Web server does not return an alternative URL with the 301 response, then either the Web server sofware itself is defective or your Webmaster has not set up the URL redirection correctly.

  • Ravi

    Member
    April 26, 2016 at 11:00 am in reply to: How to define width of Column in pageBlockTable?

    When you will use PageBlockTable inside PageBlockSection ,table will be like  this.

    When you will use PageBlockTable inside pageBlock table, table will be like this.
    @Gaurav

    • This reply was modified 8 years, 8 months ago by  Ravi.
Page 2 of 3