Forum Replies Created

Page 6 of 7
  • Gourav

    Member
    May 25, 2016 at 12:54 pm in reply to: What content management tools are available in Marketing Cloud?

    Marketing Cloud is the platform for personalized customer journeys — in every channel.

    There are some management tools in it:-

    1. Email Studio
    2. Mobile Studio
    3. Social Studio
    4. Web Studio
    5. Advertising Studio

    For more information on this please follow this link:- http://www.salesforce.com/in/marketing-cloud/features/

  • The canonical example of invoking a remote action shows three cases being handled: success, exception, and general failure:

    // just showing the handler passed to the remote action invocation, for brevity
    function(result, event){
    if (event.status) {
    // do something with result
    } else if (event.type === 'exception') {
    document.getElementById("responseErrors").innerHTML = event.message;
    } else {
    document.getElementById("responseErrors").innerHTML = event.message;
    }
    },

    Every example I've seen handles the else if and else cases identically. I can find no documentation of what values event.type may be when event.status is not true. Is this documented? Is there any reason I should not eliminate the "else if" block, and handle all failures in the same fashion (i.e., log the error)?

    I don't usually do the else if and I use a lot of @RemoteAction -- if you haven't handled the error on the server side and returned some useful exception code than there aren't any other known (documented) event.types

  • Gourav

    Member
    May 25, 2016 at 12:43 pm in reply to: Is it possible to add the mini page layout popup to a list column?

    I would use Javascript, jQuery, and qTip.

    You can place whatever you want in the qTip, depending on the requirements I would display the table your talking about in the qTip.

    If it's a more complex Visualforce page, you might want to use an iFrame.

    It's kind of hard to tell exactly what you want to display based on your code.

    You might have to build a custom VF page to display this. If your working with the related list display on a standard object page, you can't inject javascript in the same way.

  • No - it's not possible to retrieve a remote access app's consumer key/secret via Apex.

    The approach Chatter Desktop uses is the OAuth 2.0 'user agent' flow - the Chatter Desktop carries a consumer key, but no secret, since an attacker could just read it out of the app's binary.

  • Gourav

    Member
    May 25, 2016 at 12:41 pm in reply to: Add email to Case record via Email to Salesforce from Outlook

    If you are using Outlook as mentioned on the subject of this thread, you can use the Salesforce for outlook side panel to add emails directly to contact cases . For more help see this link:- https://www.salesforce.com/blog/2013/02/see-the-salesforce-side-panel-in-action.html

  • Gourav

    Member
    May 24, 2016 at 12:42 pm in reply to: Data Limits in Wave Analytics

    1 Dataset storage limit is 100 million rows. But you may have more then one dataset in your org so Maximum number of rows for all registered datasets combined have 250 million rows.

  • Gourav

    Member
    May 24, 2016 at 12:34 pm in reply to: Can I release my app from the developer org also?

    We need to be the partner before submitting app in AppExchange. Once you are signed up as a partner, create an AppExchange Publishing Org (APO). In the Partner Portal, you’ll see a big button at the top of the screen labeled, “Create A Test Org.” For org type, select “Partner Developer Org.” You will receive new credentials by email. Be sure to login and set your password before proceeding. Note that the system will pick a username for you. If you don’t like it, feel free to change it. The purpose of this org is to help you publish listings on AppExchange.

  • Gourav

    Member
    May 24, 2016 at 12:34 pm in reply to: Which Salesforce org is used to release the app on AppExchange?

    We need to be the partner before submitting app in AppExchange. Once you are signed up as a partner, create an AppExchange Publishing Org (APO). In the Partner Portal, you’ll see a big button at the top of the screen labeled, “Create A Test Org.” For org type, select “Partner Developer Org.” You will receive new credentials by email. Be sure to login and set your password before proceeding. Note that the system will pick a username for you. If you don’t like it, feel free to change it. The purpose of this org is to help you publish listings on AppExchange.

  • Try this approach to fulfill your requirement

    Create a method with return type PageReference and call this method from the page reference method. Finally call page reference method from your vf page. Basically when we call method from vf page we should have method return type PageReference.

  • I am afraid there is no direct attribute to accomplish this.

    But there are so many jQuery plug-ins are available online to do this. There are some link you can refer:-

  • No, Permission set doesn't override the permissions of System administrator permissions. it only work for other users.

  • Gourav

    Member
    May 24, 2016 at 11:21 am in reply to: Stub class from Generated WSDL

    Hi Bhavesh,

    Please provide sample XML you are using in request.

     

    As for reference try to remove all white spaces between tags and then try to pass that in your method. Or provide sample XML and your wsdl for more details.

  • Gourav

    Member
    May 24, 2016 at 11:13 am in reply to: What are call center channels?

    There are 4 type of channels in slaesforce to Set-up and maintain customer support Tools:-

    • Email Channel
    • Web and Social Channel
    • Call Center Channel
    • Web Chat Channel

    Call Center Channel:-

    Salesforce CRM Call Center seamlessly integrates Salesforce with third-party computer-telephony integration (CTI) systems. After a lightweight CTI adapter program has been installed on a Salesforce user's machine, the user can use the features of a CTI system through the Salesforce SoftPhone, a customizable call-control tool that appears in the footer of the Salesforce console or in sidebar of every Salesforce page.

    The SoftPhone allows Salesforce users to: Make Call, Receive Call, Quickly view all Salesforce records which are related to call, etc.

     

  • The Salesforce IP addresses can change, and you should use Salesforce IP Address to whitelist as a starting point.

    With that taken into account, you can use an existing web service to tell you what the IP address is (for that request at least).

    HttpRequest req = new HttpRequest();
    req.setEndpoint('http://icanhazip.com/');
    req.setMethod('GET');
    Http httpReq = new Http();
    HttpResponse res = httpReq.send(req);
    System.debug(res.getBody());

    Log output from na5.

    10:09:49:424 USER_DEBUG [6]|DEBUG|182.50.78.8
    Don't forget to add http://icanhazip.com as a remote site.

  • Gourav

    Member
    May 24, 2016 at 10:48 am in reply to: Can we perform Dynamic SOQL for Cross-Objects?

    Hi Piyush,

    I don't know your exact need but Yes, we can perform Dynamic SOQL for Cross-Objects. Look below for example:-

    String str = 'date%';
    String query = 'Select id,name,(Select id,name from Contacts) From Account where name like :str';
    List<sObject> sobjList = database.query(query);
    system.debug('sobjList::'+sobjList);

  • Gourav

    Member
    May 24, 2016 at 10:27 am in reply to: How to hide URL in Salesforce (encrypt)?

    Hi Rachit,

    Try this to encrypt your URL

    String URLLink = 'Your URL/Parameters you want to encrypt';

    String encodedURL = EncodingUtil.urlEncode(targetString,'UTF-8');

  • Gourav

    Member
    April 29, 2016 at 9:45 am in reply to: Is it possible to Cast sObject dynamically?

    Map<String, Schema.SObjectType> gd = Schema.getGlobalDescribe(); \\Schema.getGlobalDescribe() will give you all sObject type present in your org.
    Schema.SobjectType oType = gd.get(‘account’);
    account object_instance = (account)oType.newSObject();

  • Gourav

    Member
    April 29, 2016 at 9:33 am in reply to: What is sObject casting?

    sObject casting when you use generic sObject and then convert that into a concrete sObject.

    example:-

    Map<String, Schema.SObjectType> gd = Schema.getGlobalDescribe();
    Schema.SobjectType oType = gd.get('account');
    account object_instance = (account)oType.newSObject();

  • Gourav

    Member
    April 29, 2016 at 9:24 am in reply to: How to query records from sObject for 50000+ records?

    There two more methods to query data more then 50000

    Method 1: Use Visualforce page with readOnly attribute set to true
    Controller class:

    public class StatsController {
    public Integer numberOfContacts {
    get {
    if (numberOfContacts == null) {
    numberOfContacts = [select count() from Contact];
    }
    return numberOfContacts;
    }
    private set;
    }
    }
    Visualforce page:

    <apex:page controller="StatsController" readOnly="true">
    <p>Number of Contacts: {!numberOfContacts}</p>
    </apex:page>

    Method 2: Make a http request using the REST API
    HttpRequest req = new HttpRequest();
    req.setEndpoint('https://'+URL.getSalesforceBaseUrl().getHost()+'/services/data/v20.0/query/?q=SELECT+Id+from+Contact');
    req.setMethod('GET');

    string autho = 'Bearer '+ userInfo.getsessionId();
    req.setHeader('Authorization', autho);

    Http http = new Http();
    HTTPResponse res = http.send(req);
    string response = res.getBody();
    string total = response.substring(response.indexOf('totalSize":') + 11, response.indexOf(','));
    system.debug('Total: '+ total);

  • Gourav

    Member
    April 29, 2016 at 9:13 am in reply to: Run a Query on Salesforce Excel Connector

    Consider using the excellent tool - Enabler4Excel ? https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000B3GBzEAN , It gives you a visual way to create and assess Salesforce queries.

    This is a Microsoft Excel add-on enables easy mass updates, inserts, and deletes. Has extra functionality of determining which fields are in and out of layouts, as well as a tool for field(s) utilization calculation. VisualForce from layout page generation.

    Salesforce Enabler for Excel connects your Excel spreadsheet right to your Salesforce.com database instance. It lets you do regular dataloader oprations like get, insert, update, delete, upsert, but without having to deal with .csv files. Everything is done right there in Excel. You can pull records from the database using a custom SOQL query, change a couple of fields, and push them back into the database. All in a couple of minutes and without leaving Excel. The add-on also contains some tools that can come in handy to a Salesforce administrator. It can run a set of layouts and in a couple of seconds generate a report containing all fields that are in the layouts, as well as all fields that are not in the layouts, which is invaluable for cleanup purposes.

    VisualForce from layout generation tool will jump-start your VisualForce page development by generating a page from any existing layout.

     

  • Gourav

    Member
    April 29, 2016 at 9:10 am in reply to: How can I create custom object using the Metadata API from Apex?

    @Piyush

    you need to import all the classes from the metadata sample to get this workfing..
    also your MetadataServiceExamples class should have all the methods to run.. your createObject method is calling createService method which is missing..

    check this for all the classes in metadata sample and add them to your org
    https://github.com/financialforcedev/apex-mdapi/tree/master/apex-mdapi/src/classes

    and this is for the MetadataServiceExample class
    https://github.com/financialforcedev/apex-mdapi/blob/master/apex-mdapi/src/classes/MetadataServiceExamples.cls

  • Gourav

    Member
    April 29, 2016 at 8:01 am in reply to: List all attributes of a subscriber list in Marketing Cloud
  • Gourav

    Member
    April 29, 2016 at 7:59 am in reply to: How can I create custom object using the Metadata API from Apex?

    Use this code in your Apex class to create custom Object :-

     

    MetadataService.CustomObject customObject = new MetadataService.CustomObject();
    customObject.fullName = 'Test__c';
    customObject.label = 'Test';
    customObject.pluralLabel = 'Tests';
    customObject.nameField = new MetadataService.CustomField();
    customObject.nameField.type_x = 'Text';
    customObject.nameField.label = 'Test Record';
    customObject.deploymentStatus = 'Deployed';
    customObject.sharingModel = 'ReadWrite';
    MetadataService.AsyncResult[] results = service.create(new List<MetadataService.Metadata> { customObject });

  • Try this

    <apex:image id="theImage" value="{!$Resource.YourImage}" width="200" height="200"/>

  • Gourav

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

    @Ravi

    Please provide some example!

Page 6 of 7