We’re rewarding the question askers & reputations are being recalculated! Read more.
6

The order of execution is indeterminate. Technically speaking, the current implementation seems to be that the workflow rule created last will take precedence, but you must not depend on that behavior. If you create two rules that both update the same field, the result will be one of the two updates, but you will not be able to determine which value will ...


5

I am able to see the Email field of User in Email Alert and this is working. The specified email received email once User has been activated using Workflow.


5

You cannot use local host on salesforce. Your service had to be exposed on the internet. A quick and easy way to expose the local host to the internet would be using ngrok . ngrok allows you to expose a web server running on your local machine to the internet. Just tell ngrok what port your web server is listening on.


4

Using Labels You can leverage the fact that labels are automatically translated, even in Formula Fields and workflow rules. Create a Label - "CurrentLanguage" "Translate" that label so that the contents for each entry matches the country code of that langauge. E.g. for English, set Label.CurrentLanguage to en-US for French, set Label.CurrentLanguage to fr ...


4

Well, aside from the AND being extraneous, you need to add an ISNEW check to your OR clause if you want it to fire on create. The ISCHANGED formula returns false on create. OR(ISNEW(), ISCHANGED(Field1), ISCHANGED(Field2), ISCHANGED(etc))


4

Includes is looking for a specific text value. "text". That's the 'Expected Text Literal' part of your error. You're trying to pass off the value of a field as text and you cannot do that. A better way to write this is: Includes(multi_picklist__c, "value") Help article describing it here The text_literal expression must be of type text and enclosed in ...


4

I think you have a couple things going on here. You're missing a closing quote after $Profile.Name = 'Sales Operations You have a parenthesis that's unneeded after ISCHANGED(OwnerId) You need an additional parenthesis at the end of the formula. While not technically an issue, you have extra parentheses around the CONTAINS() function (and elsewhere) If you ...


3

Yes, You can deploy the existing workflow rule. workflow rule will use the unique name to call the field update and not the record id. That way you can maintain consistency of workflows moving form one org to another.


3

Make sure that your workflow rules aren’t set up to create recursive loops. For example, if a field update for Rule1 triggers Rule2, and a field update for Rule2 triggers Rule1, the recursive triggers may cause your organization to exceed its limit for workflow time triggers per hour. The key to understanding this is that Rule1 and Rule2 must both be ...


3

While discussing about workflow rules, I think it is also better to discuss about process builder and compare it. Here is my testing on both workflow and process: (having re-evaluate workflow and re-evaluate enabled in process) In a new dev org, have 3 picklist fields with options: pl1 - 1op1,1op2,1op3 pl2 - 2op1,2op2,2op3 pl3 - 3op1,3op2,3op3 Implement ...


3

