Forum Replies Created

Page 3 of 5
  • Himanshu

    Member
    May 31, 2016 at 10:43 am in reply to: How to find Knowledge Article Type?

    Hi Ravi,

    From Setup, enter Users in the Quick Find box, then select Users.
    Click Edit next to the user's name or click New to create a user.
    If you are creating a user, complete all the required fields.
    Select the Knowledge User checkbox.
    Click Save.

    Hope this helps you.

  • Himanshu

    Member
    May 31, 2016 at 10:39 am in reply to: apex:outputLink to work in Lightning Desktop

    Hi Piyush,

    You need to use force:navigateToSObject(documentation) for lightning.

  • Himanshu

    Member
    May 31, 2016 at 10:35 am in reply to: What are Visualforce remote objects?

    Hi Piyush,

    Visualforce Remote Objects are proxy objects that enable basic DML operations on sObjects directly from JavaScript. Remote Objects remove some of the complexity from JavaScript remoting by reducing the need for @RemoteAction methods in an Apex controller or extension.

  • Hi Ajay,

    If you put the counter inside a column, it will work:

    <apex:page controller="counter">
    <apex:variable value="{!0}" var="index" />
    <apex:pageBlock>
    <apex:pageBlockTable value="{!elements}" var="element">
    <apex:column>
    <apex:outputText>
    <apex:variable value="{!index + 1}" var="index" />
    {!index}
    </apex:outputText>
    </apex:column>
    </apex:pageBlockTable>
    </apex:pageBlock>
    </apex:page>

  • Himanshu

    Member
    May 30, 2016 at 11:16 am in reply to: How do I add TH Badges I have earned to my LinkedIn Profile?

    Hi Naman,

    Unfortunalty you cannot add all TH badges at one shot you have to do it one by one. There are 2 ways
    1.When a module is completed you can add it to linkedin profile by add LinkedIn to profile button.
    2. If you alreay have a badge which you want to add to linkedIn profile.

  • Himanshu

    Member
    May 30, 2016 at 10:09 am in reply to: Custom button to add existing records In org.

    Hi Nitish,

    Try to remove the word Specification__c. You have declared your variable name twice.

    Hope this helps you.

  • Himanshu

    Member
    May 30, 2016 at 10:03 am in reply to: Lookup / free text field in Salesforce?

    Hi Nitish,

    You would need to store the second reference string in a separate field. Attempting to update a lookup field with anything other than a valid record ID (or null) will result in an error being thrown, and any changes to the record will not be committed

  • Himanshu

    Member
    May 27, 2016 at 12:26 pm in reply to: What is the Salesforce sObject for a private message?

    Hi Ravi,
    You need to enable the Manage Chatter Messages system permission on a cloned System Administrator profile before you have access to these sObjects.

    The ChatterMessage and ChatterConversation objects is what you are looking for.

    for instance:

    SELECT Body, ConversationId, Id, SenderId, SentDate FROM ChatterMessage

  • Himanshu

    Member
    May 27, 2016 at 12:24 pm in reply to: Is it possible to aggregate data from contacts to accounts?

    Hi Ravi,

    All standard activities do roll up from the Contact to the Account.

    For custom objects you can create a hidden Account look up on the custom object and workflow the account the contact is associated to. This will create the related list on the Account and you will be able to see all of the contact related list information.

  • Hi Suyash,

    The standard inline editing feature is not available in Visualforce.

  • Himanshu

    Member
    May 27, 2016 at 12:19 pm in reply to: How to query the content workspace id in apex?

    Hi Ravi,

    You can use this query

    Query:-   SELECT Id, Name FROM ContentWorkspace

  • Hi Ravi,

    No, you can't get the security token without having to reset it.

  • Himanshu

    Member
    May 27, 2016 at 12:12 pm in reply to: Can you use the LIKE operator in SOQL queries via the REST API?

    Yes, you can use the like operator in REST API.

  • Himanshu

    Member
    May 27, 2016 at 11:57 am in reply to: Change case status only though Visualforce page

    Hi Nitish,

    Try this code:-
    public class CaseControl {
    public static Boolean allowReopen = false;

    public static void verifyReopen(Case[] prior, Case[] current) {
    if(!allowReopen) {
    for(Integer index = 0, size = current.size(); index < size; index++) {
    if(prior[index].Status == 'Closed' &&
    current[index].Status <> 'Closed') {
    current[index].addError('Please use the Visualforce page to reopen this case.');
    }
    }
    }
    }
    }

     

    Trigger:-
    trigger verifyReopen on Case (after update) {
    CaseControl.verifyReopen(Trigger.old, Trigger.new);
    }

     

    Case Reopen:-
    public PageReference reopenAndSave() {
    CaseControl.allowReopen = true;
    caseRecord.Status = 'Reopened';
    update caseRecord;
    return new ApexPages.StandardController(caseRecord).view();
    }

  • Himanshu

    Member
    May 27, 2016 at 11:52 am in reply to: AngularJs variable to an outputLink

    Hi Nitish,

    Add this code of line within  your code.

    <a href="https://c.cs86.visual.force.com/apex/showResultQuiz?id={{item.Id}}">...</a>

    Hope this helps you.

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

    Member
    May 27, 2016 at 11:50 am in reply to: Visualforce redirect issue on forgot password link

    Hi Piyush,

    Pagereference pg = new Pagereference ('/apex/yourpagename');

    Hope this helps you.

  • Hi Piyush,

    Try this code:-

    where: {
    or: {
    BillingState: { eq: 'Hawaii' },
    or: {
    BillingState: { eq: 'Alaska' },
    or: {...},
    },
    },
    Name: { like: '% Assoc%' }
    }

  • Hi Suyash,

    Marketing Cloud is designed to create and deliver content on channels mandated by the customer and the situation. It provides a single location for all cross-channel content, enabling brands to speak with one voice and deliver a consistent experience. Whether the right channel at a specific moment is email, mobile, social, ads, in-app, or the web, today’s digital business leaders have a ready-made conduit to engage across marketing, sales, and service.

  • Himanshu

    Member
    May 25, 2016 at 3:07 pm in reply to: Can I access Remote Site List from Apex?

    Hi Ravi,

    You can't use the remote sites list is not currently exposed in Apex.

  • Hi Suyash,

    Many organizations are not delivering data-driven interactions and experiences to their customers. Instead, these organizations communicate and interact with their customers through a series of disconnected, independent campaigns and messages — often across many organizational functions that are not coordinated, data driven, or entirely purposeful.

  • Hi Naman,

    You can use this to upsert the list of accounts.

    List<Account> acc = new List<Account>();
    for (List<Account> aList : listOfLists)
    acc.addAll(aList);
    upsert acc;

    Hope this helps you.

  • Hi Naman,

    To restrict the user after some specifies time to login in salesforce you should mention the time in Login Hours.

    Go to  Setup, enter Profiles in the Quick Find box, then select Profiles.
    Select the profile of  user that you want to restrict.
    In the profile page,Click the Login Hours Button and mention the time and day when you want the user not able to log in salesforce Org.

  • Himanshu

    Member
    May 25, 2016 at 8:38 am in reply to: How to get the picklist value in formula fields?

    Hi Naman,

    You can use this:- TEXT( field name) in formula.

  • Hi Piyush,

    There is no difference between System.currentPageReference() and ApexPages.currentPage()

    Both return a reference to the current page.

  • Enterprise Wsdl                                                                                                          Primarily Wsdl

    1.It is strongly typed wsdl                                                                                       1.It is loosly typed wsdl

    2. It is  bound to a specific configuration of Salesforce                                   2. used to reflect against any                                                                                                                                                     configuration of Salesforce.

     

     

    • This reply was modified 8 years, 6 months ago by  Himanshu.
Page 3 of 5