Ask Search:
Charu KheraCharu Khera 
I am having a hard time creating a criteria based sharing rule on a custom object?  Here is the complete summary -

An account has the OWD - Private and then we later open the Account with other groups of users in SFDC and give them Read/Write Access.

We created a custom object - Account Classification that includes the type, subtype and further more details about the account.  It a child to the account and resides as a part of related list. 

Now, I have group of users that don't want other users to have access to their account and its related list.  So, if the Account Classification has these following fields filled as -

Account Classification Record Type = BMG
Type = Vendor

Then, this particular account and the classifications should not be visible to anyone except the admins and the users of that particular group.

I tried criteria based sharing rule at Account level, but that doesn't work.  I am now trying at Account Classification level, but it doesn't let me change the OWD - controlled by parent or create any sharing rule at child level.  I dont see any option or buttons.  Please help or suggest!
Best Answer chosen by Moderator (salesforce.com) 
Laura BellLaura Bell
If the child object is a master/detail, then the child security will always follow the parent.
If the child is a standard lookup relationship, then the child can have it's own security model.
Sushma RamakrishnanSushma Ramakrishnan 
Hi All,

I have the below Products related list and I want the List price and Sales Price to be different.Please help me to achieve that.Thanks In Advance.
User-added image
Best Answer chosen by Sushma Ramakrishnan
Sushma RamakrishnanSushma Ramakrishnan
Hi Naveen,

I fixed it myself.I kept the List Price and Standard Price Same in Price Books.But dafaulted the Discount , Sales price & Quantity value in my Process Builder.
Safwan BurkiSafwan Burki 
Hi guys,

I work in the advertising industry whereby our company works with media agencies. These media agencies work on behalf of brands. For example: the Media Agency is WPP who work on behalf of Coca Cola.

I was wandering what do you reckon is the best way to create a record for both media agencies and brands whereby the media agency is the child and the brands are the parent. So if my managers wanted to see which media agencies worked with Coca Cola, or which brand worked with WPP etc they can? 

In some instances we don't work with a media agency and work directly with a brand, so what would you recommend on how I should go about recording this. Should I create separate objects for Media Agencies and Brands or is there a way to keep them in one place?
Best Answer chosen by Safwan Burki
Amit SinghAmit Singh
Hi Safwan,

Why you do not go for Account-Contact Object because this already maintained the Parent-Child Relationship where Account is Parent and Contact is Child.

Also, Account have self-lookup relationship with Account so you can also use the Account Object itself.

I will suggest using Account and Contact.

Regards,
Amit
Lakshmi KumarLakshmi Kumar 
Hello All,

Earlier I had a requirement where on click of a button a new pop-up window should open that displays the information. Below is the Javascript that I developed and which is working fine.
 
window.open("/_ui/core/email/author/EmailAuthor?p3_lkid={!Case.Id}&p2_lkid={!Case.ContactId}&p26=xxx@xxx.com&template_id=00Y4C000000CFTG&retURL=%{!Case.Id}","_blank","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, width=800, height=650");
Now my client says they want that button to open in a new tab rather than the pop-up. Can somebody tell me how to change my JS code to accommodate the new requirement? 

Thanks :) 
 
Best Answer chosen by Lakshmi Kumar
David CatindoyDavid Catindoy
window.open("/_ui/core/email/author/EmailAuthor?p3_lkid={!Case.Id}&p2_lkid={!Case.ContactId}&p26=xxx@xxx.com&template_id=00Y4C000000CFTG&retURL=%{!Case.Id}","_blank");
Greg ShawGreg Shaw 
I have a lightning component that uses lighting:textArea and was working last week but now that Summer '18 has been pushed to the sandboxes it no longer works. The error raised is:

