How to go on creating activities in loop?

Hi!
Lead record type has activities associated with it.
if a new lead is created, automatically an initial activity should be created with certain details and assigned to a particular sales rep. this i can do with workflow. this is fine.
Now i want that, when ever the sales rep completes the activity and marks status of activity as _"Completed"_, automatically a new activity record should be created and details of newly created activity should be filled by the sales rep who marked the old activity status as "Completed". This cycle should go on.
Also there has to be a stopper to this loop to which only a manager can have access.
i tried with workflow. For that i created a custom picklist on activity record type with values as "Continue" and "Stop". I set the default value as "Continue". Only manger has access to this picklist. My logic was unless the manager sets the value of the picklist as "Stop", the activity should be created in loop. I did in this way:
Workflow Name: Activity Loop
record Type: Activity
Trigger Event: When modified record saved
Workflow rule condition: LookupValue("OCC_INDEX_CUST_LOV_EVT_ACT_0", "Continue") AND LookupValue("EVENT_STATUS", "Completed")
But when i saw the available Workflow actions, there was no mention of creating a new activity in it. so now how should i create new activity when old activity is completed? i am struck up here. How can continue from this point?
I don't mind going for any other way if it satisfies my requirement.
thankx and regards
Edited by: user10434678 on Feb 20, 2009 7:23 PM

Hi !
I'm afraid this won't be possible with workflows... Oracle made it not possible to create an activity via a workflow on the activity entity.
Imagine that someone create something like "when a new activity is created, then create an activity", you'll agree that this will shut down the server !! I think that's why they don't allow this action on this kind of workflow.
I'll suggest to have a checkbox on your lead record which will be something like "Next activity" and when the sales rep checks it, it will create the next activity and uncheck the box.
Otherwise, try to fin out if this kind of functionnality will be possible in the next release (R16)...
Hope this will help, feel free to ask more !
Max

