How to write expressions/rules/SQL workflow
Hi all.We are recent users of CRM onDemand, we would write a few workflow rules, but can't seem to find all the information on how to do it. The help section is limited in the responses, and some of the issues here are not as specific in what we do.
Someone has any advice on books, websites, etc. on where to find the knowledge we need on how to write workflow rules and the use of SQL and expressions in CRM on Demand?
Thanks in advance!
For your first case:
1. you cannot create a workflow in r15 for activity but you can in R16
Create new to create a workflow
Name: Auto email send
registration type: activity
trigger: when the new record
rules: put your rules by clicking the fx icon IE this is where you enter the rule by saying that the owner is different from the person who creates the activity or the delegate field is filled (another way of seeing things)
then save the workflow
In the section actions
Choose the action 'create e-mail notifications '.
In the: Section choose "Registration of the user on Relative" and "owner of the activity.
Save it. Make sure that the activity and workflow are marked active.
2. in the second scenario:
How do you create an account and to automatically fill in the name of the sales of the sale - don't know
But you can create a fill of opportunity and self with the name of the owner of the account using this validation in the field (you need not the workflow), you can use the FieldValueJoin function.
Hope this helps - btb there's no book you can go thro the help and you will find some directions
Tags: Oracle
Similar Questions
-
How to write a pl/sql procedure that checks the remote db?
Hi all
I have one criticism PROD remote database I want to check every 10 minutes for its connectivity. If the connection fails then an email and a text Message is sent to me.
My question is what is the best way to check if the remote database is running?
Can I use sqlplus system/manager@PROD? But sometimes this has taken so long and suspended. I want the best response time?
How can I write a pl/sql procedure control connection? What do something like the ff:
I created a table for my tnsname.ora entries.
Something like that?cursor is c1 select dbname from tnsnames_tbl; begin connect system/[email protected]; print c1.dbname || 'DB Connection OK'; exception when others; print c1.dbname || 'DB Connection Not OK'; end; end;
Thank you
KinzNot really feasible at the level of PL/SQL.
The reason is that the greatest strength of TCP's robustness. TCP will try as hard as possible to succeed, before failing. It was designed to still work on the severely damaged or broken communication as a result of nuclear infrastructure. A TCP connection can take up to 15 minutes, maybe even more, before failing. It can be as slow as a turtle-, but he's wearing a hardshell. (unlike the UDP, which is the opposite)
So if you want to test the TCP connectivity, you must design your own custom code to implement your assumptions about the latency of packets, earthquakes and drops and so on.
Otherwise, you will need to use a standard TCP socket, set a time limit, try to login - and hope for the best.
This approach, I have demonstrated in {message identifier: = 10111306}.
If the TCP test works, it means that the listener is in place. Does not mean that the database itself is in place. Which means then using a database link to be tested. And this in turn can hang due to problems with archive record being stuck, not enough idle servers shared, etc..
-
How to write express line and column of the tables headers to a file
HI guys, I work with that express table and display data using the express table. What I want to do, is that when I press save button results data in the specific table must be written to a text file. I am able to write the text file, but only the data is written. Y at - there a possiblity that I can also write lines and column headers and the data in the text file. Kindly guide me in this regard as soon as possible. I enclose the image also. Please watch this and guide me.
Cordially Ehtisham Safdar.
Hello
Sorry for the late reply. Here is the VI, I hope it works for you. Rather than each element of the index and the addition of the row header, take advantage of the available icons and play with the nodes of property for a good solution.
Concerning
Gaze
-
Hi Expert,
First of all, thanks for reading my question...
I am new to HFM and need help with writing a rule to assign the difference between the end of the period (EOMRate) and (AVGRate) average for foreign translation account currency (FCTRS):
Requirements of the rule:
1. go to the base to all entities that are non-AUD (Parent entity is denominated in AUD)
2. work on the difference between EOMRate and AVGRate rates
3 multiply the difference with the account of profit after tax (IE PAT)
4. this amount should be included in the account of FCTRS (IE 9115)
Rule I wrote, who dislikes the HFM:
If HS. Entity.IsBase("","") = True and HS. Value.Member <>'AUD' then
HS. Exp ' a 9115 # = a #PAT * difference ("AVGRate", "EOMRate").
End If
AVGRate and EOMRate that I'm looking rates in C2. This rule gave a certain number of attempts, but without success. Would appreciate expert you worldwide HFM...
Thanking you in advance.
The f
Hi Jeff,
I think you need to use the sub translate and do some additional calculations.
You can start by adding the translation of this rule in the sub and the system will calculate the difference: HS. TRANS 'movement of the target, Source movement, EOMRate, AVGRate. For the rest of the needs, just adapt the above rule...
Kind regards
Thanos
-
How to write the following SQL
I have a table with the following columns seq_no, customer_no, sales_person, card_type, NTB_Cust, paid_flag. He basically tells what a person sale that sold the customer what card, and if the customer is a New_To_Bank. Seq_no field is a sequence running. I need fill out the paid_flag as 1 or 0 according to certain rules.
The first point to consider is that the card_type should be "PREFERRED" and NTB_Cust = "NTB".
Then, if the sales_person has sold two cards that follow with the above criteria, in the same customer_no, then only the first will be marked with paid_flag = 1. If he sold 3 consecutive to the same customer cards, then the 1st and the 3rd will be marked as paid_flag = 1. If the sales_person has sold 4 cards to the same customer and then the 1st and the 3rd will be marked as paid_flag = 1. And so on.
See below the expected value of paid_flag
seq_no card_type NTB_Cust paid_flag customer_no sales_person
XXX 999 FAVORITE NTB 1 1
2 999 FAVORITE NTB XXX 0
XXX 3 999 FAVORITE NTB 1
4 999 PRESTIGE NTB XXX 0
XXX 5 888 FAVORITE NTB 1
XXX 6 888 FAVORITE OLD 0
7 FAVORITE NTB 888 XXX 1Hello
Try
WITH T1 AS ( SELECT 1 seq_no, 'XXX' sales_person, 999 customer_no, 'PREFERED' card_type, 'NTB' NTB_Cust, 1 paid_flag FROM DUAL UNION ALL SELECT 2, 'XXX', 999, 'PREFERED', 'NTB', 0 FROM DUAL UNION ALL SELECT 3, 'XXX', 999, 'PREFERED', 'NTB', 1 FROM DUAL UNION ALL SELECT 4, 'XXX', 999, 'PRESTIGE', 'NTB', 0 FROM DUAL UNION ALL SELECT 5, 'XXX', 888, 'PREFERED', 'NTB', 1 FROM DUAL UNION ALL SELECT 6, 'XXX', 888, 'PREFERED', 'OLD', 0 FROM DUAL UNION ALL SELECT 7, 'XXX', 888, 'PREFERED', 'NTB', 1 FROM DUAL ) SELECT T1.*, CASE WHEN MOD(ROW_NUMBER() OVER (PARTITION BY customer_no, card_type ORDER BY SEQ_NO),2)=1 AND CARD_TYPE = 'PREFERED' AND NTB_Cust='NTB' THEN 1 ELSE 0 END PAID_FLG_FROM_SQL FROM T1 ORDER BY SEQ_NO;
* 009 *.
-
Hello
I was wondering if you could help me.
I'm trying to find out how to export a .sql file, I created from Oracle Application Express of SQL Server Management 2012? I'm not very technical, but it seems that the Oracle code does not work with SQL Management Studio when I drag the file inside.
I need the database Oracle express and its data to enter in SQL Management Studio, so any help would be much appreciated!
Thank you.
Hello
Your question is beyond the scope of this community.
Please repost your question in the SQL Server TechNet Forums.
https://social.technet.Microsoft.com/forums/SQLServer/en-us/home?category=SQLServer
See you soon.
-
How to create a rule of action to subtract from the Ips event log manager console express?
How to create a rule of action to subtract from the Ips event log manager express console?, some unknown has a guide?
Thank you.
Sent by Cisco Support technique iPad App
Hello
http://www.Cisco.com/en/us/products/sw/secursw/ps2113/products_tech_note09186a0080bc7910.shtml
HTH
Luis Silva
"If you need IDP (planning, design, implementation) assistance do not hesitate to contact us.
-
How to write the SQL without using dynamic SQL?
How can you write this under SQL without using execute immediately?
You can use static SQL (using something like a CASE statement)?
test procedure (one in varchar2, b number, each number) is
v_num_recs pls_integer;
Start
Select count (*)
in v_num
FROM table1
where
col1 = one and
If b is not null then col2 = b
If c is not null then col3 = c;
/ * i.e. If b is not null, where condition to add this line only. If c is not null, where condition should add only this line. OR condition No. it * /.
dbms_output.put_line (v_num);
end;
Or should I use dynamic SQL statements for this?
I was wondering if the two are NOT NULL? Well check this.
Select count (*) in v_num
table
where col1 = one
and col2 = (CASE WHEN (b is not null) THEN b ELSE END col2)
and col3 = (CASE WHEN (c is not null) THEN ELSE END col3 c)
-
How to write a function to estimate the number of rows returned SQL?
How to write a function to estimate the number of rows returned SQL through SQL Execution Plan?
My idea is
Call dbms_sql.parse to create the SQL PLAN, then ask the PLAN for the number of estimated return lines.
But how to get SQL plan through "id cursor?
Thank you.You can use EXECUTE IMMEDIATE to explain plan statement. About the STATEMENT_ID generation, it could be anything. Even a SYSTIMESTAMP cast as TANK would work.
-
How to write a decryption function?
Hi! everyone ,
I see one encryption function in my database.
Select f_pwd_encrypt ('password') of double
-> 12412913141313139139130121
My question is
How to write a decryption function?
As:
Select f_pwd_decrypt ('12412913141313139139130121') of double
->password
CREATE OR REPLACE FUNCTION EPADM."F_PWD_ENCRYPT" ( vpwd in varchar2) return varchar2 is vother_p varchar2(9); vtr_pwd varchar2(2048); i number; j number; vsubstr varchar2(9); vtemp1 varchar2(08); vvalue number := 0; vdb_pwd varchar2(100); function str_2_bit(vstring in varchar2) return varchar2 is i number; vtemp number; v1 varchar(2048); function single_byte(vin in number) return varchar2 is i number; vresult varchar2(08); vtemp number := vin; begin for i in 1..8 loop vresult := to_char(mod(vtemp,2))||vresult; vtemp := trunc(vtemp/2); end loop; return(vresult); end; -- begin for i in 1..lengthb(vstring) loop select to_number(substrb(dump( vstring ,10,i,1),instr(dump( vstring ,10,i,1),' ',-1)+1)) into vtemp from dual; v1 := v1 || single_byte(vtemp); end loop; return(v1); end; begin vtr_pwd := str_2_bit(vpwd); vtr_pwd := substrb(vtr_pwd,4)||substrb(vtr_pwd,1,3); vvalue := 0; vdb_pwd := null; for i in 1..(lengthb(vtr_pwd)/4) loop vtemp1 := substrb(vtr_pwd,(i-1)*4+1,4); for j in 1..4 loop vvalue := vvalue + to_number(substrb(vtemp1,j,1)) * power(2,j-1); dbms_output.put_line(j||' '||vvalue); end loop; vdb_pwd := to_char(vvalue) ||vdb_pwd; vvalue := 0; end loop; return(vdb_pwd); END; /
OK, after reviewing the, I don't think you'll be able to write a function of decryption for him.
The first thing he does is take the ascii value of each character in the password and converts them into a binary string. The code it uses is far too complex and can be simplified, but which is not a problem here.
I've recreated the first step of SQL like this...
SQL > ed
A written file afiedt.buf
1 with chr_val like)
2. Select level l
3, dump('password',10,level,1) in the dmp
4, to_number (substrb (dump('password',10,level,1), instr (dump('password',10,level,1),' ', 1) + 1)) as chr_val
5, ascii (substr('password',level,1)) as chr_val - equivalent of extraction of useless dump
6 double
7. connect by level<=>=>
8 )
9, r (l, b, ch, chr_val, result, vtemp) as
10 (select l, 0 b, chr (chr_val), chr_val)
11, cast (null as varchar2 (8)) as a result
12, chr_val as vtemp
13 of chr_val
14 union of all the
15 select l, b + 1, b, ch, chr_val
16, to_char (mod(vtemp,2)) | result as a result
17, trunc(vtemp/2) as vtemp
18 r
where the 19 b + 1<=>=>
(20) depth search first by l, defined b seq
21, as)
22 select l, ch, chr_val, str_to_bit result
23 r
where the 24 b = 8
25 arrested by l, seq
26 )
27 select listagg (ch) within the Group (order) as password
28, listagg (chr_val, ',') within the Group (order) byte_vals
29, listagg (str_to_bit) within the Group (order) bit_vals
30 sec.
SQL > /.
PASSWORD BYTE_VALS BIT_VALS
--------------- ---------------------------------------- ----------------------------------------------------------------------------------------------------
password 0111000001100001011100110111001101110111011011110111001001100100 112,97,115,115,119,111,114,100
Then he takes this string binary ("bit_vals" in my example) and does the following:
1. take the first 3 bits of left and to transpose on the right end of the string.
2 chops the resultant bit string upward into sections of 4 bits (which is known as a 'nibble' inside)
3. for each bit in the nibble, he treats the bits in binary reverse to normal and gives them a value of 1,2,4 or 8 from left to right for each bit set to 1
4. for each nibble it adds the value of 1,2,4,8 bits to give a value from 0 to 15
To show that the use SQL...
SQL > byte (select ' 0111000001100001011100110111001101110111011011110111001001100100' as pieces of double)
2, swap3bit as (-take the binary string and put the first bits (high) 3 as a (low) bit of the right hand side)
3. Select bytes.bits
4, substr (bit 4) | substr (bits, 1, 3) as init_substr
5 bytes
6 )
7, split4 as (-chop the string of bits nibbles (half bytes - 4 bits))
8. Select level l
9, substr (init_substr, ((level-1) * 4) + 1, 4) as a nibble
swap3bit 10
11. connect by level<=>=>
12 )
13, bitpowers (select l
14, snack
15, to_number (substr(nibble,1,1)) * power (2, 1-1) as bitval1
16, to_number (substr(nibble,2,1)) * power (2, 2-1) as bitval2
17, to_number (substr(nibble,3,1)) * power (2, 3-1) as bitval3
18, to_number (substr(nibble,4,1)) * power (2, 4-1) as bitval4
19, to_number (substr(nibble,1,1)) * power (2, 1-1) +.
20 to_number (substr (nibble, 2, 1)) * power (2, 2-1) +.
21 to_number (substr (nibble, 3, 1)) * power (2, 3-1) +.
22 to_number (substr (nibble, 4, 1)) * power (2, 4-1) as total_val
23 of split4
24 )
25 select * from bitpowers
26.
L NIBB BITVAL1 BITVAL2 BITVAL3 BITVAL4 TOTAL_VAL
---------- ---- ---------- ---------- ---------- ---------- ----------
1 1000 1 0 0 0 1
2 0011 0 0 4 8 12
3 0000 0 0 0 0 0
4 1011 1 0 4 8 13
5 1001 1 0 0 8 9
6 1011 1 0 4 8 13
7 1001 1 0 0 8 9
8 1011 1 0 4 8 13
9 1011 1 0 4 8 13
10 1011 1 0 4 8 13
11 0111 0 2 4 8 14
12 1011 1 0 4 8 13
13 1001 1 0 0 8 9
14 0011 0 0 4 8 12
15 0010 0 0 4 0 4
16 0011 0 0 4 8 12
16 selected lines.
These final values are then re-combination as strings in reverse order so that you get then:
'12' |' 4'||' 12' |' 9'||' 13'... and so on.
In SQL...
SQL > byte (select ' 0111000001100001011100110111001101110111011011110111001001100100' as pieces of double)
2, swap3bit as (-take the binary string and put the first bits (high) 3 as a (low) bit of the right hand side)
3. Select bytes.bits
4, substr (bit 4) | substr (bits, 1, 3) as init_substr
5 bytes
6 )
7, split4 as (-chop the string of bits nibbles (half bytes - 4 bits))
8. Select level l
9, substr (init_substr, ((level-1) * 4) + 1, 4) as a nibble
swap3bit 10
11. connect by level<=>=>
12 )
13, bitpowers (select l
14, snack
15, to_number (substr(nibble,1,1)) * power (2, 1-1) as bitval1
16, to_number (substr(nibble,2,1)) * power (2, 2-1) as bitval2
17, to_number (substr(nibble,3,1)) * power (2, 3-1) as bitval3
18, to_number (substr(nibble,4,1)) * power (2, 4-1) as bitval4
19, to_number (substr(nibble,1,1)) * power (2, 1-1) +.
20 to_number (substr (nibble, 2, 1)) * power (2, 2-1) +.
21 to_number (substr (nibble, 3, 1)) * power (2, 3-1) +.
22 to_number (substr (nibble, 4, 1)) * power (2, 4-1) as total_val
23 of split4
24 )
25 select listagg (to_char (total_val)) the Group (order of the desc) as pwd
26 of bitpowers
27.
PWD
-------------------------------------------------------------------------------------------------------------------
12412913141313139139130121
Now, the problem of decryption is that these numbers are concatenated without padding for a fixed number of digits by value, so you don't know if it was
'12' |' 4'||' 12' |' 9'||' 13'... and so forth as we did it, or whether he was
'1'||' 2'||' 4'||' 12' |' 9'||' 1'||' 3'... and so on, or any other combination of values from 0 to 15
There is essentially no information to allow you to divide the string upwards in the correct components to allow the whole process be reversed.
So, you are out of luck... no chance of decrypting it.
-
Write in MS SQL server forms 6i
For the needs of the company. We must write in MS SQL server forms 6i:
We have the system of attendance in time using MS SQL Server. We treat data from oracle and data needs to be inserted directly to the MS SQL Server tables.
Forms 6i allows us to treat the oracle data.
It is desirable that one could help us solve this problem.
Kind regards
Shareef
Thanks to you all.
I found this post useful:
ORA-28545: error diagnosed by Net8 when connecting to an URGENT agent error
which includes the following ORACLE notes:
Note.561033.1 how to Setup DG4ODBC on 64 bit OS Unix (Linux, Solaris, AIX, HP - UX)
Note.466228.1 how DG4ODBC Setup on Linux x 86 32 bit
Note.466225.1 How to Setup DG4ODBC (database gateway for ODBC Oracle) on 32-bit Windows
For our case, we think in a workaround.
Once again. Thanks to you all. Your efforts are appreciated.
-
How to write a query to return rows with the varchar column that contains even a single occurrence of the characters, such as Ÿ and
I have a table whose columns with values such as
MINNEAŸPOLIS and ¿VV ¿A
Only the characters that are allowed in this column are alphabets, numbers, spaces, points and supports.
Please help to write a SQL SELECT with Regexp_like query or any other option.
Thanks to you all! Under query worked for me. Thank you Frank to explain the concept of hooks inside regexp_like.
SELECT * FROM testspecial, WHERE REGEXP_LIKE (sampletext, "[^] ^ A - Z ^ a - z ^ 0-9 ^ [^.]") ^ {^} ^]') ;
-
How to define the rules of holiday for the purchase of the Oracle?
Responsibility: System Administrator
Navigation: Administrator Workflow-> Administration
Click on the link "rule of holiday.
-
Hello
How to write the sql query
I have three type of table as
1 table emp
EMP_ID FIRST_NAME DEPT_ID
---------- -------------------- ----------
1 kumar 10
2 sam 20
3 30 damu
2 table dept
EMP_ID SALE_ID DEPT_ID
---------- ---------- ----------
1 101 10
2 102 20
3 103 30
3. table sale
EMP_ID SALE_ID SALE_AMT
---------- ---------- ----------
1 101 7
2 102 8
3 103 9
I want the result as
EMP_ID DEPT_ID SALE_AMT
------- --------- - --------
1 10 7
Thank you
Are you looking for this?
SELECT T1. EMP_ID,
T1. DEPT_ID,
W3M SALE_AMT
FROM EMP T1,
SALE T3
WHERE T1. EMP_ID = T3. EMP_ID;
OUTPUT:
EMP_ID DEPT_ID SALE_AMT
------- ---------- ----------
1 10 7
2 20 8
3 30 9
If this is not the case, after the actual output, you need. Because that gives you the amount of sales deptwise
-
How do we improve the SQL Loader for EBS?
Hi all
We would like to use some of the new features like the FILLING and the EXPRESSION in the 10g version of SQL * Loader with the concurrent Manager.
EBS 11i version SQL Loader is 8i.
How do we improve the SQL Loader for EBS?
Thanks in advance!If you are referring to executable files under ORACLE_HOME 8.0.6, then it cannot be migrated to 10 g / 11 g - upgrade developer 6i with Oracle Applications 11i [125767.1 ID]
For executable files of database, please visit:
Interoperability Notes Oracle EBS 11i with Oracle Database 11 g 2 (11.2.0).) [ID 881505.1]
Oracle Applications Release 11i with Oracle 10 g Release 2 (10.2.0) [ID 362203.1]Thank you
Hussein
Maybe you are looking for
-
Apple Watch does not connect to the iPhone 6
After updating my iPhone to IOS 9.3.3 6 all my bluetooth devices registered were gone including my Apple Watch. Now, it appears under "other devices" so I can't connect it. I already started my bluetooth and off and reset my iPhone but nothing worked
-
iPod air icloud sere not icloud please Mr. ople
iPod air icloud sere No. DM * K14icloud please ople sir lock without owner account activation < personal information under the direction of the host >
-
Satellite click mini camera rear problem
Hello! could someone help me please. 10 rear camera no longer works after upgrade and installation of windows. What will I do to solve this problem? Help, please. Thank you
-
Anonymous UUID: F45E7E7A-F706-F758-0833-77E3C7A3A3DF 9 dec 15:34:09 sea 2015 Panic report *. panic (the appellant 2 cpu 0xffffff7f8d713bad): "panic GPU: 7f [] 5 3 0 0 0 0 3: NVRM [0 / 1:0:0]: error 0 x 00000100 reading: CFG 0xffffffff, 0xffffffff, 0x
-
How to transfer blackBerry smartphones...
How to transfer files or data from memory internal to micro sd card?