Answers - Salesforce Trailblazer Community
Ask Search:
Sasha HoffSasha Hoff 
I have built a flow in which I create a new "Intake" Record.  After the record is creted, more screens allow the Flow to capture more data and I have tried two ways to update the other fields in the "Intake" Record and can not.

(1)In the Create Intake I have tried to store the Intake ID as
{!varIntakeID}- Text Field  and
varrecordintake- Record Variable

Flow Overview
(2)In the screen the users populate the dataa I want to update
On the left I try to update the record before the decision tree
On the right I try to updaet the record after the decision tree
- Should I update the record before or after the decision tree

(3) In the Field Update Screen I have tried 2 approaches
1-Use the IDs and all field values from a record variable or record collection

2- Specify conditions to identify records, and set fields individually

After Creating the Intake Record and Storing the ID in each below way I have tried to use the ID as a condition
{!varIntakeID}- Text Field 
varrecordintake- Record Variable

User-added image
None of these different options is working. Any ideas? Thanks!
Best Answer chosen by Sasha Hoff
Om PrakashOm Prakash
Hi Sasha,
Thanks for sharing details log.
Please see this part:
RECORD UPDATE: Tobacco2
Find all Intake__c records where:
Id Equals {!varIntakeID} (a002E00000ZIDqZQAX)
Type_of_Class_Action__c Equals Tobacco

It sesem in Record Update element  "Tobacco2" you have added filter condition Type_of_Class_Action__c Equals Tobacco

Please remove this criteria and keep only one condition  Id Equals {!varIntakeID} as Id is enough for get recently created record.
Barracks SBarracks S 
I'm looking at this article Today's Tasks and list views in Lightning (https://help.salesforce.com/articleView?id=000265169&language=en_US&type=1), and for some reason I can't find the 'Today's Tasks' on the lightning component list. I'm trying to add this to the Lead Lightning page.

User-added image
Best Answer chosen by Barracks S
Amnon KruviAmnon Kruvi
Hi Barracks,

Different component can be placed on different types of pages. The Today's Activities component can be placed on a home page, but probably not on a record page.
Best Answer chosen by Barracks S
Om PrakashOm Prakash
Hi Barracks,
You should use Standard Component "List View", Choose the Object = Task, and choose your Task's List view.
For example Open Task List view.
User-added image

 
Jordan BJordan B 
Hi

I would like to create a validation rule that if the profile is different than Admin, you can not edit the following picklst values, field : Status
Vaiues: "Recap" & "Approved".

Thanks

 
Best Answer chosen by Jordan B
Deepak AnandDeepak Anand
Try this = 
AND(
    $Profile.Name <> "System Administrator",
    ISCHANGED(Status),
    CASE(
        Status,
        "Recap",    1,
        "Approved", 1,
        0
    ) == 1
)
SHUCHI TIWARISHUCHI TIWARI 
Hi All,

I am trying to access Accont related Sobject opportunities' fields.
But I am getting below error on bold line.

Unsupported attribute var in <apex:outputField> in AccountDetail

<apex:page standardController="Account">
    <apex:pageBlock title="Accounts">
        <apex:pageBlockSection>
            <apex:outputField value="{! Account.Name }"/>
            <apex:outputField value="{! Account.opportunities.Name"/>
        </apex:pageBlockSection>
       </apex:pageBlock>
</apex:page>

Can nybody tell me the reason for error?
Best Answer chosen by SHUCHI TIWARI
Om PrakashOm Prakash
Hi,
Reason is same because expression is not closed with }
Your line 9 has {! Account.opportunities.Name
User-added image


Once you will add }, you will get another error as explained in previous reply's point 2.

User-added image

Here is modified version fo your complete current code:
<apex:page standardController="Account">
    <apex:pageBlock title="Account">
        <apex:pageBlockSection>
            <apex:outputField value="{! Account.Name }"/>
            <apex:outputField value="{! Account.Phone }"/>
            <apex:outputField value="{! Account.Industry }"/>
            <apex:outputField value="{! Account.AnnualRevenue }"/>
            <apex:outputField value="{! Account.Active__c }"/>
        </apex:pageBlockSection>
       </apex:pageBlock>
      <apex:pageBlock title="Opportunities">
           <apex:pageBlockTable value="{!Account.Opportunities}" var="objOpp">
              <apex:column value="{!objOpp.Name}"/>
              <apex:column value="{!objOpp.Amount}"/>
              <apex:column value="{!objOpp.StageName}"/>
           </apex:pageBlockTable>
    </apex:pageBlock>
    <apex:pageBlock title="Contacts">
           <apex:pageBlockTable value="{!Account.contacts}" var="contact">
              <apex:column value="{!contact.Name}"/>
              <apex:column value="{!contact.Title}"/>
              <apex:column value="{!contact.Phone}"/>
           </apex:pageBlockTable>
    </apex:pageBlock>