Action failed: aura:if$controller$init [Definition does not exist on the client for descriptor:markup://lightning:textArea]

And the stack trace is:
V.Db()@https://<instance>.lightning.force.com/auraFW/javascript/FwUuJNcW3nWZsn6VHwWpjQ/aura_prod.js:639:156
V.$d()@https://<instance>.lightning.force.com/auraFW/javascript/FwUuJNcW3nWZsn6VHwWpjQ/aura_prod.js:613:290
Object.Eg()@https://<instance>.lightning.force.com/auraFW/javascript/FwUuJNcW3nWZsn6VHwWpjQ/aura_prod.js:371:267
init()@https://<instance>.lightning.force.com/auraFW/javascript/FwUuJNcW3nWZsn6VHwWpjQ/aura_prod.js:370:163
H.Pc()@https://<instance>.lightning.force.com/auraFW/javascript/FwUuJNcW3nWZsn6VHwWpjQ/aura_prod.js:469:177
Object.c [as kb]()@https://<instance>.lightning.force.com/auraFW/javascript/FwUuJNcW3nWZsn6VHwWpjQ/aura_prod.js:336:249
wD()@https://<instance>.lightning.force.com/auraFW/javascript/FwUuJNcW3nWZsn6VHwWpjQ/aura_prod.js:453:283
{anonymous}()@https://<instance>.lightning.force.com/auraFW/javascript/FwUuJNcW3nWZsn6VHwWpjQ/aura_prod.js:454:101
$.z.cb()@https://<instance>.lightning.force.com/auraFW/javascript/FwUuJNcW3nWZsn6VHwWpjQ/aura_prod.js:780:229
N.V()@https://<instance>.lightning.force.com/auraFW/javascript/FwUuJNcW3nWZsn6VHwWpjQ/aura_prod.js:454:80

The component still works in production which is on Spring '18. Anyone else having issues with lightning:textArea? Or is there some quirk that has changed?

Thanks, Greg.
Best Answer chosen by Ed (salesforce.com) 
Justin RichmondJustin Richmond
Found a good writeup about the cause of the issue (and potentially Salesforce's response to the issue) here:
https://medium.com/@manjotsingh0074/are-lightning-component-tags-are-case-sensititve-e9411b59ded

Overall it would be good to change the case sensitivity so it is fixed when Salesforce eventually enforces.
Sarah AlbersSarah Albers 

I want not only the date, but the time of creation to show up in a report on a custom object.  I would like to capture records created today (or 1 day) and sort them by time of creation. 

It does appear to be sorting based on time of creation, but the only evidence of this is if we open the record and check.  How can I get it to show up in the report?

Thanks friends!

Best Answer chosen by Moderator (salesforce.com) 
Steve MolisSteve Molis
Hi Sarah,
You can do that by creating a custom Formula Field (DateTime) and insert CreatedDate in the Formula Wizard.  

PS.  Don't ask me why this works, it just does.
Bala KoppellaBala Koppella 
Hi Guys,

I am trying to write a validation rule on Opportunity where the opportunity stage cannot be "Closed/recorded" when the picklist field  "Paperwork" is neither the value 'N/A' or 'Executed'. Below is my validation rule. it doesn't show any errors but is not working. 

ispickval(StageName, 'Closed/Recorded') && 
(
 not(CONTAINS(TEXT(paperwork__c),"EXECUTED")) || not(CONTAINS(TEXT(paperwork__c),"N/A"))
)

 
Best Answer chosen by Bala Koppella
Steve MolisSteve Molis
Give this a try
AND(
TEXT(StageName) = 'Closed/Recorded',
CASE(paperwork__c,
"EXECUTED", 1 ,
"N/A", 1 ,
0 ) = 0
)

 
Nora MNora M 
I can't change the data type and it is a new costume objectUser-added image
Best Answer chosen by Nora M
Nishad KallingalNishad Kallingal
Hi Nora,

To create the master-detail relationship field to relate custom object with the account  object
  1. From Setup, enter Objects in the Quick Find box, then select custom object
  2. Click Review.
  3. In the Custom Fields & Relationships related list, click New.
  4. Select Master-Detail Relationship, and click Next.
  5. In the Related To drop-down list, choose account, and click Next.
  6. Click in the Field Name text box and enter the field name ----.
  7. Select the Read/Write radio button.
  8. Check Child records can be reparented to other parent records after they are created if you want to be able to change the relationship field’s value. If you leave this box unchecked, you can’t change the value in the future.
  9. Click Next.
  10. Accept the defaults in the remaining three steps of the wizard.
  11. Click Save.

Regards.
Chris LeszkaChris Leszka 
I'm using Process Builder to create Assets on any Opportunity Products of a specific type whenever an opportunity is marked as Closed - Booked.  Since i have to reference the product family, and create assets based on the Opportunity Products, i've setup the Process to run off the Opportunity Products object.

The issue i'm running into is that i'll have an opportunity with products, and that opportunity's stage gets updated to Closed - Booked... Because the Opportunity products were added prior to the Opportunity stage being updated, the process is not triggering.  If after closing an opportunity i go into the products, make a change and hit save, then it runs just fine.

How do I get the Process to run on the Opportunity stage change?
Best Answer chosen by Chris Leszka
Jackie DoanJackie Doan
Hi Chris,

Instead of using a process to do this, have you thought of trying a process and a flow? You can set the process to run on the oppty stage change, then use a flow to loop through the products. 
Ian GendreauIan Gendreau 
I have an Account that has 3 Opportunities all-time, all won, for the following 3 amounts:
439.00
24,543.40
4,931.00

Annual Revenue field reads: $15,453.  What's the formula behind this field? 

 
Best Answer chosen by Ian Gendreau
Stephen NoeStephen Noe
+1
The standard Annual Revenue field on Accounts is used to represent the revenue of the Account itself - not the revenue your company earns from the Account.