Similar Messages

  • Garbage Collection: how many objects are created after for loop?

    Please see the fallowing java code
    1 public class Test1 {
    2     
    3     public static void main(String[] args) {
    4          
    5          MyObj obj = null;
    6          for(int i=0;i<5;i++){
    7               obj = new MyObj();
    8          }
    9 // do something
    10
    11     }
    12 }
    so my question is How may objects are eligible for garbage collection at line no: 9 (// do something)?

    so my question is How may objects are eligible for
    garbage collection at line no: 9 (// do something)?It's impossible to answer that question since we don't know how MyObj is implemented.
    Kaj

  • How to create an infinite loop that cannot be cancelled?

    Hi , im new around java and i need a program that keeps on repeating after each each input/uses(generally meant for different user) and cannot either stop using "Cancel" or "x" while stopping only using the "stop" button
    I got a few lines of codes that look like this : String arg = "";
    do{
    JOptionPane.showInputDialog("hi");
    }while ( arg != "y" || arg!= "Y");
    and it cannot be stop with both cancel and"x"(which i wanted)
    but when i used this logic with
    Valid validUserInput = new Valid();
    do {
    userInput = validUserInput.validUserInput(a);
    switch(userInput){
    case 1 : validUserInput.optionOne(b);break;
    case 2 : validUserInput.optionTwo(c);break;
    case 3 : validUserInput.optionThree(d,e);break;
    default : validUserInput.validUserInput(f);
    }while(looping != "" || looping != " ");
    it does not really work(while it will keep looping, it can be easily stop by pressing cancelled or "x")
    So is there any logic or method that can prevent the program from being stop?
    Thankyou!

    elricscript wrote:
    "That is helpful. It gives him a direction where he can focus his research. Namely, 'how to run a program in kiosk mode' rather than 'how to create an infinite loop that cannot be cancelled.'"
    No... He already mentioned he wants to "e.g Interactive kiosk", so saying "properly kiosk it" isn't adding any new information. Rather it's just giving the person a dead point of: you're doing it wrong. Pointing out someone is wrong is not a positive enlightenment. Pointing someone in the right direction is more productive.
    >"That is helpful. It gives him a direction where he can focus his research. Namely, 'how to run a program in kiosk mode' rather than 'how to create an infinite loop that cannot be cancelled.'"
    No... He already mentioned he wants to "e.g Interactive kiosk", so saying "properly kiosk it" isn't adding any new information.
    Yes it is. He asked how to do it using some Swing trickery, and I said it won't work. Which is true. The OP didn't already know that, clearly, hence the question. Now he does. That's pretty much new information if you ask me.
    Rather it's just giving the person a dead point of: you're doing it wrong.Right. He is. However, the problem is now no longer related to Java, and not something I can help him with. You should try that: not answering questions you don't know the answer to. It's actually more helpful than posting misleading, wrong answers.
    Pointing out someone is wrong is not a positive enlightenment. I'm giving basic technical help, not yoga lessons.
    Pointing someone in the right direction is more productive.As already stated, I am as ignorant of how to make a Java application into a kiosk app as the OP is. What value can I add in light of that information? I began by answering a question that was not stated to be about kiosks. Once the question moved outside of my area of knowledge, I stopped trying to answer.
    I notice you're not giving him any help, being more interested in admonishing others as you are.

  • How to create a button loop until mouse is released?

    How would I go about creating a button loop that continuously increments while the button is being pressed and stops incrementing on release?

    Just want to post the finished code for anyone who is interested.
    var interval;
       var count=0;
    //PlayerCastBar
      //Bar
       //X Pos
       i_Mercinova.PCBBXPDecrease.onPress = function()
         interval=setInterval(incrementPCBBXPDecrease, .01);
        function incrementPCBBXPDecrease()
         count++;
         _root.playercastbar.i_Castbar._x=(_root.playercastbar.i_Castbar._x-2)
       i_Mercinova.PCBBXPDecrease.onRelease = function()
         clearInterval(interval);
         count==0;
       i_Mercinova.PCBBXPIncrease.onPress = function()
         interval=setInterval(incrementPCBBXPIncrease, .01);
        function incrementPCBBXPIncrease()
         count++;
         _root.playercastbar.i_Castbar._x=(_root.playercastbar.i_Castbar._x+2)
       i_Mercinova.PCBBXPIncrease.onRelease = function()
         clearInterval(interval);
         count==0;
    It does exactly what I wanted it to.  Again, Thank You Very Much, Ned!! 

  • How do I go about this? Creating table while looping through dates?

    How do I do this? Creating table while looping through dates?
    I have a table with information like:
    ID---Date---Status
    1-------04/23-----Open
    1-------04/25-----Open
    2-------04/24-----Closed
    3-------04/26-----Closed
    What I want to do is create another table based on this per ID, but have all the dates/statuses on the same line as that ID number (as additional columns). The problem is that the number of columns needed is to be dynamically decided by the number of dates.
    To illustrate my example, I'm looking to achieve the following:
    ID---04/23 Status---04/24--Status---04/25--Status---04/26--Status
    1----Open--------------<null>-------------Open---------------<null>
    2----<null>------------Closed-------------<null>-------------<null>
    3----<null>------------<null>-------------<null>-------------Closed
    What would be the best way to go about this?
    Can someone please point me in the right direction?
    Would I need to do some looping?
    Thanks in advance!

    thedunnyman wrote:
    How do I do this? Creating table while looping through dates?
    I have a table with information like:
    ID---Date---Status
    1-------04/23-----Open
    1-------04/25-----Open
    2-------04/24-----Closed
    3-------04/26-----Closed
    What I want to do is create another table based on this per ID, but have all the dates/statuses on the same line as that ID number (as additional columns). The problem is that the number of columns needed is to be dynamically decided by the number of dates.
    To illustrate my example, I'm looking to achieve the following:
    ID---04/23 Status---04/24--Status---04/25--Status---04/26--Status
    1----Open--------------<null>-------------Open---------------<null>
    2----<null>------------Closed-------------<null>-------------<null>
    3----<null>------------<null>-------------<null>-------------Closed
    What would be the best way to go about this?
    Can someone please point me in the right direction?
    Would I need to do some looping?
    Thanks in advance!I hope you are asking about writing a query to DISPLAY the data that way ... not to actually create such a massively denormalized table ....

  • How to create Activities with DTW

    I was looking for a template to use with DTW to create "Activities" in SBO.  I could not find one in the template files.  Did I miss it and is it possible?
    Thanks

    Hi
    Peter Is Right. With the help oContacts you can do the DTW for Activity
    Ashish Gupte

  • How to create a step loop control in a screen

    Hi,
    Basically, what I need to do is to create a fully dynamic screen. I want to send the structure name and the fiednames and the function will create a screen will all the required fields.
    I explored many possibilities and the best one seems to be using the step loop control in a screen. I know, this is really old technology but I do not care as long as this work great !
    I saw that the function group MASSFREESELECTIONS is doing it, this look pretty simple, fast and fully dynamic...
    My only problem is that I'm not able to create a step loop control in a standard screen.... is it an obsolete function that was removed from the control list ?
    Thanks
    Dany
    Message was edited by:
            Dany Charbonneau

    Hi,
    STEP LOOPS
    Step Loops are type of screen table . Step loops are repeated blocks of field in a screen. Each block contains one or more fields and these blocks are repeated. Step loops aren’t like actual table. You can scroll vertically but not horizontally. Three steps are associated with creation of step loops:
    • Creation of step loops on screen, which includes declaring fields on the screen and then defining the step, loops for these fields.
    • Passing data to the step loop is exactly similar to the passing of data to table controls.
    • In step loop, you don’t need to define the step loop as such in the module pool program but the cursor needs to be defined in the program.
    Types of Step Loops
    • Static – Static Step Loop (SSL) have fixed size that cannot be changed during the runtime. If user resizes the window, the size of the static step loop is not changed.
    • Dynamic – Dynamic Step Loop (DSL) is variable in size. When the user resizes the window, the system increases or decreases the number of the step loop blocks.
    You can have only one dynamic step loop and can have as many static loops in your transaction.
    Programming with the Static and dynamic step loop is exactly same. For the system or for the user it doesn’t make any difference whether it is static or dynamic step loop. Only attribute, which you fix during designing of the step loop, is type attribute for step loop F for fixed i.e static and V for variable i.e. dynamic.
    Writing code for Step Loop in the flow logic.
    PBO.
    Loop at itab cursor cl.
    Module set.
    Endloop.
    PAI.
    Loop at itab.
    Endloop.
    Empty loop is must for both table control and step loop
    LOOP AT statement for step loops and Table controls is similar. Loop At statement transfers the data to screen table. You need to have the Module to assign the values for the screen table.
    In module pool program you need to define the cursor.
    Date: CL TYPE i.
    Cursor parameter tells which line of step loop display should start.
    “Module Set” in module pool program assigns the values to step loop fields, which is similar to table controls.
    Refer to this program <b>DEMO_DYNPRO_STEP_LOOP</b>
         hope u can get some idea about table control & step loop in this line.
    http://www.sapfans.com/sapfans/repos/comelite.htm
    Check this link,
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm
    <b>Reward points</b>
    Regards

  • Error while creating activities from Account application (Activity tab page

    Hi Experts,
                       We are using CRM 5.0 with PCUI ( EP 7.0 version). We are getting  below error when try to create activities from Account application in PCUI ( from activity tab page):
    Error : Activity contains error.
    Diagnosis
    This transaction has errors.
    Procedure
    To correct the errors, go to the maintenance interface of the transaction.
    To navigate to there, use the link to the account application
    Pls suggest how to proceed with this error & helpful solutions would be rewrded generously.
    Regards,
    Basavaraj Patil

    Hi Experts,
    We are getting this error when try to create Activity from Account application in PCUI. But the same thing is working fine in at GUI level & actions profile assigned to Activity transaction is also working fine at GUI level. But in PCUIit is throwing this below error.
    Diagnosis
    You have attempted to create a follow-up transaction for an incorrect transction 2000764. This is not possible. You can only create follow-up transactions for error-free transactions.
    System Response
    The follow-up transaction is not created.
    Procedure
    Correct the errors in the source transaction 2000764. The error messages resulting from processing the error can be read in the application log in the source transaction.
    Pls suggest solution for this.
    Thanks in Advance.
    Regards,
    Basavaraj Patil

  • When I export a AAF file from Protools 9 and Import the file into Logic ProX the drum track is out of sync.  I created the drum loop using NI Maschine.  Has anyone else seem this??

    When I export an AAF file/project from Protools 9 using an external drive and import the AAF into Logice Pro X the drum track does not play correctly.  It is out of sync with the rest of the track.  I created the drum loop as a plugin using Native Instruments Maschine. Has anyone else had this problem??  Also how would I go about exporting the midi tracks from the Protools session.  The midi track does not show when the file is imported to Logic Pro X.  The midi data should export with the AAF file correct??

    Are you using any plugins in Logic?
    In Preferences/Audio  under the General tab, how do you have the plug-in-latency compensation set?

  • How to maintain counter in a for loop

    Hi, 
      How do we track counter in a loop?Isn't it the way I implemented.? Please suggest.
    Regards.
    Solved!
    Go to Solution.
    Attachments:
    for loop counter.jpg ‏219 KB

    Both loops have errors, if you try to do for(i=60;i<120;i++) you're only running 60 loops, not 120.
    You should also disable the autoindexing on incoming arrays as you want some split array indexes (actually you can optimize it by extracting the constant a[30] before the 1st loop and the opposite on the 2nd. Now you're extracting 2 numbers from a 1D array instead of 1 from a 2D array ...
    The number on the select/sum function should be integers, no need to calculate doubles.
    The small array to sum it up is only max 170 numbers, it's ok although a sum in a shift register would be better.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Pls. explain me  u0093Split numberu0094 and how to check the created u0093Capacity IDu0094

    When I switching the network activity to TECO, the system throws an error “There are CATS records for the object to be deleted”. However we have transferred all the CATS records, but in CATSDB table found “Split number” as 1 and there is “Capacity ID” 10000426.
    Can anyone explain what is “Split number” and how to check the created “Capacity ID” 10000426
    Thanks in advance.
    Regards,
    Harisha

    Hai Lokesh,
    Here is help from my side.
    <b>Schedule the job so as to run the report for every 1 hour or what ever you want.</b>
    Before that:
    <b>Juat add the below logic:</b>
    Get the Text data into a ITAB1.
    LOOP AT THAT ITAB.
      SELECT SINGLE PRIMARY KEY FIELDS
          FROM DATABASE_TABLE
        WHERE f primary keys of text data EQ DATABASE_TABLE-PRMARY KEY FIELDS.
    IF SY-SUBRC EQ 0.
       SELECT SINGLE ORDER_NO
          FROM ORDER_TABLE
      WHERE ORDER_NO EQ ORDER_NO.
    IF SY-SUBRC NE  0."If Order already not created
       "* write the code to create Order
      "* Store this record into other ITAB2.
    ENDIF. 
    ENDIF.
    Finally,
    Get a new ITAB3 where it contans data in ITAB1 BUT NOT IN ITAB2.
    Delete itab1 from presen.Server
    Upload itab3 into presn.Server
    Hope this helps you.
    <b>Reward points if it helps you.</b>
    Regds,
    Rama chary.Pammi

  • Can we create our own loops? Basic question.

    Hi,
    Can we create our own loops in Logic Pro. I see in all the tutorials. They are either taking input from external instruments OR use existing apple loops.
    I have tried FL studio demo to create our own loops. But there is no trial version for Logic Pro. Need your inputs before I purchase it.
    Thank you.
    Anji

    Yes you can!
    It is as simple as selecting a Region (optional trimming recommended) and choose the Export command.
    A Dialog window opens up that lets you enter the metadata
    Apple had its separate "Apple Loop Utility" app (now only available in the developer package) that allowed you to create loops in a standalone app. The built-in loop capability in Logic uses part of that engine.
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • How can I opearate indicator outside while loop?

    I do small program, I have many while loops and I want to connect wire (in my application) from each loop to AND gate then to another while loop, but how can I operate these wires to agree with the change of my application inside while loops.
    If not clear :
    In another words, suppose I want to operate indicator ouside the while loop. How can I operate indicator outside while loop, so when my application become TRUE (inside while loop) the indicator will be ON (outside while loop) and when my application become FALSE(inside while loop) the indicator will be OFF (outside while loop).
    Help me if you have any idea please..........................

    Hi Rammo,
    For the wire to carry the boolean condition from the while loop to an 'and' gate outside, the while loop must stop running
    If you want the while loop to keep on running and still pass a boolean value to a destination outside the while loop, use any one of these: property nodes, global or local variables.
    i am still not clear as to what you intend to say by this sentence
    " I want the wire that comes out from the while loop will become TRUE if it in my application is TRUE inside while loop and the opposite is true. Because I want to connect the wire that comes out from while loop to AND gate than to another application"
    plz tell me if the first part of this mail of mine answers your doubt or do you need more information?
    regards
    Dev

  • How are ePrint apps created and maintained?

    Just bougt a new small HP printer for my home office and discovered ePrint and apps support. And amazed, did not expect this technology in entry level small/home office type printers.
    And immediately new questions on what possibilities this opens up for printing applications
    What is required to create new apps?
    Is it possible to use this technology to add local office apps? I.e. to print site/office specific forms, trivial network interactions and maybe a bit more.
    Is subscription type apps supported/allowed, where the app is only available as part of a third party subscription package?
    A lot can be built around the email based ePrint service alone, but having ability to also do some simple interaction with the user at the printer would open for a wide range of new possible uses.

    Hi,
    Double post, please use:
        http://h30434.www3.hp.com/t5/Printer-All-in-One-Install-Setup/How-are-ePrint-apps-created-and-mainta...
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Flash player has been installed multiple time without errors but bbc news website and even flash player help say it isn't. How do i get out of this loop? - using windows 7 ultimate and latest IE11

    flash player has been installed multiple time without errors but bbc news website and even flash player help say it isn't. How do i get out of this loop? - using windows 7 ultimate and latest IE11

    I have had the same problem for WEEKS and I cannot access any sites that use Flash. Flash has been installed on this computer since I bought it in 2012. I have allowed auto updates but for weeks the updates never get past Step 2 - is this because I do NOT want the Google Tool bar? I use NO tool bars as there is only 6 inches of vertical screen space. Is this because I uncheck wanting Chrome as a default browser?  It is already installed, I just don't use it.  I came to this site and ran the check is it installed and the system says it is either not installed or not enabled. Version 14 just downloaded about 30 minutes ago - but did not progress to Step 3 although a pop up screen came up with a finish button, which I clicked. WHAT is the problem and how do I fix it?  If this were just a compatibility bug between IE11 and Adobe they have had plenty of time to fix it.
    Stephanie HC

Maybe you are looking for

  • Service PO

    I have a case where the user makes a contract with a vendor for 2 yrs, and pays him on a quarterly basis. I can create a standard PO for the entire amount at the beginning. Then, as and when bills are paid to the vendor, create PO matching invoices a

  • What is the error in this trigger

    create or replace trigger tt1 after insert on EXERCISE2_T referencing new as new for each row declare v_excd EXERCISE2_T.EX_CD%type:=(CASE EX_CD     WHEN 'X' THEN 'Extracted';     WHEN 'F' THEN 'Failed';     WHEN 'S' THEN 'Skipped';     WHEN 'C' THEN

  • I don't sync my iPad ever , ny nail is building up any other way to restore ios7 ? My computer is broken

    My mail has been building up in storage since switching to iOS 7 . I don't use a computer , only the iPad . They say to sync I pad to computer then restore ios7 , any other way to do it ? I've had 2 iPads , 2 years never used a computer again . Never

  • IPv6 for management and control plane on WLCs and LWAPs

    Good morning, everybody! I am trying to find answer to a question that has been previously asked by people but never successfully answered The question is about IPv6 support on Cisco Wireless LAN Controllers and access points... Does Cisco have a roa

  • Time line control with left and right arrow click

    I'm putting together a Flash presentation using MX 2004 on a mac. A few years ago I worked on a Flash presentation that allowed me to either right arrow click to progress to the next Anchor tag and left arrow click to go back to the previous Anchor t