Forum Replies Created

Page 35 of 53
  • Yes, you can get input from user by visualforce page and perform task based on visualforce page by using apex class

    Example:

    Apex

    public with sharing class ContactController {

    public Contact c { get; set; }

    public List<Contact> samepage { get; set; }

    public ContactController(){
    c=new Contact();
    }

    public PageReference save() {
    insert c;
    samepage= [select id,FirstName,LastName,Email,Birthdate from Contact where id=:c.id];

    return null;
    }}

    Visualforce Page:

    <apex:page Controller="ContactController" >
    <apex:form >

    <apex:pageBlock title="Edit Contact">

    <apex:pageBlockSection columns="1">
    <apex:inputField value="{!c.FirstName}"/>
    <apex:inputField value="{!c.LastName}"/>
    <apex:inputField value="{!c.Email}"/>
    <apex:inputField value="{!c.Birthdate}"/>
    </apex:pageBlockSection>
    <apex:pageBlockButtons >
    <apex:commandButton action="{!save}" value="Save"/>
    </apex:pageBlockButtons>
    <apex:pageBlockTable value="{!samepage}" var="c">
    <apex:column headerValue="First Name">
    <apex:outputField value="{!c.Firstname}"/>
    </apex:column>

    <apex:column headerValue="Last Name">
    <apex:outputField value="{!c.Lastname}"/>
    </apex:column>

    </apex:column>
    </apex:pageBlockTable>
    </apex:pageBlock>

    </apex:form>
    </apex:page>

    thanks

    • This reply was modified 6 years, 2 months ago by  Parul.
  • Parul

    Member
    September 18, 2018 at 7:13 am in reply to: Is it possible to create a PDF from a report in salesforce?

    Hi satyakam,

    It won't be possible using salesforce native report functionality.You can only export as CSV or Xls.There is a custom workaround, you can check this out:
    http://salesforcesource.blogspot.com.br/2009/04/how-to-create-word-pdf-or-excel-files.html

    Thanks

  • Parul

    Member
    September 18, 2018 at 7:11 am in reply to: What is the difference between aura and apex framework in Salesforce?

    Aura is an open-source UI framework built by Salesforce for developing dynamic web apps for mobile and desktop devices. The lightning component framework is not different from the Aura framework rather it is a subset of the Aura framework.  The Lightning Component framework is built on the open-source Aura framework. However, the open-source Aura framework has some features that aren’t available to Lightning Component framework.

    Apex is a development platform for building software as a service (SaaS) applications on top of Salesforce.com's customer relationship management (CRM) functionality. Apex allows developers to access Salesforce.com's back-end database and client-server interfaces to create third-party SaaS applications. Apex includes an application program interface (API) that developers can use to access user data on Salesforce.com.

     

    Thanks

     

  • Parul

    Member
    September 18, 2018 at 7:10 am in reply to: Why do we use matching rule in Salesforce?

    Hi Satyakam,

    Matching Rule -: The process used to identified duplicate rules and duplicate jobs we used  matching rules.Salesforce provides standard matching rules for business and person accounts, contacts, and leads. You can also create custom matching rules.

    Thanks

  • Parul

    Member
    September 18, 2018 at 7:08 am in reply to: How can we preview a page using Salesforce lightning component?

    Create a Lightning component app and click on preview to see the result.

    For example:

    <aura:application extends="force:slds">
    <c:hello />
    </aura:application>

    <aura:component>
    <div class="white">
    Hello, HTML!
    </div>
    <h2>Check out the style in this list.</h2>
    <ul>
    <li class="red">I'm red.</li>
    <li class="blue">I'm blue.</li>
    <li class="green">I'm green.</li>
    </ul>
    </aura:component>

     

    thanks

  • Parul

    Member
    September 18, 2018 at 7:07 am in reply to: Custom email templates limit in Salesforce

    Hi satyakam,

    You can make many template as per your requirement,Salesforce doesn't restricts any limit to create Email Template.But the size of an individual Email Template is restricted.

    Thanks

  • Schema Builder provides a dynamic environment to add new custom objects, custom fields, and relationships to your schema. This eliminates the need to click from page to page to find the details of a master-detail relationship or to add a new custom field to an object in your schema. For example, if you’re using Schema Builder to view the details of your schema, you can add a new custom object without leaving Schema Builder. The drag-and-drop interface lets you easily add a custom object or new field, and saves the layout of your schema any time you move an object.

    Schema Builder provides details such as the field values, required fields, and how objects are related by displaying lookup and master-detail relationships. You can view the details for both standard and custom objects in Schema Builder.

    Salesforce Schema Builder forms the default is enabled and it gives you the liberty to add some of the items to the scheme. These items are as follows.

    Custom objects
    Master-detail relationships
    Lookup relationships
    Fields of the following types
    Formula
    Auto Number
    Checkbox
    Roll-up Summary
    Date
    Currency

     

    Thanks

     

  • OAuth2.0 is an open authorization protocol, which allows accessing the resources of the resource owner by enabling the client applications on HTTP services such as Facebook, GitHub, etc. It allows sharing of resources stored on one site to another site without using their credentials. It uses username and password tokens instead.

    he authorization process verifies whether you have permission to access the data you want from the server. When you send a request, you often have to include parameters to ensure the request has permission to access and return the data you want.

     

    Thanks

  • Parul

    Member
    September 18, 2018 at 6:54 am in reply to: What is metadata in Salesforce?

    Hi,
    Metadata is basically "data that describes other data".

    For example, in Salesforce you can query data like this:

    SELECT FirstName FROM Contact WHERE FirstName='Mike'

     

    Thanks

  • Parul

    Member
    September 18, 2018 at 6:52 am in reply to: What is API in Salesforce?

    Salesforce APIs: Below are the different types of Salesforce APIs available.

    REST API: This is useful to access objects in your Salesforce organization using REST.

    SOAP API: This API is useful to integrate your Salesforce organization data with other application using SOAP.

    Bulk API: This API is useful to work with large number of records (Load or delete large number of records).

    METADATA API: This API is useful to manage build tools and manage customizations.

     

    Thanks

  • Parul

    Member
    September 18, 2018 at 6:45 am in reply to: Can I update profile after assigning to user?

    I think yes, you can go user detail page, after clicking the Edit button, you are saying you can't change the profile of a user.

    Navigate to Setup | Administration Setup | Manage Users | Users.
    2. Find the User whose Profile you would like to customize.
    3. Click the Edit link next to the Username.
    4. In the right-hand column of User information, change the Profile to the new Profile.
    5. Click Save.

     

    Thanks

  • Parul

    Member
    September 18, 2018 at 6:29 am in reply to: How to rerender PageBlockSection through Visualforce checkbox?

    Try this code snippet and change according to you:

    <apex:pageBlockSection title="Select Countries">
    <apex:inputCheckbox value="{!reUSA}" label="USA"><apex:actionSupport event="onchange" reRender="USASectionOuter" id="Us"/></apex:inputCheckbox>
    </apex:pageBlockSection>

    <apex:outputPanel id="USASectionOuter">
    <apex:outputPanel id="USASection" rendered="{!reUSA}"> <apex:inputField value="{!abc__c.myfield__c}" /></apex:outputPanel>
    </apex:outputPanel>

     

    Thanks.

  • Parul

    Member
    September 18, 2018 at 6:27 am in reply to: Calculation on Visualforce Page without using Controller

    Create two variable and then add with '+' in third variable in apex page without any controller.

    Try this code snippet:

    <apex:page standardController="Property__c">
    <apex:outputText value="Purchase: "/><apex:outputText value="{0, number, $###,###}"><apex:param value="{!Property__c.PurchPrice__c}" /></apex:outputText><br/>
    <apex:outputText value="Rehab: "/><apex:outputText value="{0, number, $###,###}"><apex:param value="{!Property__c.TotalRehab__c}" /></apex:outputText><br/>
    <apex:outputText value="Total: "/><apex:outputText value="{0, number, $###,###}"><apex:param value="{!Property__c.PurchPrice__c + Property__c.TotalRehab__c}" /></apex:outputText><br/>
    </apex:page>

     

    Thanks.

  • Parul

    Member
    September 18, 2018 at 6:24 am in reply to: How to remove duplicacy of data while importing Data using CSV file?

    I think this may br help you : On the "Duplicate Email" column, create the following formula  =IF(C2=C3,"Duplicate Email", "Unique").

     

    Thanks

     

     

  • Parul

    Member
    September 18, 2018 at 6:21 am in reply to: Clean the Account on a contact record.

    Hi Danna,

    The service is used to compare the information with the database information is known to be data.com.Its also used to correct and add missing information in Pardot.In order to do this, all you have to do is click on the Data.com icon next to a prospect’s  name.

    Thanks

  • Parul

    Member
    September 18, 2018 at 4:42 am in reply to: Overloading in Apex

    Hi

    Overloading happens at compile-time while Overriding happens at runtime:
    Overloading is being done in the same class while for overriding base and child classes are required Overriding is all about giving a specific implementation to the inherited method of parent class.
    Performance: Overloading gives better performance compared to overriding. The reason is that the   binding of overridden methods is being done at runtime.
    Private and final methods can be overloaded but they cannot be overridden and in Apex, all methods and classes are final by default. So to override a class or a method we have to used virtual and override keyword.

     

    Thanks

  • Parul

    Member
    September 18, 2018 at 4:38 am in reply to: on-Demand process in salesforce

    Hi

    On Demand process is special type of application process which has a Process Point of On Demand and executes when called from a page-level On Demand process or from an Ajax call from the browser. On Demand processes are useful when you have PL/SQL logic that you would like to run from different execution points across multiple pages.

    On Demand processes should typically be created on a page and not at the application-level. On Demand processes created at the application-level are created with an initial authorization scheme of Must Not Be Public User. This prohibits the processes being invoked from users in unauthenticated sessions.

     

    Thanks

  • Parul

    Member
    September 18, 2018 at 4:36 am in reply to: What is AMPscript in Salesforce?

    Hi

    With AMPScript, a Salesforce ExactTarget Marketing Cloud developer language used to dynamically insert content into emails, landing pages, mobile and push notifications.

    AMPscript is a scripting language that you can embed within HTML emails, text emails, landing pages, SMS messages, and push notifications from MobilePush. The system processes the script at the point where you include it in the message to render content on a subscriber-by-subscriber basis. The Marketing Cloud application handles all AMPscript calls at the end of the email send.

    AMPscript can also interact with your data extensions. Use AMPscript to include information from your data extensions in your messages and to update data extensions with information from your landing pages.

    Use AMPscript to process information and include information from your data extensions in the body of your messages and landing pages to provide advanced personalization for the subscribers.

    How to use AMPscript in email message example:

    %%[if emailaddr == emailaddr then ]%%
    %%[
    var @URL1,
    set @URL1 = "https://help.salesforce.com/"
    ]%%

    %%= BeginImpressionRegion("Banner Placement") =%%

    To visit Help
    <a href="%%=RedirectTo(@URL1)=%%" alias="Help">go here to login</a><br />
    <br />
    <br />
    Check out the home page
    <a href="http://marketingcloud.com" alias="home">here</a><br />

    %%= EndImpressionRegion() =%%

    %%[ else ]%%
    This is the Default content!
    %%[
    endif
    ]%%

     

    Hope this will help you.

     

    Thanks

  • Parul

    Member
    September 18, 2018 at 4:31 am in reply to: How to use My Domain feature to configure a custom domain in Salesforce?

    Implementing a custom domain for your site creates brand recognition and gives you additional control and functionality. We’ll go through how you can get your custom domain implemented.

    1. Click Setup.
    2. Under “Administer,” click Domain Management | click Domains.
    3. Click Add A Domain.
    4. Copy the 18 digit token. This token is case sensitive so copy it exactly as displayed.

    MyDomain is a custom URL to directly log-in to your Salesforce Instance rather than going through https//login.Salesforce.com. You can go through either one to reach your instance, but it allows for custom branding of the log-in experience and also provides a namspace for any Lightning Components in your Org.

    1. Click Setup.
    2. Under “Administer,” click Domain Management | click Domains.
    3. Click Add A Domain.
    4. Copy the 18 digit token. This token is case sensitive so copy it exactly as displayed.

    Benefits of create Custom Domian:

    We can create our own custom URL
    We can set custom login policies.
    We can brand salesforce login page screen
    Hope this will help you.

    Thanks

  • Parul

    Member
    September 18, 2018 at 4:29 am in reply to: Explain use of Junction Object in Salesforce.

    Hi

    Salesforce supports 2 kinds of relationships like Master Detail and Lookup. They are both one-to-many relationship, and they are both  defined from the many-to-one side, that is from a child to a parent. They can be made one-to-one relationship by adding validation rules, or maybe triggers to enforce the one-to-one nature, i.e. only one child is allowed.

    Junction objects are used to create many to many relationships between objects. If you take the Recruiting application example, you can see that a Position can be linked to many Candidates, and a Candidate can apply for different Positions. To create this data model you need a third object "Job Application" that links the 2.

    So you'd create a lookup field for both Position and Candidate object on the "Job Application" object. This will establish many to many relationship between Position and Candidate via the "Job Application" object known as the junction object.

    Hope this will help you.

    Thanks

  • Hi,

    The main reason for the Naming convention using Upper_Case_With_Underscores is that when you type in the name field or object with spaces it automatically adds the underscores. Although Apex is case insensitive, always refer to the Objects and Custom Fields in the code as Upper_Case_With_Underscores as well for consistency all around and consistency with what is generated by the SOQL schema browser and other tools. Object and Field Labels (which are generally ignored by code but visible to users) should keep spaces, not underscores. Instead of having to think about how something should be formatted or what something should be named they can just follow the standards and focus their thinking on solving the larger problems.

    Scheduled and Batch Apex Classes
    <descriptive>Scheduler
    <descriptive>Batch
    Examples: CartCleanupScheduler, CartCleanupBatch

    Triggers and Trigger Handlers
    <sObject>Trigger
    <sObject>TriggerHandler
    Examples:  AccountTrigger, AccountTriggerHandler

    Utility Classes
    <descriptive>Utils
    Examples: PageUtils, LogUtils, StringUtils

    Wrapper Classes
    <sObject>Wrapper
    Examples:  AccountWrapper, OpportunityWrapper, CaseWrapper

    Value Objects
    <descriptive> – That is all.
    Examples: MapLocationRequest, MapLocationResponse

     

    Thanks

     

  • Parul

    Member
    September 18, 2018 at 4:09 am in reply to: ensure quality data by declarative method in salesforce

    Data quality is a necessary task. In order to achieve consistent and reliable customer data, businesses must constantly manage data quality so that they can trust their data and enable quicker and more knowledgeable decisions.

    So to ensure quality data by declarative method in salesforce we have 3 methods:

    Workflow alerts
    Lookup filters
    Validation rules

    Thanks

  • The lightning component framework is a client-side framework, tightly coupled with the Salesforce server technology.

    Lightning Components can use JavaScript on the client side and Apex on the server side. You don’t have to spend your time optimizing your apps for different devices as the components take care of that for you.

     

    Thanks

  • Parul

    Member
    September 18, 2018 at 4:00 am in reply to: What are the limitations of Time-dependent workflow in Salesforce?

    The limitations of Time-dependent workflow in Salesforce:

    Time triggers don’t support minutes or seconds.
    Time triggers can’t reference the following:
    DATE or DATETIME fields containing automatically derived functions, such as TODAY or NOW.
    Formula fields that include related-object merge fields.
    You can’t add or remove time triggers if:
    The workflow rule is active.
    The workflow rule is deactivated but has pending actions in the queue.
    The workflow rule evaluation criteria is set to Evaluate the rule when a record is: created, and every time it’s edited.
    The workflow rule is included in a package.

    Thanks

  • Parul

    Member
    September 18, 2018 at 3:51 am in reply to: Data Export Standard Feature

    Formula field is read only. this field is not save in database so we can not export it from one to another.

     

     

    Thanks

Page 35 of 53