Workflow Help - Using PRE function
Hi,
I need to create a workflow on "when modified record saved" trigger event using PRE function. I am currently using this syntax :
(FieldValue('<IndexedPick0>')='Central') AND (FieldValue('<SalesStage>')='Qualified') OR (FieldValue('<SalesStage>')= 'Approach') OR (FieldValue('<SalesStage>')= 'Quote') OR (FieldValue('<SalesStage>')='Negotiation')
What we want this workflow to do is to send an email only when a sales stage is modified or changed to the values above in the syntax, not anything else on the opportunity page.
Waiting for a response.
Thanks in advance
Ahmed
Hi !
Try this :
*[<IndexedPick0>] = 'Central' AND [<SalesStage>] <> PRE('<SalesStage>') AND ([<SalesStage>] = 'Qualified' OR [<SalesStage>] = 'Approach' OR [<SalesStage>] = 'Quote' OR [<SalesStage>] = 'Negotiation')*
This will trigger only when salestage is modified to 1 of the 4 stages and indexedpick0 = 'Central'.
Hope this will help, feel free to ask more !
Max
Similar Messages
-
Using PRE Function to report field changes
Hi Everyone,
As they reporting on audit trail is not available, I was wondering if there was a work around using the PRE function (or any other way) in analytics.
We're looking to track Revenue changes with respect to Opportunities (so, if Opp A's Revenue ever changed since the first time the $ amount was submitted) - we're especially interested in reporting on weekly changes. If the weekly isn't possible, tracking any change would be helpful.
Any suggestions?
Thanks!Why not create a workflow using the PRE() function to record the changes in a Task, you could then report on that task.
cheers
Alex -
HELP using print function in Finder
When you right click a selection of Word documents or photos in the finder, I see an option for Print. I thought that if I used this option, the selection would automatically print. Instead, it just opens the application and documents (for example, Microsoft Word) and you still have to select print in the application. What is the difference between this and just opening the files/documents and pressing print?
Thanks for clearing this up for me.The behavior of the Print contextual menu depends on the application.
Some argue that Word does not handle the Apple Events properly and puts up the dialog instead of just printing the document; others argue Word's behavior is the preferred behavior since the user may want to modify some settings. In the case of Word, there is no difference between this and launching the application and selceting Print.
Other applications, Preview and TextEdit for example, don't put up the dialog, so there is a difference.
Hope this helps. -
Hi fellow apple guys, i have this problem. Hope you can help me. I don't know how to use the function keys (F1 to F12) on my macbook air. Pls help
Out of the box, to use the function keys as function keys, hold down the fn key when you press the key. Otherwise, you get the picture function on the key. You can reverse this behavior in the Keyboard system prefs.
-
Using Excel function in workflow?
Hi all,
Does anybody know if it is possible to use Excel functions in workflows? Indeed, I need to set the style of a metadata according to the value of another metadata.
Thanks in advance.
fxHi,
According to your post, my understanding is that you wanted to set the style of a metadata according to the value of another metadata like Excel function.
I don’t think workflow can do it.
We can use the workflow to set the data, but there is no action to set the style.
What did you mean set the style of a metadata? Did you mean the format?
If so, you can use the conditional formatting.
With conditional formatting, you can easily create a Data View that applies a style to a selected HTML tag or data value when the data meets criteria that you specify.
You can also set conditions that change the visibility of an HTML tag or data value, so you can show or hide data altogether.
You can apply the conditional formatting using SharePoint Designer, there is an article for your reference.
Conditional Formatting in SharePoint 2013
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Help in using listagg function for more than 8000 char.
Hi Friends,
Need you urgent help in using listagg function for more than 8000 char.
I did the below sample SQL and in "e_orig" and "d_orig" for upto 4000 char it is working fine but I have to use it for more than 8000 char. and it is giving error,
I checked the listagg function is having limitation of 4000 char.
I tried but I am unable to achive this. Can someone provide me a sample example to achive this
select d.dname,d.loc,e.hiredate
,listagg(e.ename,',' ) within group (order by e.deptno) over (partition by e.deptno) as e_orig
,listagg(e.ename, ',') within group (order by e.sal) over (partition by e.deptno) as d_orig
from emp e, dept d
where e.deptno=d.deptno;[ This is my first post, I gone through the guideline for posting a post , and try to go according to that ( I have not pasted here create table and insert as I have used basic table emp, dept for example), please let me know if still I should give this, I will take care from my next post ]
Thanks in advanceInteresting, I didn't know you could do that, but...
BluShadow wrote:
You could write some PL/SQL code that does it all for you, but that would involve loops and would be slow.Well, objects are written in PL/SQL aren't they? And presumably there'll be implicit looping too? So it's not at all obvious that this method will be faster than doing the joining in PL/SQL in memory. The only way to find out is to benchmark them - so I have done that.
I noticed that OP's ref cursor actually only ever retrieves a single record for a bound department number, so I decided the best thing would be to test using a procedure that passes an output string back. I selected all (109) employees and put spaces in to ensure above 4000 characters. I also noticed that as he is using PL/SQL he probably can use a VARCHAR2 type, but just not ListAgg in the query, so I wrote short procedures as follows:
SimpleAggChr - bulk collect and array processing, VARCHAR2 output
ClobAggPrc - the custom aggregation method, CLOB output
SimpleAggClob - bulk collect and array processing, CLOB output
I then wrote a driving script that calls them in the order above and times each call (I like benchmarking so I have my own timing object to make it easy). I then print the lengths for checking, and my object writes the timings to my output table. Running a few times I got varying results, but generally it looks like there isn't a lot to choose between them for performance.
Here's the procedure code:
CREATE OR REPLACE TYPE char100_list_type AS TABLE OF VARCHAR2(100)
CREATE OR REPLACE PROCEDURE SimpleAggChr (x_out OUT VARCHAR2) IS
l_enames char100_list_type;
BEGIN
SELECT first_name || ' ' || last_name
BULK COLLECT INTO l_enames
FROM employees
ORDER BY salary;
FOR i IN 1..l_enames.COUNT LOOP
x_out := x_out || l_enames(i) || ',';
END LOOP;
END SimpleAggChr;
CREATE OR REPLACE PROCEDURE SimpleAggClob (x_out OUT CLOB) IS
l_enames char100_list_type;
BEGIN
SELECT first_name || ' ' || last_name
BULK COLLECT INTO l_enames
FROM employees
ORDER BY salary;
FOR i IN 1..l_enames.COUNT LOOP
x_out := x_out || l_enames(i) || ',';
END LOOP;
END SimpleAggClob;
SHO ERR
PROMPT ClobAggPrc
CREATE OR REPLACE PROCEDURE ClobAggPrc (x_out OUT CLOB) IS
BEGIN
SELECT clobagg(first_name || ' ' || last_name || ',')
INTO x_out
FROM employees
ORDER BY salary;
END ClobAggPrc;
SHO ERRand the driving script:
SET SERVEROUTPUT ON
SET TIMING ON
DECLARE
l_enames_c1 CLOB;
l_enames_c2 CLOB;
l_enames_v VARCHAR2(32767);
l_timer timer_set_type := timer_set_type ('Aggregation');
BEGIN
Utils.g_id := 'Aggregation';
SimpleAggChr (l_enames_v);
l_timer.Increment_Time ('SimpleAggChr');
ClobAggPrc (l_enames_c1);
l_timer.Increment_Time ('ClobAggPrc');
SimpleAggClob (l_enames_c2);
l_timer.Increment_Time ('SimpleAggClob');
DBMS_Output.Put_Line ('SimpleAggChr returned string of length ' || Length (l_enames_v));
DBMS_Output.Put_Line ('ClobAggPrc returned string of length ' || Length (l_enames_c1));
DBMS_Output.Put_Line ('SimpleAggClob returned string of length ' || Length (l_enames_c2));
l_timer.Write_Times;
END;
SET TIMING OFF
SET LINES 150
SET PAGES 1000
COLUMN id FORMAT A30
COLUMN line_text FORMAT A120
SELECT line_text
FROM output_log
WHERE id = 'Aggregation'
ORDER BY line_ind
/and the results:
SimpleAggChr returned string of length 5779
ClobAggPrc returned string of length 5779
SimpleAggClob returned string of length 5779
PL/SQL procedure successfully completed.
Elapsed: 00:00:27.05
LINE_TEXT
Timer Set: Aggregation, constructed at 03 Nov 2011 16:27:07, written at 16:27:35
================================================================================
[Timer timed: Elapsed (per call): 0.02 (0.000016), CPU (per call): 0.01 (0.000010), calls: 1000, '***' denotes corrected
line below]
Timer Elapsed CPU Calls Ela/Call CPU/Call
SimpleAggChr 9.84 0.36 1 9.84400 0.36000
ClobAggPrc 9.37 0.32 1 9.37400 0.32000
SimpleAggClob 8.25 0.22 1 8.25000 0.22000
(Other) 0.00 0.00 1 0.00000 0.00000
Total 27.47 0.90 4 6.86700 0.22500
13 rows selected. -
Using the functional methods with workflows
Hi All,
I'm passing the plant number to a workflow by triggering an event in a user-exit. The workflow uses a functional method of an ABAP class and retrives the plant details. While binding the functional method back to the workflow, the binding includes a partial expression like this..
&_WI_OBJECT_ID.PLANT(W_PLANT=)&
Here, if I give &_WI_OBJECT_ID.PLANT(W_PLANT='1000')& I get no error and the details of plant 1000 are retrived successfully. How do I pass this value dynamically?
Regards
Indu.Aditya,
Thanks for your input. But there were no start conditions.
The import parameter should be filled in the partial expression as &PLANT& which was not taking its value earlier. But now, its working. Thanks anyway.
Regards
Indu. -
I misplaced my ipad, so I remotely erased it. Then I found it, but now I cannot use all of the options in the settings. I have restored from backup, but it still is not letting me use all functionality. Help!
Would throwing it in Recovery mode and restoring as new clear it up?
(same for Ipad)
Step 1: Turn off the iPhone. To do this press and hold the power button till you see the “Slide to Power off” screen. Now slide the button to turn it off.
In case your iPhone is stuck in an infinite loop and the previous option is unavailable, press and hold the Power and Home button till the screen goes off. Remember to leave both the buttons as soon as the screen goes off and before the Apple logo appears again.
Step 2: Connect the iPhone’s USB cable to your computer but not to your iPhone yet.
Step 3: Now hold down the Home button and while you are holding it connect the USB cable. Keep holding the Home button till you see the Connect to iTunes screen on your iPhone(Screenshot shown below). iTunes will show an alert saying a device in recovery mode has been detected.
Here’s what your iPhone screen will look like once its in the iPhone Recovery Mode.
Read more: http://www.callingallgeeks.org/15018/how-to-put-iphone-or-ipod-touch-into-recove ry-mode/#ixzz296y04ygX
Under Creative Commons License: Attribution No Derivatives
THEN RESTORE THE DEVICE AND SETUP AS NEW. JUST YOU WILL HAVE TO DOWNLOAD YOUR APPS AGAIN(FREE) ETC....
LEAST THE SECURITY WORKS HAHA!!! I also wouldnt get upset, be thankful you found it. -
i have an ipod touch 3rd gen.I used the function of erasing all contents and settings and now i am stuck with this screen showing the apple logo and the loading sign for the past 17 hours.CAN SOMEONE PLEASE HELP!!!!!!!!!!!!
Hold down the on/off button and the home button for 20 to 30 sec, when the iPod starts and the Apple logo is on the screen release the on/off button but continue to hold the home button until you see the plug into iTunes screen. Connect the iPod to iTunes and you should be good to go.
-
Help to write using anlytical functions or singe count instead of many
HI,
Could you some one help to write as single count instead of many (.Or) Is there any way to write below query using analytical functions?
SELECT paper_code,paper_code_description, numCandidates, cast(numAwaitingApproval as varchar2(10)) as numAwaitingApproval, (numawaitingtrans + numawaitingibtran) as numAwaitingSubmission, (numibsub + numsub) as numSubmittedForMarking
FROM(
SELECT e.paper_code,
translate_paper(e.paper_code,:v_year,:v_month,:v_iblanguage,:v_paper_type) AS paper_code_description,
COUNT(e.candidate) AS numcandidates,
COUNT(DECODE(status, 'AWAITING AUTHENTICATION',1)) AS numAwaitingApproval,
COUNT(DECODE(status, 'AWAITING TRANSFER',1)) AS numawaitingtrans,
COUNT(DECODE(status, 'AWAITING IB TRANSFER',1)) AS numawaitingibtran,
COUNT(DECODE(status, 'SUBMITTED',1)) AS numsub,
COUNT(DECODE(status, 'IB SUBMITTED',1)) AS numibsub
FROM e_assessment_cands e,
candidate_component_reg ccr,
person_subject_session pss
WHERE e.year = :v_year
AND e.month = :v_month
AND e.e_coursework = :v_e_coursework
AND e.school_code = :v_school_code
AND ccr.split_session_year = e.year
AND ccr.split_session_month = e.month
AND ccr.candidate = e.candidate
AND ccr.paper_code = e.paper_code
AND ccr.subject =:v_subject
AND ccr.subject_option =COALESCE(:v_subject_option,ccr.subject_option)
AND ccr.lvl =COALESCE(:v_lvl,ccr.lvl)
AND ccr.language =COALESCE(:v_language,ccr.language)
AND ccr.component =COALESCE(:v_component,ccr.component)
AND pss.year = ccr.split_session_year
AND pss.month = ccr.split_session_month
AND pss.subject = ccr.subject
AND pss.lvl = ccr.lvl
AND pss.subject_option = ccr.subject_option
AND pss.language = ccr.language
AND pss.role = :v_role
AND pss.person_code = :v_person_code
GROUP BY e.paper_code)Hi,
user575115 wrote:
HI,
Could you some one help to write as single count instead of many (.Or) If you're using Oracle 11, look at SELECT ... PIVOT.
If you'd like help. post CREATE TABLE and INSERT statements for some sample data, and the results you want from that data.
Always say which version of Oracle you're using.
Given that you need numCnadidates and numAwaitingApproval, using COUNT twice seems to be the simplest and most efficient way to do it.
If you don't need the other COUNTs, such as numawaitingtrans, then don't compute them.
Is there any way to write below query using analytical functions?Analytic functions can give you a COUNT without reducing the result set to one row per group. It lookw like you do want to reduce the result set to one row per group, however, so I don't see how analytic functions would help in this problem. -
New to PL/SQL and need help on check sum using ASCII function
Hello,
Need your expertise to help in figuring out how to write
code to calculate using ASCII function to return value for a character. For example ASCII('A') is 58. I want to do the check sum to sum-up the value for each character in the name. For example 'Jack'
Appreciate your help.
CKHi,
Please post all the technical queries in the respective forums. For more details and answers in SQL and PL/SQL, use the following forum:
PL/SQL
Sample PL/SQL code for your requirement:
-- make sure you have the serveroutput on using command.
-- set serveroutput on
DECLARE
sumval NUMBER(10);
tempval NUMBER(10);
colval VARCHAR2(20);
BEGIN
SELECT USER INTO colval FROM dual;
sumval := 0;
FOR i IN 1..LENGTH(colval)
LOOP
SELECT ASCII(SUBSTR(colval,i,1)) INTO tempval FROM dual;
sumval := sumval+tempval;
END LOOP;
DBMS_OUTPUT.PUT_LINE('sum is: '||to_char(sumval));
END;
The output of this pl/sql block will be:
sum is: 397
Please note: ASCII('A') is 65 and not 58.
Hope that helps.
Savitha.
http://otn.oracle.com/sample_code/content.html -
Help me on using GUI_UPLOAD function
Dear my friends,
I am using GUI_UPLOAD function to upload a file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename contain file path
FILENAME = filepath
filetype is ASC
FILETYPE = 'ASC'
Use tab key to seperate field
HAS_FIELD_SEPARATOR = ','
Internal table keep data from file by function GUI_UPLOAD
TABLES
data_tab = tblTrantable.
but it did not work for HAS_FIELD_SEPARATOR option.
although i tried to use HAS_FIELD_SEPARATOR = '#'
but system still return by fix lengh data column not by separator.
<u>note : my SAP version = 4.6C</u>
Please help me,
Thanks !
Message was edited by:
Quoc Luc Nguyen
Message was edited by:
Quoc Luc Nguyenhi,
set has field separartor to 'x'.
chk this FM for example:
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = W_FILENAME1
FILETYPE = W_FILETYPE1
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = 'X'
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = IT_UPLOAD
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
regards,
keerthi -
I have just updated my iPhone to version 5.1. After the update, the camera button next to the "slide to unlock" button does not work at all. It used to function well before the update. It happens to my friends as well. What should I do? Can someone help?? Thanks!!!!
Slide the camera button up
-
Hi, I have on my credit card monthly payments of fertilizer, and when I want to reveal to LR I get a reading indicating I should renew the subscription in order to use this function, alguine can help me ?? thx
Thanks John, but this way is you get to this forum marinate options were
not available
2015-01-12 22:21 GMT-03:00 John T Smith <[email protected]>:
Hi, I have on my credit card monthly payments of fertilizer, and when
I want to reveal to LR I get a reading indicating I should renew the
subscription in order to use this function, alguine can help me ?? thx
created by John T Smith <https://forums.adobe.com/people/JohnTSmith> in *Adobe
Creative Cloud* - View the full discussion
<https://forums.adobe.com/message/7089860#7089860> -
Where do I find examples of how to use formula functions? Online help only provides syntax
Hello,
I would like to run a formula ( for my custom field in Project 2013) that allows me to see the Finish Time e.g. 17:15 for a task. I am trawling through the online help to determine which one is best but I would like to read some examples
of how a function can be used. I hoped Help may do this but no.
Hope you can point me into the right direction. Thanks in advance.
AlanAlan,
Yeah I agree, the on-line help is lacking in information on how to actually USE a function. However, there are some places that may help. Here are a couple, I'm sure there are many others.
https://support.office.com/en-nz/article/Project-functions-for-custom-fields-7e525143-380f-4083-8d5a-3ecc6ba44f22
https://msdn.microsoft.com/en-us/library/office/ee767700(v=office.14).aspx
Since many of the custom field formulas are also used in VBA, I've found the object library reference for VBA to be very helpful in understanding and setting up custom field formulas. To get the the object library, go to Developer/Code group/Visual Basic.
Once the Visual Basic Editor window opens, hit View/Object Browser. Hit the Help menu and select the Help for Visual Basic. Type in the function of interest.
However, you say you want a custom formula to see the finish time for a task. You don't need any customization to see that. Simply go to File/Options/General tab and select a date format that includes the time.
Hope this helps.
John
Maybe you are looking for
-
Daisy-chain a thunderbolt external drive & thunderbolt display?
Although you can't daisy chain multiple thunderbolt displays to the new (mid 2011) Air's are you able to connect a thunderbolt display and daisy chain a thunderbolt external hard drive?
-
Changing a Boundary in SCCM 2007
I have a live SCCM 2007 environment, and I need to change the existing boundaries so as to accommodate a SCCM 2012 environment that we are introducing (and will eventually migrate to). The SCCM 2007 boundaries are all 'IP address range'. So my questi
-
Hi , Can somebody provide me document that help me to use java beans from scratch using oracle. Regards Nitin
-
Designer 2010 - how to add a custom or calculated field ?
Hello I have a list like this: [name][course][date][result] John Smith, Windows beginners, 01-01-2014, 10 John Smith, Windows advanced, 02-01-2014, 7 Jane Doe, Windows beginners, 01-01-2014, 5 Wanted: A list that shows all the people that attended 2
-
IM - IM52 Original assigned budget is automatically multiplied by 100
When assigning the original budget to a Project (from a node) in the Investment Progam (transaction IM52), the amounts entered are automatically multiplied 100, but the available budget for the project is correct and the amount discounted in the Node