Forum Replies Created

Page 3 of 7
  • Gourav

    Member
    June 10, 2016 at 1:10 pm in reply to: Remove a process builder component from a managed package?

    Looking at the ISV Guide ,It is not developer deletable .Hence I suspect you wont be able to remove it .You can just deactivate it .

    While it is Subscriber deletable meaning your end users can delete it .

  • Gourav

    Member
    June 10, 2016 at 1:07 pm in reply to: Attachments auto download in Spring 16? Workarounds?

    With an HTML attachment on an opportunity the File Download servlet causes the file to download.  There's a Setup option to control the behavior of file links you have to configure your org accordingly.

  • Can you post a screen shot of your Content Area folder -- one that includes the list of the Content Areas within it?

  • Gourav

    Member
    June 10, 2016 at 1:03 pm in reply to: Can I delete remote site setting url from managed package?

    Hi Bhavesh,

    Yes you can delete remove site setting from managed packaged.

    These are the steps:-

    Go to setup.
    Find remote site setting and click on it
    Find the remote site setting record you want to delete and click on Del button.
    Hope this will help you.

  • No. The decision to allow development of pages in production was based on the separation of presentation and logic. Controllers are code and need to follow our deployment process.

  • Gourav

    Member
    June 9, 2016 at 2:04 pm in reply to: Does apex:inputField support a master-detail relationship?

    Yes, the lookup icon should appear this is standard behaviour.

  • Gourav

    Member
    June 9, 2016 at 2:02 pm in reply to: How to use the retrievePkg with the Force Migration Tool?

    I don't believe there is a method to pull down a list of all available packages, but you should be able to use a known name by navigating to Setup -> App Setup -> Installed Packages and using the value in the "Package Name" column (including any spaces in the name). I just confirmed this with several of our installed packages.

  • Gourav

    Member
    June 9, 2016 at 2:02 pm in reply to: Inline within Page layout with Visualforce

    You have to create your VF page using standard controller for your object only then you can add that VF page inline in page layout for object.

    Steps are like:-

    • Click on page layout.
    • Create a new section for inline page.
    • Go to VF pages section in page layout
    • select your VF page and drop that in new section
  • When you're in Visualforce, your domain will always be something like c.cs7.visualforce.com. However, other salesforce pages such as standard pages will be delivered by cs7.salesforce.com Your session Id from within c.cs7.visualforce.com will NOT work within cs7.salesforce.com So to execute an HTTP get on a resource in the alternate domain, you have to authenticate with that new domain. This can be done in one of 2 ways:

    • Load either the Enterprise or Partner WSDL back into Salesforce and use the "Login" API call.
    • Since you're only using one API call, it might be adequate to just create your own XML Soap message for the login. You should be able to easily search the response Body for the session Id.

    Once you have the session Id, execute a single http GET to the corresponding domain and you won't be redirected.

  • Gourav

    Member
    June 9, 2016 at 1:47 pm in reply to: Email template merge fields not populating when sent via Apex

    Provide your Email template code to understand what are you doing in that. Which field you are not able to get the value?

  • Can you provide the SOQL query you are using to get values. It will be helpful to understand what problem you are facing.

  • I would suggest to use workflow rule.

    Setup->Build->Create->Workflow & Approvals -> Workflow rules->New rule-> choose Lead object.

    Then, assuming you don't need to do anything else I would select "evalute the rule when the record is created". This will only trigger the rule once for that record. From there, you can go figure the selection criteria to trigger an email to the record owner that Web2Lead assigned to the lead. The wizard will walk you through but come back with questions if any.

  • SVG support along with document.createElementNS() is coming very soon - already in a scheduled patch branch. I'll double check on the release date but I believe it deploys tommorow night. We've filled in many other gaps in the secure virtual DOM API with more on the way in following patches. Please pardon our dust as we get this dialed in over the next few weeks and definitely keep letting us know when you hit missing methods/properties.

  • Gourav

    Member
    June 9, 2016 at 1:36 pm in reply to: How to use SVN without the IDE?

    Checkout: BrainEngine's IDE (they had a version that lives entirely on the cloud via FLEX or Silverlight I think) and it has SVN built in!

    If those guys are around they could talk about how they did it.

    I don't know if the online-version is available anymore?

    Anyways,

    Directly out of SFDC it wouldn't be possible without linking the meta-data API into your org as well as a lot of other customization.

  • Gourav

    Member
    June 8, 2016 at 11:48 am in reply to: Query Exception

    Yes, that means it's taking too long. A couple ways to get more CPU time are to put the code in an @future method (you get 60 seconds of CPU instead of just 10 seconds), or implement it as a Batch Apex job. Since both of these methods are asynchronous, the trigger and associated DML will complete before the calls to the AccountServices methods are made - but they will be called eventually. Would this work for you? or Try to filter your query to reduce number of records.

  • Gourav

    Member
    June 8, 2016 at 11:45 am in reply to: Email Service

    I’ve been doing some digging and the regex too complicated message is definitely based on the size of the files.  It looks like Email Services provides an entry point that allows developers to push in data sizes that far exceed the heap limits. The regex seems to be failing because of the heap supporting the regex. The only alternative is to cut the file sizes down or choose another integration approach

  • Hi Nitish, are you redirecting in your doAction function to another detail page? If so, this might be of interest, salesforce.stackexchange.com/questions/13430/…, but basically yes its a matter of marshalling your messages accross to the other page unless your other page reuses the same controller, could they share the same controller and thus state? In this case Visualforce runtime does not redirect simply changes the view / page.

  • Gourav

    Member
    June 8, 2016 at 11:28 am in reply to: What is limit of Salesforce to Salesforce Record Transfer?

    Refer this document for different limits in salesforce 2 salesforce transfer :-

    http://resources.docs.salesforce.com/200/20/en-us/sfdc/pdf/salesforce_app_limits_cheatsheet.pdf

  • Gourav

    Member
    June 8, 2016 at 10:57 am in reply to: Workflow rule with Flow trigger not working in production

    I'm guessing you have a formula in your flow? Also I'm assuming you're saving the new Opp ID to pass to the products2 create function?

    If this help please tell me or p[rovide some more detail about your flow

  • Gourav

    Member
    June 8, 2016 at 10:53 am in reply to: Is there a way to force execution of all validation rules?

    I don't think there is any out-of-the box way to do this. Maybe you can quickly do this with some anonymous Apex code:

    List<Opportunity> failingOppys = new List<Opportunity> ();
    for (Opportunity o : [SELECT Id FROM Opportunity]) // Here you should select all fields that may cause validation
    {
    Opportunity ocl = o.Clone (false, true, false, false);
    try {
    insert ocl;
    delete ocl;
    }
    catch (Exception e)
    {
    failingOppys.add (o);
    }
    }
    System.debug (failingOppys);
    This code is non-bulkified so you may hit some Apex limits after 100 records or so. Let me know if this approach could work for you and perhaps we could come up with a bulkified/batched version of it. How many opportunity records are we talking about?

  • Try this code hope this will help you also:-

    String name = 'mysite';

    Site site = [
    SELECT GuestUserId
    FROM Site
    WHERE Name = :name
    ];

    String path = '/sites/servlet.SiteDebugMode';
    PageReference pr = new PageReference(path);
    pr.getParameters().put('guid', site.GuestUserId);
    pr.getParameters().put('sitedebugmode', 'x');
    String url = pr.getContent().toString().substringAfter('URL=').substringBefore(path);

    System.debug(url); //eg "http://dev-bigass.cs81.force.com/mysite"

  • Hi

    You can use Schema class and its methods to check field level security of custom object before updating it.

    e.g

    Schema.sObjectType.Your_Object_API.fields.Field_API.isUpdateable()

  • You cannot customize the standard tab in that way. However, you could create a custom Visualforce Tab to replace it, to remove recently viewed list view:

    (1) If you want to take that route, first create the following Visualforce Page:

    <apex:page tabStyle="Account">
    <apex:enhancedList type="Account" customizable="true" height="600" />
    </apex:page>
    (2) Next you need to create a Custom Tab for it. Go to Setup > Create > Tabs. In the Visualforce Tabs section, click New. Select the Visualforce Page you created from (1). Find the appropriate Icon. I would probably set the visibility to Default Off.
    (3) You will now have two Account tabs, and so will want to hide the standard tab for all Profiles. To do so, go to Setup > Manage Users > Profiles > [Select Profile] > Object Settings >Accounts. Click Edit and change Tab Settings to Tab Hidden.

  • Gourav

    Member
    June 7, 2016 at 3:50 pm in reply to: Default Value for a field?

    Because its Master-Detail relationship, it is a mandatory field. So I don't think Workflow can work here. I need a way to pre-populate for that record type when the page loads

  • It is possible to show/hide fields based on Profiles. Go to Administer > Security Controls > Field Accessibility.

    http://i.stack.imgur.com/470dg.gif

    View post on imgur.com

Page 3 of 7