</apex:page>
Dave MeixellDave Meixell 
I just wrote the following equation, and am getting the error code of: "Error: Incorrect number of parameters for function 'IF()'. Expected 3, received 2"

I selected a formula field, then I selected "Text" from the "fomula return type".  I am trying to get the field to say "Yes" if one of the following values are selected from a picklist.

IF(OR(ISPICKVAL(Status__c, 'Certified'),ISPICKVAL(Status__c, 'Purchased'),ISPICKVAL(Status__c, 'Returned')), "Yes")
Best Answer chosen by Dave Meixell
sakshi nagpalsakshi nagpal
Hi Dave,

I added "No" to your formula,
IF(
OR(
ISPICKVAL( ForecastCategoryName , 'Certified')
,ISPICKVAL(ForecastCategoryName, 'Purchased')
,ISPICKVAL(ForecastCategoryName, 'Returned')
), "Yes","No")

 There are three parameters in If
1)logical condition-
OR(
ISPICKVAL( ForecastCategoryName , 'Certified')
,ISPICKVAL(ForecastCategoryName, 'Purchased')
,ISPICKVAL(ForecastCategoryName, 'Returned')
2)value if logical condition is true-"Yes"
3)value if logical condition is false-"No"

 3rd parameter was missing in your formula

 
This was selected as the best answer
Dave MeixellDave Meixell 
I want to calulate the number of days outstanding from todays date to "Start Date" based on if one of the following two values (Shipped or Support Issues)  is selected from a picklist.  How would I wirte the formula?
Best Answer chosen by Dave Meixell
sakshi nagpalsakshi nagpal
Hi Dave,

I added "No" to your formula,
IF(
OR(
ISPICKVAL( ForecastCategoryName , 'Certified')
,ISPICKVAL(ForecastCategoryName, 'Purchased')
,ISPICKVAL(ForecastCategoryName, 'Returned')
), "Yes","No")

 There are three parameters in If
1)logical condition-
OR(
ISPICKVAL( ForecastCategoryName , 'Certified')
,ISPICKVAL(ForecastCategoryName, 'Purchased')
,ISPICKVAL(ForecastCategoryName, 'Returned')
2)value if logical condition is true-"Yes"
3)value if logical condition is false-"No"

 3rd parameter was missing in your formula

 
Ranjeeth NRanjeeth N 
We have Salesforce site created , we want to track user activity on site,which user from which region or which device is trying to access the site
Best Answer chosen by Ranjeeth N
sakshi nagpalsakshi nagpal
Hi Ranjith,

 Try using google analyitcs on your site-:
          https://developer.salesforce.com/docs/atlas.en-us.salesforce_platform_portal_implementation_guide.meta/salesforce_platform_portal_implementation_guide/sites_analytics_tracking_code.htm 

You can also try some app exchange apps that are build on top on google analytics
Jagannath shyam shyamJagannath shyam shyam 
Hello , I am new in Salesforce

Am having cofusion in Self relationship as why Self relationship is called Special Type of Lookup Relationship and what is the purpose of self relationship?

thank you in Advance!!!
Best Answer chosen by Jagannath shyam shyam
Om PrakashOm Prakash
Hi,
Lookup relationships link two objects together. You can link an object with another standard or custom object, or you can link an object with itself—that’s called a self relationship.

It depends on your requirement if you need self relationship Lookup.
Example: We have existing lookup field on Account which allow us to choose any Acount as Parent Account of an existing Account.

Simillary, In this trailhead module there is an example of custom object as well where we use self relation lookup:
https://trailhead.salesforce.com/en/content/learn/projects/build-a-data-model-for-a-recruiting-app/self-relationship-positions-object

So, Self relationship just a referred name here which intent lookup with same object type.
Kajal KantariaKajal Kantaria 
I am helping the Non Profit Organization and I need to send event reminder to all donors for upcoming event so I have created Time Dependent workflow on Event Object which sends event reminder to all donors automatically 18 hours prior to event start time but for some reason It is not working and I have spent enough time to solve the problem and no idea what went wrong! Please help me to solve this problem!

Regards,
Kajal
 
Best Answer chosen by Kajal Kantaria
Om PrakashOm Prakash
Hello Kajaj,
Start field on event is DateTime field.
When you debug log the execution, you will find the Start is evaluating with value of 12:00 AM of current time zone because you have set Event Start EQUALS 4/20/2019, so criteria not matched.

User-added image

In that cases, Start Greater Than 4/19/2019 and Less than 4/21/2019 would work, this was the reason of your previous reply