Forum Replies Created

Page 4 of 9
  • Abhinav

    Member
    July 20, 2016 at 10:26 am in reply to: Not sending emails to some domains from Salesforce

    Hi Jitesh,

    You can create one custom setting and store the blacklist domain under that custom setting. While sending the emails you can check the custom setting record that which all domains are not valid and skip that domains.

  • Abhinav

    Member
    July 20, 2016 at 10:20 am in reply to: How bidirectional integration of api can be done in salesforce?

    Hi Mohit,

    There needs to be one master in your integration. Either salesforce or the 3rd party.

    You can accomplish this by using custom web service or if the webhook is available by 3rd party you can move forward with that also.

    Please do let me know which 3rd party you are integrating with salesforce.

  • Abhinav

    Member
    July 18, 2016 at 8:37 am in reply to: How to hide or show Salesforce object through the apex code?

    Hi,

    I don't think so this is possible through apex code. But there is one workaround we can change the current user profile through apex code.

  • Abhinav

    Member
    July 5, 2016 at 8:15 am in reply to: How to know the mandatory fields in standard or custom objects?

    Hi Mark,

    Yes there is a simple solution to use https://workbench.developerforce.com to insert a single record of the Object type in question. After the insert operation click the following screen displays the object-level required field(s) in red.

  • Abhinav

    Member
    June 30, 2016 at 1:06 pm in reply to: Building a Lightning App

    Hi,

    I have few queries on this :-

    1. Are you using the custom contact VF page or the standard contact page ?

    2. And is this functionality needed in the salesforce classic also? Or this is for the lightning specific.

  • Abhinav

    Member
    June 27, 2016 at 2:30 pm in reply to: Can we write some validation on the contact role insert?

    Hi Rajesh,

    We cannot add any validation on the contact role. Even trigger does not work on the Account contact role.
    But there are ways to achieve the Opportunity Contact Role, may be this can help you :-
    1. Simply remove the [New Opportunity] button from the Opportunity Related List on the Account Page Layout. This will push your users to click on the Contact to create the Opportunity which will automatically make that Contact the Primary Contact on the Opportunity.
    2. There are free App's on the AppExchange that you can download.
    1. https://appexchange.salesforce.com/listingDetail?listingId=a0N300000016cbDEAQ
    2. https://appexchange.salesforce.com/listingDetail?listingId=a0N300000025Vs1EAE

  • Hi Surbhi,

    Basically salesforce has created the Instrumentation console to view the interactions anywhere clicking on the page. User can see the time since loaded, session start time, previous page URL etc.

  • @prakhar

    It looks like currently the Libraries feature is not available in Salesforce1.

  • Abhinav

    Member
    June 24, 2016 at 2:01 pm in reply to: How to show App in Salesforce1?

    @prakhar

    You can create the tab and every tab will have its VF page.

    Make sure that the particular VF pages have the view permission in "Available for Salesforce mobile apps and Lightning Pages".

    Related to the Flexipages i will provide more information on that.

    I hope it helps.

  • Abhinav

    Member
    June 23, 2016 at 2:01 pm in reply to: How to show App in Salesforce1?

    Hi Prakhar,

    The concept of the apps is bit different on salesforce1 as compared to salesforce classic.

    Basically on salesforce1 you can add tabs and that tab will have the visualforce page which will be salesforce1 enabled.

    Through different tabs you can view your app and VF pages.

    If you want to see an "app" in mobile you will need to add it into Navigation Menu. Go to Mobile Administration --> Mobile Navigation.

    For salesforce1 there is concept of Flexipage introduced. The flexipage allows to view different list views in only one page.

    I hope it helps.

     

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

    Member
    June 22, 2016 at 12:00 pm in reply to: How to use encodeURI in Salesforce Apex?

    In, URLENCODE Space characters are replaced by `+'

    You have to replace it :-

    String encodedString = EncodingUtil.URLENCODE('bhavesh jogi','UTF-8').replace('+', '%20');

  • Abhinav

    Member
    June 22, 2016 at 11:05 am in reply to: How to use encodeURI in Salesforce Apex?

    Hi Bhavesh,

    You can use Salesforce EncodingUtil Class urlEncode method to encode your string.

    String encodedString = EncodingUtil.URLENCODE('bhavesh jogi','UTF-8');

  • Abhinav

    Member
    June 19, 2016 at 6:35 pm in reply to: Want to put my app in AppExchange, getting third party url error

    Hello Bhavesh,

    You can buy it from here https://portswigger.net/buy/default.aspx.

  • Abhinav

    Member
    June 16, 2016 at 8:36 am in reply to: Want to put my app in AppExchange, getting third party url error

    Hi Bhavesh,

    The API integration app requires the Burp license to release it on app exchange. I hope you have got the burp license. So for the burp license report we have to provide one false positive report. This report will explain the Severity of the issues. For the medium, low and information issues we have to explain the cause in the false positive report. But for the high issue we may have to resolve and fix that.

    And if you have not got the burp license then you may first have to get the burp license to release the App.

  • Hi Naman,

    You can do this by using reports. I hope it helps.

  • Abhinav

    Member
    June 9, 2016 at 7:51 pm in reply to: Global Access specifier in Managed package

    Hi Naman,

    Looks like there could be no issue. Just you need to use the with sharing.

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

    Member
    June 9, 2016 at 7:48 pm in reply to: How to pass the object being iterated to JS controller?

    Hi Himanshu,

    There is no need to create a child component:

    <aura:attribute name="stores" type="Account[]"/>
    <aura:iteration items="{!v.stores}" var="store" indexVar="idx">
    <div class="slds-card" data-record="{!idx}" onclick="{!c.goToStoreDetail}">
    <header class="slds-card__header slds-grid grid--flex-spread">
    <h2 class="slds-text-heading--medium slds-truncate">{!store.Name}</h2>
    </header>
    </div>
    </aura:iteration>

    As you can see, I have used indexVar attribute in the iteration. I then use the index values in the data attribute of Div. Now in the JS Controller you can use the following code to retrieve the record based on the index.

    var selectedItem = event.currentTarget; // Get the target object
    var index = selectedItem.dataset.record; // Get its value i.e. the index
    var selectedStore = component.get("v.stores")[index]; // Use it retrieve the store record

  • Hi Naman,

    Are you referring to the timespace that is passed to the getUpdated() or getDeleted().?

  • Abhinav

    Member
    June 9, 2016 at 7:38 pm in reply to: Email value is saved without parentheses (label) when using DML

    Hi Himanshu,

    Account acc = new Account(name = 'Test Email');
    insert acc;

    String email = '[email protected] (any label)';
    Contact c = new Contact (lastName = 'Test', accountId = acc.id, email = email);
    insert c;

    Contact cDb = [
    SELECT
    id,
    accountId,
    name,
    email
    FROM Contact
    WHERE id = :c.id
    ][0];

    System.assertEquals(c.email, cDb.email);

  • Hi Himanshu,

    Looks like till spring 15 it does not behave like this.

  • Abhinav

    Member
    June 9, 2016 at 7:29 pm in reply to: ReRendered a Page on button click on different Page

    Hi Prakhar,

    Do you want to rerender or want to refresh the Page1?

  • Abhinav

    Member
    June 2, 2016 at 12:36 pm in reply to: How can I stop actionpoller action after two consecutive runs?

    Hi Himanshu,

    Please use the below snippet.

    <apex:page controller="componentPoller">
    <apex:form >
    <apex:actionPoller action="{!increment}" rerender="count" interval="5" enabled="{!IF(count = 2,false,true)}"/>

    <apex:outputPanel id="count">
    {!IF(count = 2,false,true)}
    {!count}
    </apex:outputPanel>
    </apex:form>
    </apex:page>

    Controller :-

    public class componentPoller{

    public Decimal count {get; set;}

    public componentPoller(){
    count = 0;
    }

    public void increment(){
    count++;
    }
    }

  • Abhinav

    Member
    June 2, 2016 at 9:09 am in reply to: How to convert date time to date using formula field?

    Hi Himanshu,

    You can use the below code.

    DATEVALUE(MyField__c)

    returns a Date value that I can work with.

  • Abhinav

    Member
    June 2, 2016 at 8:58 am in reply to: Can we have look up filter in Salesforce lightning?

    Hi Himanshu,

    Looks like it is not supported in lightning.

  • Abhinav

    Member
    June 2, 2016 at 8:56 am in reply to: Cross reference field limits

    Hi Ajit,

    Please contact the salesforce support. They will help you in this case. Even you can log a case from your production environment and they can increase your limit easily.

Page 4 of 9