The brutally inefficient workaround would be to check the categories one by one and use a text literal for each: 0 < CASE(Category__c, "Value 1", IF(INCLUDES(Account.Categories__c, "Value 1"), 1, 0), "Value 2", IF(INCLUDES(Account.Categories__c, "Value 2"), 1, 0), "Value 3", IF(INCLUDES(Account.Categories__c, "Value 3"), 1, 0), "Value 4", ...


3

You can just use Owner.UserRole.Name in place of Owner:User.UserRole.Name.


3

You should use something like the one here: Formula Account.JDE_ship_to_account_no__c + '-' + Right( Text( Year( Today() ) ), 2) + Lpad( Text( Month( Today() )), 2, '0' ) + Lpad( Text( Day( Today() )), 2, '0' ) + SUBSTITUTE(Left( Right( Text( Now() ), 9), 8), ':', '') Result Warning! Don't be scared, just note that the time part will return ...


3

Use field "HasOpportunityLineItem" on opportunity in your workflow. This field indicates is there any child product is added or not. The field HasOpportunityLineItem is a standard field, not visible in the UI which is automatically calculated by Salesforce. As the documentation states: Read-only field that indicates whether the opportunity has associated ...


2

DATETIMEVALUE Use: DATETIMEVALUE(expression) and replace expression with a date/time or text value, merge field, or expression.Description: Returns a year, month, day and GMT time Link to documentation Field Name & '-' & YYYYMMDDHHSS Y know how to print the YYYYMMDD but i'm not sure how to print the hours and seconds on an easy way since ...


2

I could be wrong, but I don't think the documentation defines an order in which workflow rules are evaluated, nor the order in which field updates are applied (which is the real issue here). I'd treat it as non-deterministic, and avoid having multiple workflow rules (on one object) that have the same evaluation criteria. If you need to set different ...


2

ISPICKVAL(PRIORVALUE(status),"Solved") && ISPICKVAL(status,"Open") And make sure Rule criteria is set as created, and every time it's edited. In case you select created, and any time it's edited to subsequently meet criteria then that formula will not compile at all.


2

You can't, unfortunately. Only the Tooling API supports such a query, and the metadata for the object is all contained in a field called "metadata." When you include this field, which has a JSON output, you can only return one at a time. In other words, there's no direct way to query the data. Your best option is to export all of the workflow rules and use a ...


2

Yes it is absolutely possible to execute workflow rule after the trigger execution. Please read my blog post to understand the order of execution. There is an existing issue which states Workflow does not use current value for "Owner:Queue.QueueName" in recursive evaluation if Owner was changed in prior evaluation link Keep your eyes open for the ...


1

You can just use the AND and PRIORVALUE functions in addition to ISPICKVAL: AND( ISPICKVAL(PRIORVALUE(Status), 'Solved'), ISPICKVAL(Status, 'Open') )


1

you can use Schedulable Interface with Messaging.SingleEmailMessage class to send an email alert at a particular interval. Before sending an email you can check your condition if it fulfills then doesn't send email else you can send email to a particular set of user. Below is the link for implementing schedulable Interface and messaging class in salesforce. ...


1

A1 and B1 will be one of these four possible values: A1 | B1 ---+--- 10 | 10 10 | 20 20 | 10 20 | 20 We can't know in advance which result will occur, because it depends on the order in which the field updates are applied; the behavior is explicitly undefined in the documentation, so you can make no assumptions. If you need a deterministic order, always ...


1

Order of execution is unpredictable for Workflows as shown in the example. Same concept is applicable if you have multiple triggers on Same Object which are performing same operation (like before or after insert/update).


1

You can run an Accounts & Contacts report to add all of the contacts to the campaign using the Add to Campaign button after running the report. This will allow you to filter by any contact or account field that can be filtered.


1

I solved this with a simple VisualForce page by changing the ContentType attribute of the <apex:page> and by setting the Content-Disposition via a custom controller with ApexPages.currentPage().getHeaders().put('content-disposition','inline; filename=calendarEvent.ics'); in the constructor <apex:page ContentType="text/Calendar" controller="...


1

It's basically the same as CSV rules. If the first character is a quote character, and the last is, then the value is quoted, so you'd have to double them up. Also, commas separate values as an "or" operator. For example: Name EQUALS John,Jane Is the same as: Name EQUALS John OR Name EQUALS Jane However, commas are okay if you use quotes: Name EQUALS "...


1

DATETIMEVALUE() expect a parameter Date as as String to convert to a date Example : DATETIMEVALUE("2005-11-15 17:00:00") To get the current timestamp use the function NOW()


1

As per Salesforce documentation, to get the hour, minute, and second from a Date/Time field as a numerical value, use the following formulas where TZoffset is the difference between the user’s time zone and GMT. For hour in 24–hour format: So you can use a formula like this. Update the formula as per your need. TEXT(YEAR(DATEVALUE(NOW()))) & IF(LEN(...


1

For US-based users (it might depend on the user locales), the formula in the workflow field update should read: RIGHT(LEFT(TEXT(YourDateTimeField__c),4),2) &RIGHT(LEFT(TEXT(YourDateTimeField__c),7),2) &RIGHT(LEFT(TEXT(YourDateTimeField__c),10),2) &RIGHT(LEFT(TEXT(YourDateTimeField__c),13),2) &RIGHT(LEFT(TEXT(YourDateTimeField__c),16),2) &...


1

The table deals with a "single stance" of the features. And it is somehow advocating for the visual workflow. The main point is that Workflows are great but for complex structures you'll need a whole bunch of them and might need to use other tools (triggers, for example). And they all happen "at the same time" meaning you need to be really careful with you ...


Only top voted, non community-wiki answers of a minimum length are eligible