How to write workflow rules/expressions/SQL

Hi all.
We are recent users of CRM onDemand, we would like to write some workflow rules but cannot seem to find any information on how to do this. The help section is limited in answers, and some of the questions here are also not specific to what we would like to do.
Does anyone have any advice on books, web sites, etc. on where to find the knowledge we need on how to write the workflow rules and use 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 in R16 you can
Create new to create a workflow
Name: Auto email send
record type: activity
trigger: when new record saved
rules: put your rules by clicking on the fx icon i.e this is where you are entering the rule saying the owner is different from the person who is creating the activity or the delegated field is filled (another way of looking at it)
then save the workflow
In the actions section
choose the action "Create Email Notification"
In the To: Section choose "Relative User on Record" and Choose "Activity Owner"
Save it. Make sure both the workflow and activity are marked active.
2. In your second scenario:
How do you expect to create an account and automatically populate the Sales rep's name - not sure
But you can create an opportunity and auto fill with the Account Owner's name by using this in the field validation (you do not need the workflow), you can use the FieldValueJoin function.
Hope this helps - btb there is no book you can go thro the help and you will find some directions

Similar Messages

  • How to write the map expression for a const string

    hi all,
    i am trying to map from source table A to target table B. Table B has a column that A doesn't have and the column type is string.
    what should i do if i want to keep this column a const string like "abc"? How to write the map expression?
    Setting a default value like "abc" of this column in database is not available .
    please try to help, thanks a lot.
    jun

    Hi jun,
    You mean, u want to give some hard coded value to a specific column in mapping?
    If so , give 'abc' in the target column and execute it on Target.
    Thanks,
    Guru

  • How does one install a express sql server to run with Visual Web Developer 2008?

    I successfully installed .NET framework v 3.5 and VWD 2008 on a new Vista laptop. When I want to add a Sql Server database to a website, errors tell me to install SS 2005 Express. MSDN SS 2005 Express download tells me I MUST  first install .NET framework v 2.0 before SS 2005. When I try to install framework v 2.0, I'm sent to v. 3.5 and no way to download SS 2005.
    How does one install a express sql server to run with Visual Web Developer 2008?   

    Momark,
    Do you still need help with this?
    Thank you!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • How to write the regular expression for Square brackets?

    Hi,
    I want regular expression for the [] ‘Square brackets’.
    I have tried to insert in the below code but the expression not validate the [] square brackets.
    If anyone knows please help me how to write the regular expression for ‘[]’ Square brackets.
    private static final Pattern DESC_PATTERN = Pattern.compile("({1}[a-zA-Z])" +"([a-zA-Z0-9\\s.,_():}{/&#-]+)$");Thanks
    Raghav

    Since square brackets are meta characters in regex they need to be escaped when they need to be used as regular characters so prefix them with \\ (the escape character).

  • How to write a rule for the scnario...

    Hi ,
    Any body please tell me how to write a HFM rule for the following scnario.
    Pull<Parent Currency> value for base members from ACTUAL_EURO scenario and replaces <Parent Currency> value of for base members in ACTUAL scenario. At the end of this process, the actual scenario holds functional currency in <Entity Currency>, EURO in <Parent Currency>.
    It's Urgent.
    Thanks in Advance,
    Mohan

    sub calculate()
    if hs.scenario.member="ACTUAL" then
    Elist=hs.entity.list("","[Base]")
    if hs.value.istranscur=TRUE then
    if hs.entity.isbase("","")=TRUE then
    hs.exp "A#ALL=A#ALL.S#ACTUAL_EURO"
    end if
    end if
    end if
    end sub
    While running the Rule file getting the below error
    An error occurred.
    Error: 800456C8
    Log:
    Load started at: 12:06:02
    Number of Errors: 1
    Number of Warnings: 0
    <?xml version="1.0"?>
    <EStr><Ref>{151D9809-D203-45E2-BA63-EDDF93FF758C}</Ref><User/><DBUpdate>1</DBUpdate><ESec><Num>-2147214193</Num><Type>0</Type><DTime>6/3/2010 12:06:02 PM</DTime><Svr>ALVHYPW05</Svr><File>CHsvCalculate.cpp</File><Line>1773</Line><Ver>9.3.1.0.2042</Ver></ESec></EStr>
    Load ended at: 12:06:02
    Elapsed time: 00:00:00
    Thanks,
    RON

  • How ti write BRF+ rule for multiple outputs?

    1.I have to get 3 outputs in ruleset.
    2.Created one descion table and displayed 3 outputs.
    3.For Function binded one table with 3 out puts.
    4.I have to pass values from descion tbale to function output through rule set?
    How can i write the rule?

    i CREATED NEW APPLICATION AND TRY TO CREATE NEW RULE.
    ITS SHOWING SAME ERROR.
    AOA (Data Object) : Multiple use of identical objects (AOA and STAMP_DUTY_TABLE-SD_STRUCTURE-AOA) in sets context/temporary ruleset variable not allowed (Detail) Display Help
    FORM2_2 (Data Object) : Multiple use of identical objects (FORM2_2 and STAMP_DUTY_TABLE-SD_STRUCTURE-FORM2_2) in sets context/temporary ruleset variable not allowed (Detail) Display Help
    MOA (Data Object) : Multiple use of identical objects (MOA and STAMP_DUTY_TABLE-SD_STRUCTURE-MOA) in sets context/temporary ruleset variable not allowed (Detail) Display Help

  • How to write subsitution rule

    HOW TO WRITE SUBSITUTION FOR BUSINESS AREA FOR T CODE F-29 AS A DEFAULT .
    Can anybody give me the inputs in detail to make the Business area by default mode while selecting one particular GL to post the entries as our users are selecting the business areas wrongly while posting the accounting entries.
    Many thanks to all
    raju

    goto tcode OBBH
    use : "if sy-tcode = 'F-29'
    and bseg-gsber = ...
    but when user select data wrongly better uuse a validation OB28
    A.

  • How to write table name in SQL according to the user input

    hi
      i want to select data from a table , and the table name, field name is input by the user, for example, user input table name T1, field name F1 and i want to construct a SQL like select F1 into a_var from T1 . how does the SQL statement written? thanks for your advice.

    hi
    for ur requirement u should go for field sysmbols...
    dynamic internal tables..
    u can chk this....
    TYPE-POOLS : slis.
    PARAMETERS : p_struc LIKE dd02l-tabname.
    DATA : it_fieldcat TYPE lvc_t_fcat,
            t_output TYPE REF TO data .
    FIELD-SYMBOLS: <t_output> TYPE table ,
                   <wa_output> TYPE ANY,
                   <fval> TYPE ANY.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
      I_BUFFER_ACTIVE              = I_BUFFER_ACTIVE
       i_structure_name             = p_struc
      I_CLIENT_NEVER_DISPLAY       = 'X'
      I_BYPASSING_BUFFER           = I_BYPASSING_BUFFER
      I_INTERNAL_TABNAME           = I_INTERNAL_TABNAME
      CHANGING
        ct_fieldcat                  = it_fieldcat
    EXCEPTIONS
      INCONSISTENT_INTERFACE       = 1
      PROGRAM_ERROR                = 2
      OTHERS                       = 3
    IF sy-subrc <> 0.
    MESSAGE i000(bctrain) WITH 'MERGE FAILED'.
    *ELSE.
    MESSAGE i000(bctrain) WITH 'MERGE SUCCESS'.
    ENDIF.
    CREATE DATA t_newline LIKE LINE OF <t_dyntable>.
    ASSIGN t_newline->* TO <fs_dyntable>.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
      EXPORTING
       I_STYLE_TABLE             =
        it_fieldcatalog           = it_fieldcat
       I_LENGTH_IN_BYTE          =
      IMPORTING
        ep_table                  = t_output
       E_STYLE_FNAME             =
      EXCEPTIONS
        generate_subpool_dir_full = 1
        OTHERS                    = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ASSIGN t_output->* TO <t_output>.
    SELECT * up to 10 rows FROM
       (p_struc)  INTO
       CORRESPONDING FIELDS OF
       TABLE <t_output>.
    *write : / 'dynamic table created'.
    LOOP AT <t_output> ASSIGNING  <wa_output>.
      DO.
        ASSIGN component sy-index of structure <wa_output> to <fval>.
        IF sy-subrc <> 0.
          WRITE : /.
          EXIT.
        ELSE.
          WRITE : <fval>.
        ENDIF.
      ENDDO.
    ENDLOOP.
    Message was edited by:
            Premalatha G

  • How to execute workflow with pl/sql?

    My foregoing work has been done with owb including building dimension table, face table, mappings, and workflow process. if I don't install workflow server/client program module, how to execute the workflow process? Can PL/SQL do this and how to?

    user13726880 wrote:
    The original requirements were put together and given to me, an Oracle newbie. They expected the Java app to use something intrinsic to Oracle and Unix sendmail. To solve my problem, I use a JDBC connection to run some SQL commands. I take that data, format it and send the results by email to the user. By default the requirement is to send it as an HTML attachment using Unix 'sendmail'. So I do that using Runtime exec. I have also added JavaMail functionality as an alternative to sendmail. It works great and as expected.Sounds like a reasonable solution.
    Note however that PL/SQL itself can send email. And PL/SQL can call unix sendmail too.
    However myself I would have done it in java with JavaMail.

  • How to write self join in sql?

    Hi,
    I have table named "table_upload", column "record_type" value "01,03,04....." and start_date,end_date and so on
    And i will have value for  start_date,end_date only for record_type=01,rest of type these two columns will be null.
    now i need to write query with self join, to include above concept. can any one please help me .
    and my query look like follows,

    I just want to re write
    Please provide DDL+DML + expected output!
    and short explanation what is it that we all ask you for:
    DDL = Data Definition Language. In our case that is, CREATE TABLE statements for your tables and other definitions that are needed to understand your tables structure and there for let us to test and reproduce the problem in our server. Without DDL no one
    can execute any query.
    How to get DDL: Right click on the table in Object Explorer and select script table as CREATE. Post these create table scripts here.
    DML = data manipulation language is a family of queries used for manipulating the data it self like: inserting, deleting and updating data. In our case we need some sample data in order to check the query and get result, so we need some indert query for
    sample data.
    If you post a "create table query" for the tables and "insert <table> query" with some sample, then we could help you without Assuming/Guessing. There is a reason that DDL is generally asked for and expected when discussing query problems - it helps
    to identify issues, clarify terminology and prevent incorrect assumptions.  Sample data also provides a common point of reference for the discussion. A script that can be used to illustrate or reproduce the issue you have, will encourage others to help.
    [Personal Site] [Blog] [Facebook]

  • How to write exact query from sql to oracle?

    Hi all,
    hope doing well,
    sir i am using one query in sql that is
    declare @earlyleavers varchar(max), @earlyleavers1 int
    select @earlyleavers1 = DATEDIFF(Minute,'1900/01/01 10:00:00.000','1900/01/01 11:00:00.000')
    select @earlyleavers = CONVERT(char(8),DATEADD(n,@earlyleavers1,0),108)
    print @earlyleavers
    and i am getting the result like this
    01:00:00
    how to get the same result in oracle
    please help me.
    thanks in advance.

    952646 wrote:
    sir i need result in this format 01:00 not in 1 format.The name is Billy and not "sir". :-)
    Is "01:00" a string format or an elapsed time format?
    The number that the above code returns is decimal hours. So a number value of 1.5 means 1h30m or 1:30 or however you need to render that.
    And that is the question. Is this a rendering issue? Must the result be rendered in a specific format?
    If so, then this is not a SQL or PL/SQL issue. The server returning decimal hours is acceptable. The client (e.g. C#/Java code) needs to decide how to format and render this meaningful value. Keep in mind that if the sever code returns "1.30" or "1:30" for example, these are string/text data and pretty much meaningless. And it does not make sense for server code to return meaningless text strings to the client.
    If the client expects a duration and not a numeric data type, then the server code should return a value of the INTERVAL DAY TO SECOND data type.
    This data type specifically exists to contain duration values between to dates or times.
    In this case, the server code will expect the host (C#/Java) variable to be of data type INTERVAL DAY TO SECOND. The server code will look something as follows:
    SQL> declare
      2          earlyleavers    interval day to second;
      3  begin
      4          earlyleavers := NumToDSinterval(
      5                                  (to_date('1900/01/01 11:00:00','yyyy/mm/dd hh24:mi:ss') -
      6                                  to_date('1900/01/01 10:00:00','yyyy/mm/dd hh24:mi:ss') ) * 24,
      7                                  'hour'
      8                          );
      9 
    10          dbms_output.put_line( to_char(earlyleavers) );
    11  end;
    12  /
    +00 01:00:00.000000
    PL/SQL procedure successfully completed.
    SQL>An interval-to-string conversion function is used (with default formatting) to "print" the interval value via DBMS_OUTPUT. The default format includes days and a sign to indicate a positive or negative interval. Look at the SQL Reference manual for the format masks that can be used.
    The important thing is to treat data values correctly using the most appropriate type. And intervals should either be a decimal day/hour/minute numeric type, or an actual interval type.

  • How to evaluate workflow rule for agent determination

    Dear All:
    It seems there are several types of rules that can be used for agent determination. I am wondering how could I evaluate the rule in coding.
    I know for the rule described by a function module, it would be easy to evaluate it because you simply need to call the function module. However, for others, you might have to call the rule according to its definition. Is there a generic method/function to evaluate it?
    Thanks & Best Regards,
    Haifeng Hu

    Hello,
    fm RH_GET_ACTORS
    regards
    Rick Bakker
    hanabi technology

  • HOW TO WRITE QUERY OR PL/SQL PROGRAM FOR THIS

    I HAVE TABLE X
    SELECT ENO FROM X
    ENO
    123
    423
    332
    562
    678
    986
    621
    WHEN I RUN PL/SQL PROGRAM I WILL PASS PARAMETER
    FOR EXAMPLE LIKE 134
    I NEED OUTPUT LIKE
    134 EXIST OUTPUT
    123
    423
    332
    562
    621
    134 NOT EXIST OUTPUT
    678
    986
    Regards
    Dev

    This?
    <tested in TOAD>
    SQL> accept my_parm
    old: with t as (
    select '123' eno from dual union all
    select '423' from dual union all
    select '332' from dual union all
    select '562' from dual union all
    select '678' from dual union all
    select '986' from dual union all
    select '621' from dual )
    select eno || ' ' || output_type results
    from (
    select to_char(&&my_parm) eno, 'EXIST OUTPUT' output_type, 1 output_id
    from dual union all
    select null eno, null output_type, 3 output_id
    from dual union all
    select to_char(&&my_parm) eno, 'NOT EXIST OUTPUT' output_type, 4 output_id
    from dual union all
    select
    eno,
    null,
    case when regexp_instr(eno,'[' || &&my_parm || ']') >0
    then 2
    else 5
    end output_id
    from t
    order by output_id, eno
    new: with t as (
       select '123' eno from dual union all
       select '423' from dual union all
       select '332' from dual union all
       select '562' from dual union all
       select '678' from dual union all
       select '986' from dual union all
       select '621' from dual )
    select eno || ' ' || output_type results
    from (
       select to_char(134) eno, 'EXIST OUTPUT' output_type, 1 output_id
       from dual union all
       select null eno, null output_type, 3 output_id
       from dual union all
       select to_char(134) eno, 'NOT EXIST OUTPUT' output_type, 4 output_id
       from dual union all
       select  
          eno,
          null,
          case when regexp_instr(eno,'[' || 134 || ']') >0
             then 2
             else 5
          end output_id
       from t
    order by output_id, eno
    SQL> with t as (
       select '123' eno from dual union all
       select '423' from dual union all
       select '332' from dual union all
       select '562' from dual union all
       select '678' from dual union all
       select '986' from dual union all
       select '621' from dual )
    select eno || ' ' || output_type results
    from (
       select to_char(134) eno, 'EXIST OUTPUT' output_type, 1 output_id
       from dual union all
       select null eno, null output_type, 3 output_id
       from dual union all
       select to_char(134) eno, 'NOT EXIST OUTPUT' output_type, 4 output_id
       from dual union all
       select  
          eno,
          null,
          case when regexp_instr(eno,'[' || 134 || ']') >0
             then 2
             else 5
          end output_id
       from t
    order by output_id, eno
    RESULTS            
    134 EXIST OUTPUT   
    123                
    332                
    423                
    621                
    134 NOT EXIST OUTPUT
    562                
    678                
    986                
    10 rows selected.Message was edited by:
    MScallion

  • How to write a query in sql?

    List employee details empno,ename,job,DOB, retire_date. i want
    Retire date=bod + 58 year.. Display DOB in 'dd-mon-yyyy' format and retire_date in 'mon-yyyy'
    Edited by: 1008586 on Jun 5, 2013 8:26 PM
    Edited by: 1008586 on Jun 5, 2013 8:30 PM

    Welcome to the forum!
    Whenever you post provide your 4 digit Oracle version.
    >
    List employee details empno,ename,job,DOB, retire_date.
    Retire date=bod + 58 year.. Display DOB in 'dd-mon-yyyy' format and retire_date in 'mon-yyyy'
    >
    And your question or issue is?

  • How to write the TQTR rule ?

    Dear all !
    Would you like to tell me how to create a rule to accrue 0.5 leaves every haft of month on SAP system .
    if on the 15th (or  the end of month 28th, 30th or 31st), the employee worked fully during the half of month, he/she has 0.5 day. That means if he/she started working Not on the 1st of month, or had at least 1 day leave without pay, he/she doesnu2019t get 0.5 day.
    I don't know how to write a rule, what're the steps to do it?
    Please help me to solve my problem.
    Thanks for your supports.
    Regard,
    Huyen Nguyen

    Dear Hema!
    My schedule is automatic to add 0.5 leave day on every haft of month on SAP system. 
    If on the 15th (or the end of month 28th, 30th or 31st) of a month, the employee worked fully during the half of month (No leave type Without pay)  he/she has 0.5 day. That means if he/she started working not on the 1st/15th of month or had at least 1 day leave without pay, he/she doesnu2019t get 0.5 day on this month.
    I don't know how to write a rule, what're the steps to do it? Would you like to tell me how to create a rule to do this.
    Please help me to solve my problem.
    Thanks for your helps.
    Regard,
    Huyen Nguyen

Maybe you are looking for

  • Macbook pro OS 10.7.5, what is the best external back up drive to use with it?

    Hi I have a Macbook pro OS 10.7.5 and am looking for an external back up drive.  What external back up drives do people recommend?

  • Address for different countries

    Hello friends, I need to create the same sales orders for various countries. so in the shipping address, i need to know which fields are manadatory for address. How can I find out which name and address fields(first name, title, postal code etc) are

  • Weblogic92, Error in netuix, can't find class for tag pageflowContent

    I am having the following exception on windows XP service pack2. CLASSPATH: CLASSPATH=;C:\bea9.2\patch_weblogic920\profiles\default\sys_manifest_classpath\w eblogic_patch.jar;C:\bea9.2\JDK150~1\lib\tools.jar;C:\bea9.2\WEBLOG~1\server\lib \weblogic_sp

  • Additional component needed

    I downloaded a movie file (.avi) and the video plays fine in quicktime, however, the audio is not playing. It said that I need and additional quicktime component that mine does not have. What component do I need to download?

  • Basic question on getting started

    I'm new to iMovie 09, I'm finally making the leap from '06 but I don't know where to start. Do I do my editing in the Event Library or the Project Library? What's the process? I'm lost without my '06 timeline.