• SAKTHIVEL M
  • NEWBIE
  • 75 Points
  • Member since 2012
  • Sr. Salesforce Developer
  • Techforce Services


  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 3
    Questions
  • 47
    Replies
I have Review(Multi-Select Picklist) field with values following.
101(Previous grant)
101(No Expectation)
101(Sufficient Income)
101(Long Term)

Based on the above values selected update Review Log (Long Text Area) field.
I tried like below, but am getting an error message like "Error  Field Review__c may not be used in this type of formula "

IF(INCLUDES( Review__c, "101(Not Unforeseen)"), "$Label.X101_Not_Unforeseen", NULL ) + BR() +
IF(INCLUDES( Review__c, "101(Previous grant)"), "$Label.Previous_grant", NULL ) + BR() +
IF(INCLUDES( Review__c, "101(No Expectation)"), "$Label.No_Expectation", NULL ) + BR() +
IF(INCLUDES( Review__c, "101(Sufficient Income)"), "$Label.X101_Sufficient_Income", NULL ) + BR() +
IF(INCLUDES( Review__c, "101(Long Term)"), "$Label.X101_Long_Term", NULL )
  
Note: Long Text referring from Label

Appreciate quick help on this!
 
Hi,

Setup - > Personal Setup -> Email -> My Email Settings
 
Using above path we can enter the Email Name, Email Address , BCC & Email Signature.
 
My Question:
Where the Email Signature values stored in the SFDC Objects?
 
My Requirement:
I need to show the Email Signature values in my Custom Visualforce page using Apex class or ?
 
can you please help me to get this value

Customer Portal URL Issue after logged in, copy the URL and paste it some other browser, it will redirect to Salesforce Login screen, instead of the Customer Portal Login Screen

 

Step 1:
Open Firefox
My Login Portal URL : https://ap1.salesforce.com/secur/login_portal.jsp?orgId=00D90000000KfQ4&portalId=060900000000mMw
logged in using my creditials and successfully logged in also and its landing now below URL
https://ap1.salesforce.com/home/home.jsp

 

Step 2:
Copy it "https://ap1.salesforce.com/home/home.jsp" Successfully logged in URL and Paste it IE/Chrome browser and enter

 

