Forum Replies Created

Page 2 of 8
  • Aman

    Member
    September 29, 2018 at 5:06 pm in reply to: What are the limitations of Time-dependent workflow in Salesforce?

    Hi,

    When defining time dependent workflows in salesforce we have to use standard and custom date and date/time fields defined for the object.

    We have to specify time using days and hours.
    Also add actions to existing time triggers.

    Thanks

  • Aman

    Member
    September 29, 2018 at 5:05 pm in reply to: Limitations of Salesforce Time-dependent workflow?

    Hi,

    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

  • Aman

    Member
    September 29, 2018 at 5:03 pm in reply to: What is Time-Dependent Workflow in Salesforce?

    Hi,

    Time-dependent actions remain in the Workflow Queue until processed or the rule criteria for the Workflow Rule are evaluated as "false." If a record no longer matches the rule criteria when the rule is evaluated, Salesforce removes the time-dependent actions queued for that record.

    Thanks

  • Hi,

    Time-dependent actions remain in the Workflow Queue until processed or the rule criteria for the Workflow Rule are evaluated as "false." If a record no longer matches the rule criteria when the rule is evaluated, Salesforce removes the time-dependent actions queued for that record.

    Thanks

  • Hi,

    COUNT() is an older SOQL function that was available prior to other aggregate functions. It returns an integer. If you use COUNT(fieldName) the result of the query will be a List instead.

    COUNT() is equivalent to COUNT(*) in SQL. It return the total row count. COUNT(fieldName) only counts the number of non-null records. If you want to use COUNT(fieldName), the following code should work:

    List<AggregateResult> result  = [select count(Id) total from Account];

    System.debug(result[0].get('total'));

    Thanks

  • Aman

    Member
    September 29, 2018 at 4:50 pm in reply to: How to round the Double to two decimal places In Salesforce Apex?

    Hi,

    Please Use the below snippet of code :

    Decimal parentlistPrice = 9995.00

    Decimal svcPercent = .17

    Decimal discount = .88

    //oli.quantity = 2.0

    oli.TotalPrice = (((parentListPrice * svcPercent) * discount) * oli.Quantity).setScale(2);

    Thanks

  • Hi,

    With the help of below mentioned code we can get custom settings:

    If there is custom setting of name Custom_Setting, Custom_Setting_c code = Custom_Setting_c.getInstance(‘Record’);

    //To return a map of data sets defined for the custom object (all records in the custom object), //you would use: Map<String,Custom_Setting_c> mapCodes = Custom_Setting_c.getAll();

    Thanks

  • Aman

    Member
    September 29, 2018 at 4:48 pm in reply to: How to get all the fields of Sobject using Dynamic Salesforce Apex?

    Hi,

    Below is a snippet of code that you can use :

    Account account = [select Id, AnnualRevenue, Website from Account limit 1];

    Map<String, Schema.SObjectField> schemaFieldMap = Schema.SObjectType.Account.fields.getMap();

    Map<String, Object> queriedFieldValues = new Map<String, Object>();

    for (String fieldName: schemaFieldMap.keySet()) {

    try {

    queriedFieldValues.put(fieldName, account.get(fieldName));

    } catch (SObjectException e)    {

    // Intentional capture

    }

    }

    System.debug(queriedFieldValues);

    Thanks.

  • Hi,

    Given below are the three binding types:

    Data binding basically refers to the set of data in the controller.

    Action binding usually refers to the action techniques in the controller.

    Component binding simple refers to other Visualforce parts

    Thanks.

  • Hi,

    Salesforce approval process is an automated process and your organization can use to approve records in Salesforce, An approval process is combination of steps for a record to be approved and person has to approve it each step.A step can apply to all the records to that object or just record that meets the certain criteria. An approval process also specifies the actions to take when a record is approved, rejected, recalled, or first submitted for approval.

    Thanks.

  • Aman

    Member
    September 29, 2018 at 4:46 pm in reply to: Define Javascript Remoting for Salesforce Apex Controllers.

    JavaScript remoting is optimized for use on mobile pages and on pages that use third-party JavaScript libraries. It enables dynamic, interactive pages that feel more responsive than traditional Visualforce pages.

    JavaScript remoting is an alternative to standard Visualforce AJAX components and Visualforce Remote Objects. It provides a more idiomatic way of interacting with the Lightning platform from JavaScript. JavaScript remoting allows you to use familiar JavaScript practices and structures and makes leveraging other JavaScript frameworks and tool kits easier for front-end developers. Remoting creates a more responsive experience that’s ideal for mobile pages or any other page where your use case requires maximum efficiency and performance. Because it’s asynchronous, you can load only the initial page and the data that you need to display the page, and then lazily load additional data that might not be used on the page immediately. You can even use this method to pre-load data for pages or views that the user hasn’t accessed.

    Although JavaScript remoting can provide an efficient, responsive, and optimized user experience, it’s not without limitations. It can take extra time to develop pages that use it, and you need to change how you develop and think about the flow of the page. Because you aren’t using forms and there’s no view state associated with the request, you have to manage the state of the page yourself, on the client side. On the other hand, there’s nothing that prevents you from combining JavaScript remoting with the standard Visualforce MVC design paradigm. As always, keep the problem that you’re trying to solve foremost when determining your design. JavaScript remoting is one of many tools available to you.

    Thanks.

  • Aman

    Member
    September 29, 2018 at 4:43 pm in reply to: Differentiate between Static SOQL and Dynamic SOQL in Salesforce.

    Hi,

    Static SOQL is written in ([]) array brackets. Its good to use when you did not have dynamic chnages is SOQL.

    Dynamic SOQL refers to the creation of a SOQL string at run time with Apex code. Dynamic SOQL enables you to create more flexible applications. For example, you can create a search based on input from an end user or update records with varying field names.

    Thanks.

  • Hi,

    S-controls have been superseded by Visualforce pages. After March 2010 organizations that have never created s-controls, as well as new organizations, won't be allowed to create them. Existing s-controls will remain unaffected, and can still be edited. We recommend that you move your s-controls to Visualforce. We continue to support the Scontrol object.

    Thanks

  • Aman

    Member
    September 29, 2018 at 4:39 pm in reply to: What is JAX-WS API in Salesforce?

    Hi,

    Salesforce.com is a hosting-based CRM solution for small businesses to large enterprises. It caught my interest last year when one of my clients wanted me to create a solution to sync up their Salesforce.com contacts with their MS Exchange server for all their sales team members in a centralized way, without installing Outlook plugin. I created the solution for the client using Salesforce Enterprise WSDL and MS Exchange WSDL. It was a really fun project for me since I learned a great deal about Salesforce.com Web Service API and the solution saved my client a lot of manual process time, about 80%. That’s a win-win. Before I created the solution for my client using Salesforce Enterprise API, I took a look at the Partner API realizing it is better than Enterprise API because my client will not need to rebuild the solution when they change their fields or metadata in their Salesforce. On the other hand, there is a time constraint so Enterprise API is used to save time.

    Thanks.

  • Aman

    Member
    September 29, 2018 at 4:37 pm in reply to: What are the elements of a SOAP message in Salesforce?

    Hi,

    Here's the code to send SOAP message in Salesforce:

    Http h = new Http();

    HttpRequest req = new HttpRequest();

    req.setMethod('POST');

    req.setHeader('Accept-Encoding','gzip,deflate');

    req.setHeader('Content-Type','text/xml;charset=UTF-8');

    req.setHeader('SOAPAction', URL);

    req.setHeader('User-Agent','Jakarta Commons-HttpClient/3.1');

    Blob headerValue = Blob.valueOf(USERNAME + ':' + PASSWORD);

    String authorizationHeader = 'BASIC ' + EncodingUtil.base64Encode(headerValue);

    req.setHeader('Authorization', authorizationHeader);

    req.setEndpoint(CustomerCheck__c.getAll().get('endpoint').value__c);

    String requestString = '<<SOAP MESSAGE>>';

     

    req.setHeader('Content-Length',String.valueOf(requestString.length()));

    req.setBody(requestString);

    h.send(req);

    Thanks.

  • Aman

    Member
    September 29, 2018 at 4:35 pm in reply to: What are the primary security issues with web services in Salesforce?

    Hi,

    1. Data creation: You should make sure to use a good random source with enough entropy to generate these tokens.

    2. Data at rest on salesforce servers: You should use protected custom settings within a managed package. This allow access to your tokens only from apex code that is within your managed package.

    3. Data at rest on your servers: You should use standard mechanisms to protect passwords. For example, use SHA256 to hash the password with a strong and unique salt per user, and store the output only on a DB.

    4. Data in transit: You should make sure to use proper encryption and authentication for the outbound call from salesforce to your servers.

    Thanks.

  • Hi,

    Action function can call the controller method from javascript.

    Action support adds AJAX support to another visual force component and then call the controller method.

    Action region is one of the most important tags which helps in increasing page performance. So we should try to make maximum use of action region in visual force page.

    Thanks

  • Aman

    Member
    September 22, 2018 at 11:26 am in reply to: What is PageReference in Salesforce Apex?

    A Page Reference is a reference to an instantiation of a page. Among different characteristics, Page References comprise of a URL and an arrangement of inquiry parameter names and qualities

  • Aman

    Member
    May 31, 2018 at 8:21 am in reply to: Why Start Button is not enabled in Marketing Cloud?

    Hi Parv,

    Please check whether you have marked import as true or not.If it is false please make it true.

    Thanks

     

  • Aman

    Member
    May 31, 2018 at 8:19 am in reply to: Can anyone please explain me use of Audit Trail in Salesforce?

    Hi,

    The Audit Trail function in Salesforce is useful for gaining information or for tracking all the recent setup changes that the administration has done in the organization. The audit trail can preserve data for up to six months.

    Thanks

  • Aman

    Member
    May 31, 2018 at 8:18 am in reply to: What is the difference between Force.com and Salesforce.com?

    Hi Parv,

    Force.com is Platform-as-a-Service (PaaS), while Salesforce.com is Software-as-a-Service (SaaS).

    Thanks

  • Hi,

    You need to provide Email Address, Subscribers key for creating Subscribers in Marketing Cloud.

    Thanks

     

  • Hi ,

    Please check suscriber key in both the report should be same.

    Thanks

     

  • Hi,

    In marketing Cloud if you don't provide receiver email while sending out the email ,the email will automatically recieve by the sender.

    Thanks

  • Aman

    Member
    May 31, 2018 at 8:12 am in reply to: Why Email through Salesforce Marketing Cloud are not going out?

    Hi,

    Previously, I have also faced this issue while working in Marketing Cloud. I think the only thing you have missed while preparing creating a report is to include record id. So please check whether you have included LeadId or not.

    Thanks

     

Page 2 of 8