Ask Search:
Griffen HuelerGriffen Hueler 
I am trying to add comments as an available field when creating a new task under the opportunity object. Right now if you create a new task under a specific opportunity and then edit it you can add comments but not able to add comments when creating the opportunity. Thank you
Best Answer chosen by Griffen Hueler
Kris RyanKris Ryan
Hi Griffen,
Are you in Lightning or Classic? What type of activity are you trying to create, Log a Call, Event, etc?
Ramakrishnan AyyanarRamakrishnan Ayyanar 
force:hasRecordId interface doesn't get recordId attribute value of the record in lightning component in Winter 18?

code: 
comp code:

<aura:component implements="force:lightningQuickAction,force:hasRecordId" >
  
   <aura:attribute name="recordId" type="id" access="global"/> 
  <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
</aura:component>

comp controller js:
({
 doInit: function(cmp)
 {
 console.log("recordidjs: "+component.get("v.recordId"));
 }
})

Result: 
We have added the above component in record detail page
In Winter 18 - we get "recordidjs: undefined" in console

This same code displays record id in previose releases

 
Best Answer chosen by Ed (salesforce.com) 
Tim CaljeTim Calje
Ran into the same issue but calling the lightning component from a quick action instead the global action solved the issue.

Gentle reminder to also replace the global action on the record page with the quick action.
Adeline MooreAdeline Moore 
Here is the error message I keep getting:
Challenge Not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, A contact with a MailingPostalCode that has an account and does not match: []
Here is my screen shot of my validation rule:
User-added image
Best Answer chosen by Adeline Moore
Sandeep Kumar GaddamSandeep Kumar Gaddam
Hello Moore,

try below formula in validation this should fire when you try to save contact which has diffrent zipcode then the account it is belong to . 
 
ISBLANK(AccountId)||(MailingPostalCode<>Account.ShippingPostalCode)

Also when are you getting this error ? System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, A contact with a MailingPostalCode that has an account and does not match: []

Are you getting this at the time of inserting contact from dataloader ? if so please have the data which will sastify the validation rule.

Thanks
PS: Mark a best answer as well so that thread is closed and help us to keep community clean.
 
Victoria SliwaVictoria Sliwa 
I completed the Community Rollout Strategy - Create Sharing Rules Challange as described in Trailhead:
1. Set OWD for cases to private
2. Create Edna Frank and associate cases with her account
3. Set up Communitites
4. Make Edna Frank a customer community user
5. Create a sharing set "Share cases with customers" where User:Account = Case:Account

However, after attempting the above I've been getting a strange error that reads "Challenge Not yet complete... here's what's wrong:
There was an unexpected error in your org which is preventing this assessment check from completing:
System.QueryException: List has no rows for assignment to SObject"

Has anyone else been experiencing this problem? Any known solutions?
 
Best Answer chosen by Victoria Sliwa
Mayank SrivastavaMayank Srivastava
Hey Victoria, it is most likely an org issue. Did you try in a completely new Dev org? That has fixed a lot of problems for me in the past. Also, you sharing set should be configured like this:

User-added image


User-added image

(Right click and open in new tab to view a bigger image).
 
Kerry ProkselKerry Proksel 

I'm trying to create a VF page that will allow the sales team to edit multiple opportunity line items at the same time. My work compiles fine, but the save button doesn't actually edit any of the products. Anyone know what I'm doing wrong?

VF:
<apex:page standardController="Opportunity" extensions="OLIController" >
    <apex:form >
        <apex:pageBlock title="Opportunity Products">
            <apex:pageBlockTable var="OLI" value="{!OLIs}" id="newProduct">
                <apex:column value="{!OLI.name}"/>
                <apex:column headerValue="Product Family">
                    <apex:inputfield id="Product_Family__c" value="{!OLI.Product_Family__c}"/>
                </apex:column>
                <apex:column headerValue="Product Included in Sale">
                    <apex:inputfield id="Product_Included_in_Sale__c" value="{!OLI.Product_Included_in_Sale__c}"/>
                </apex:column> 
                <apex:column headerValue="Product Lost Reasons">
                    <apex:inputfield id="Product_Lost_Reasons__c" value="{!OLI.Product_Lost_Reasons__c}"/>
                </apex:column> 
                <apex:column headerValue="Product Gap Reason">
                    <apex:inputfield id="Product_Gap_Reason__c" value="{!OLI.Product_Gap_Reason__c}"/>
                </apex:column> 
                <apex:column headerValue="Competitor">
                    <apex:inputfield id="Competitor__c" value="{!OLI.Competitor__c}"/>
                </apex:column> 
            </apex:pageBlockTable>
            <apex:pageBlockButtons>
                <apex:commandButton value="Save" action="{!saveIt}"/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>