Step 3:
now page is redirect to Salesforce Login screen
https://login.salesforce.com/?ec=302&startURL=%2Fhome%2Fhome.jsp
instead of the Customer Portal Login Screen (https://ap1.salesforce.com/secur/login_portal.jsp?orgId=00D90000000KfQ4&portalId=060900000000mMw)

 

here i want to redirect Customer Portal Login Screen. its possible?
Please let me know your thoughts.

Customer Portal URL Issue after logged in, copy the URL and paste it some other browser, it will redirect to Salesforce Login screen, instead of the Customer Portal Login Screen

 

Step 1:
Open Firefox
My Login Portal URL : https://ap1.salesforce.com/secur/login_portal.jsp?orgId=00D90000000KfQ4&portalId=060900000000mMw
logged in using my creditials and successfully logged in also and its landing now below URL
https://ap1.salesforce.com/home/home.jsp

 

Step 2:
Copy it "https://ap1.salesforce.com/home/home.jsp" Successfully logged in URL and Paste it IE/Chrome browser and enter

 

Step 3:
now page is redirect to Salesforce Login screen
https://login.salesforce.com/?ec=302&startURL=%2Fhome%2Fhome.jsp
instead of the Customer Portal Login Screen (https://ap1.salesforce.com/secur/login_portal.jsp?orgId=00D90000000KfQ4&portalId=060900000000mMw)

 

here i want to redirect Customer Portal Login Screen. its possible?
Please let me know your thoughts.

As we are working on Salesforce OpenCTI tool in a managed package. I just got stuck to invoking  Open CTI JavaScript library files(interaction.js and opencti_min.js) by using a default absolute URL.
As mentioned over Salesforce Document we use the following URL for different platform:

In Salesforce Classic: <script src="https://c.<yourInstance>.visual.force.com/support/api/46.0/interaction.js" type="text/javascript"></script>

In Lightning Experience:
<script src="https://c.<yourInstance>.visual.force.com/support/api/46.0/lightning/opencti_min.js" type="text/javascript"></script>

So, in above-mentioned URL what exact default <yourInstance> URL we have to use as absolute URL. So that we can use a single URL for all the customer's Salesforce instance.
Hi All,

I am tring to authorize an org on visual studio code but when I am trying authorize it, I am getting the below error.

SFDX: Authorize an Org failed to run
Try this:
Kill the process running on port 1717 or use a custom connected app and update OauthLocalPort in the sfdx-project.json file.
19:31:13.241 sfdx force:auth:web:login --setalias VSCodePlayground --instanceurl https://login.salesforce.com --setdefaultusername ended with exit code 1

I have Killed the Process on port 1717 and tried it again then I am not getting any error but it is running for infinite time. 

Please help.

Thanks,
Parteek
Hi,

I'm trying to accomplish OpportunityChangeTrigger challenger from trailhead but I found one error and I don't know how to address it.
The error is:
The trigger doesn't create the expected task for opportunities whose stage has been updated to 'Closed Won'.

This is my code for the trigger:
 
trigger OpportunityChangeTrigger on OpportunityChangeEvent (after insert) {
    List<Opportunity> opps = new List<Opportunity>();
    List<Task> taskList = new List<Task>();
    for(OpportunityChangeEvent event : Trigger.New){
        EventBus.ChangeEventHeader header = event.ChangeEventHeader;
        if(header.changeType == 'UPDATE' && event.isWon){
			Task task = new Task();
            task.subject = 'Follow up on won opportunities: ' +header.recordIds;
            tasklist.add(task);
        }
    }
    if(taskList.size()>0){
        insert taskList;
    }

}

And this is the  test class
@isTest
public class TestOpportunityChangeTrigger {
    @isTest static void testCreateAndUpdateEmployee(){
        Test.enableChangeDataCapture();
        insert new Opportunity(Name='Sell 100 Widgets', StageName='Prospecting', CloseDate=Date.today().addMonths(3));
        Test.getEventBus().deliver();
        Opportunity[] oppList = [SELECT Id,StageName FROM Opportunity];
        for (Opportunity opp : oppList){
          opp.StageName = 'Closed Won';
          update opp;
          Test.getEventBus().deliver();
      }
        Task[] taskList = [SELECT Id FROM Task];
        System.assertEquals(1, taskList.size(),'The change event trigger did not create the expected task.');
    }
}



 
When I'm trying to follow the trailhead to create Lightning web component, I'm stuck at step 2.

In the 1st course, we have to install Salesforce CLI and VS Studio tools which is done.

In the 2nd course, where a new project has to be added is also done. But after that, when I try to Authorize an org or setup a default org, it gives me the below error:

Starting SFDX: Authorize an Org
16:19:16.79 sfdx force:auth:web:login --setalias MyDevOrg --instanceurl https://test.salesforce.com --setdefaultusername
ERROR running force:auth:web:login: Cannot start the OAuth redirect server on port PortInUseAction.
Try this:
Kill the process running on port 7717 or use a custom connected app and update OauthLocalPort in the sfdx-project.json file.
16:21:02.884 sfdx force:auth:web:login --setalias MyDevOrg --instanceurl https://test.salesforce.com --setdefaultusername ended with exit code 1

I have tried to  search the process with the port number - 7717 and tried to kill that process, but that doesn't work either.

Any help on this will be appreciated.

Thanks!
Hey Guys,

I am trying to modify the CSS in a managed package that is saved as a visual force page, it is controlled by a custom controller that is hidden to me. 

I have cloned the VF page and changed the CSS code I need to, so how do I now point to this new VF page instead of the old one in the managed package. 

Thanks,
James
I have Review(Multi-Select Picklist) field with values following.
101(Previous grant)
101(No Expectation)
101(Sufficient Income)
101(Long Term)

Based on the above values selected update Review Log (Long Text Area) field.
I tried like below, but am getting an error message like "Error  Field Review__c may not be used in this type of formula "

IF(INCLUDES( Review__c, "101(Not Unforeseen)"), "$Label.X101_Not_Unforeseen", NULL ) + BR() +
IF(INCLUDES( Review__c, "101(Previous grant)"), "$Label.Previous_grant", NULL ) + BR() +
IF(INCLUDES( Review__c, "101(No Expectation)"), "$Label.No_Expectation", NULL ) + BR() +
IF(INCLUDES( Review__c, "101(Sufficient Income)"), "$Label.X101_Sufficient_Income", NULL ) + BR() +
IF(INCLUDES( Review__c, "101(Long Term)"), "$Label.X101_Long_Term", NULL )
  
Note: Long Text referring from Label

Appreciate quick help on this!
 
When selecting 1 or more cases from the list and clicking "Change Status" can we please add the Notes field on that page under the New Status field?  and Change Status is a Standard List View Button so I request you to please let me know any help or suggestion.User-added imageUser-added image

Thanks,
Sreekanth
As a welfare agency our salesforce is set up around three critical objects - Contacts (a Standard Object), Client Cases and Sessions (both Custom Objects).  Our client details are held in Contacts.  A client case is created for each service type a contact receives.  Each instance of service/session is recorded in the Session object under the appropriate Client Case.

Looking at our Client Case custom object (using Field Trip) I find that 20% of the objects custom fields have never been used.  Subject to discussions with the users I would like to clear/delete some of these unused fields.

My questions are - What are the pit-falls, if any, in doing something like that? What sort of things should I keep in mind or check before taking any action?  Is there a best practice guideline/policy which can give some guidance in cleaning up unused fields?  Or should I just leave the fields?   (We are up to 61% custom field usage for the Client Case custom object).

Any feedback would be greatly appreciated.
Graeme.
Whenever existing Account is updated with  AnnualReneue  more than 10k and Industry as Technology  then create a new opportunity for this account with same account name, stage name prospecting...

 
  • January 16, 2019
  • Like
  • 0

Hi all,

What is the purpose of Org-Wide Merge and Delete checkbox in the lead settings?

https://releasenotes.docs.salesforce.com/en-us/summer18/release-notes/rn_sales_features_core_leads_secure_merge_leads.htm

I gone through the above link but i didn't get it, can anyone explain please?

Thanks.

I have a workflow rule on Opportunity which sends an email alert. Email template currently being used is text email template. Opportunity->Proposal->Proposal Line item. We have a field BillingCycle on PLIs and we want billing cycles of all the PLIs for an opportunity to be included in the email notification sent out when this workflow rule is fired.
How we can achieve it?
Hi

I have to write a trigger to update the different opportunity fields based on the contract licence type. Contract id is a lookup field on opportunity and we have to see the contract licence type and update opportunity fields
I couldn't find this in Lightning documentation.  In VF, we can use Fieldsets through Schema Object to loop through all fields and render all fields inside a fieldset so we can change the fields in the fieldset order, read-only, or add/remove fields without changing code.

I cannot find such $ObjectType schema API in Lightning, do we still have access to these when we code in Lightning Expression?
I'm trying to complete the Enable Live Agent Trailhead module and I'm stuck. When I look under Setup for Live Agent Settings nothing comes up. Why? Do I need to enable something before it will appear??
I am stuck up with this challenge in Visualforce mobile module,Where in i need to use Visualforce page that must display the assistant's phone number using a 'tel:' hyperlink. am getting the above error
I have a call center app which makes use of the open CTI library. What is the best way to import this javascript file if the host is essentially a variable and can change for each login. For example, na15 may change in the future:
<script src="https://na15.salesforce.com/support/api/31.0/interaction.js"></script>

So is it best to download this file and host locally?



 
Can anybody help me how to retrieve all reports meta data using workbench..?. please send me xml code. Here I am using this xml code but its not working porperly.

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>*</members>
  <members>Reportname</members>
<name>Report</name>
</types>
  <version>24.0</version>
</Package>
Hi, 

How can I reset or refresh my free developer account ???

I know about licence salesforce edition to refersh their sandboxes. (reference - https://help.salesforce.com/HTViewHelpDoc?id=data_sandbox_create.htm&language=en_US) 

But is there any way to refresh | reset free developer account ??
Hi All,

I received the following error for the Lightning Experience Rollout Specialist - Challenge 10

The Campaign Influence Lightning report must have the correct 1. Aggregate, 2. Columns, 3. Groupings, and 4. Filter.
Close errors.

Steps followed to creating the Report is below:

Created Custom Report Type called "Campaigns with Influenced Opportunities"
Opportunity -> Contact Role -> Campaign History -> Campaign Member
User-added image

Created new Report using the Report Type:
Added Group by as Campaign Name
User-added image

Filter added as Campaign Name & Campaign ID
User-added image

Report view (Lightning)

User-added image

any one please suggest what is missing? thanks for your help advance.