Controller:
public with sharing class OLIController {

public ApexPages.StandardController sc;
public Opportunity Opp {get;set;}
public List<OpportunityLineItem> OLIlist2 {get ;set;}

public OLIController(ApexPages.StandardController sc) { 
this.Opp = (Opportunity)sc.getRecord();
OLIlist2 = [Select Name, ID, Product_Family__c, Product_Included_in_Sale__c, Product_Lost_Reasons__c, Product_Gap_Reason__c, Competitor__c, OpportunityId FROM OpportunityLineItem WHERE OpportunityId =:Opp.Id];
}


public List<OpportunityLineItem> getOLIs() {

    List<OpportunityLineItem> OLIlist2 = [Select Name, ID, Product_Family__c, Product_Included_in_Sale__c, Product_Lost_Reasons__c, Product_Gap_Reason__c, Competitor__c, OpportunityId FROM OpportunityLineItem WHERE OpportunityId =:Opp.Id];

    return OLIlist2;

}
public PageReference saveIt() {
   // List<OpportunityLineItem> listOLI = getOLIs();

    update OLIlist2;

    return null;

}
}

 
Best Answer chosen by Kerry Proksel
Kerry ProkselKerry Proksel
Thanks I actually fixed it. Here's my new code
 
public with sharing class OLIController {

public ApexPages.StandardController sc;
public Opportunity Opp {get;set;}
public List<OpportunityLineItem> OLIs {get ;set;}

public OLIController(ApexPages.StandardController sc) { 
this.Opp = (Opportunity)sc.getRecord();
OLIs = [Select Name, ID, Product_Family__c, Product_Included_in_Sale__c, Product_Lost_Reasons__c, Product_Gap_Reason__c, Competitor__c, OpportunityId FROM OpportunityLineItem WHERE OpportunityId =:Opp.Id];
}


public List<OpportunityLineItem> getOLIs() {
    return OLIs;
}
public PageReference saveIt() {

    update OLIs; 
    return null;

}
}

 
David HansenDavid Hansen 
Starting about two or three weeks ago I started having an issue logging into Salesforce using Safari. When I try to log in I end up with the message:
User-added image

Since they I have been able to get around his by manually typing the address in but starting today not even that works. I've tried clearing my browser cache and even turned off my ad blocker with no success. Does anyone else know why this might be happening?
Best Answer chosen by David Hansen
San SaephanhSan Saephanh
Hi David,
I ended up resolving the issue. Follow the instructions using this guide: https://help.salesforce.com/articleView?id=000269462&language=en_US&type=1

Make sure to follow the force quit section to make sure it works. 
Magdi RizkallahMagdi Rizkallah 
See this question for more details.
https://developer.salesforce.com/forums/ForumsMain?id=9060G000000MUw9QAG
 
Best Answer chosen by Magdi Rizkallah
Magdi RizkallahMagdi Rizkallah
However, EPB just appeared in my org (after 3 days)
Best Answer chosen by Ed (salesforce.com) 
Tom HoffmanTom Hoffman
I imagine if the form tool is native to Salesforce, it would inherit its HIPAA compliance much like 100% native apps meet the FedRamp guidelines for GovCloud.  

One to check out is Youreka - I had them do a demo for us after DF in '16, was a pretty cool product back then, so imagine its stronger now.  They feature some healthcare use cases on their site, so might be a good place to start. 
Jan BergerJan Berger 
How can I create a pop-up alert in marketing cloud so for example the user is getting the information that he or she works with confidential data?
Best Answer chosen by Jan Berger
Jan BergerJan Berger
So the customer requirement is that they want to have an notification for the user after the user logged in to the Marketing cloud and furthermore during they work in the Marketing cloud application. My first idea was to customize the Marketing Cloud Layout and fill in the Logo of the customer with the word "confidential". This do not really worked. I used the brand builder but the only way I could realize my idea was to customize the Login Page Layout. There I could upload the logo with the word confidential. But are there any more options where you can create an notification which pop up at the beginning or after a couple of minutes? So the user get´s an active information.
Maybe there are some other ideas in customizing the UI to realize the requirement of the customer to aware the users that they work with confidential data.
William HawkinsWilliam Hawkins 
SF recommends using the following formula to calculate a contact's age on TODAY's date:

IF( 
MONTH(TODAY())>MONTH(DOB__c), 
YEAR(TODAY())-YEAR(DOB__c), 
IF(AND(MONTH(TODAY()) = MONTH(DOB__c), DAY(TODAY()) >= DAY(DOB__c)), 
YEAR(TODAY())-YEAR(DOB__c), 
(YEAR(TODAY())-YEAR(DOB__c))-1) 
)

But how would one write a formula to calculate a contact's age on a specific FUTURE date?  Say, for example, on the first day of school next year: 9/1/2013?  

Thanks!
Best Answer chosen by Ed (salesforce.com) 
Andrew KimbrilAndrew Kimbril
Depends if you want 9/1/2013 in a certain field.  For example, say you type the date under CalcDate__c (Custome date field).   Instead of using the Today() calculation, change it to point to your new field.  If you are using the standard birthday field, then change the DOB__C to Birthdate


IF( 
MONTH(CalcDate__C)>MONTH(DOB__c), 
YEAR(CalcDate__C)-YEAR(DOB__c), 
IF(AND(MONTH(CalcDate__C) = MONTH(DOB__c), DAY(CalcDate__C) >= DAY(DOB__c)), 
YEAR(CalcDate__C)-YEAR(DOB__c), 
(YEAR(CalcDate__C)-YEAR(DOB__c))-1) 
)