Capturing Workflow action

HI,
I am wondering how to capture an event from a workflow approval notification. I have created custom regions that are called from workflow to generate a custom page. I know that there is the standard notification pages with the pre-rendered buttons and the user may change some of the information within the notification prior to approval. I am wanting to validate the data as the "approval" button is clicked. I would like to avoid PPR on a lot of the fields and preferably do a one-stop validation.
Any thoughts appreciated.
Thanks,
Patrick.

What I am trying to do is capture an event when a notification is approved. I am working with the AP invoice workflow and have created some custom OA areas within the workflow. I need to validate some fields when the approve button is clicked. I want to avoid the use of PPR's if possible.
In one scenario, I have a comments OAMessageTextInputBean. This comments field is required in certain situations but not in others. I want to capture the event when a user approves, but has not filled in a comment then throw the appropriate error message. I know how to catch the event when it is on my own custom region but how do you catch the event when it is from the standard workflow approvals. The changes have to be done on the page in real time.
I know that you can get the button click, but irrespective of the action chosen from the workflow notification, the event name is "respond", however I need something more detailed.
Thanks.
Edited by: pburke on Dec 29, 2009 3:36 PM

Similar Messages

  • How to tell if column value has changed for use in workflow actions

    Hello,
    I am using Sharepoint 2010 and for one of my Lists, I am using a general list workflow.  What I need to be able to do is determine if a column value has change (say an "Assigned To" field) because I only want to take some action if that particular
    value has changed.  I want to be able to have a workflow action that would be something like:
    If Current Item: Assigned To not equals [OLD VALUE]
    I have found some web searches that talk about creating a duplicate list or duplicate (but hidden) column but that doesn't seem to be the way to go.  I have document versioning set but don't if that can be used to help with this.  One possible
    thought (although I haven't tried it to see if it works) is to create local variables and have the values in the variables be the "old value".  Just not sure if there is a best practices for doing this.
    Thanks for any thoughts - Peter

    Helen,
    Not sure I fully understand your goal.  We don't use "tasks" at all but if you are looking to have your workflow check certain valus and be able to send email messages to people based on whatever, then you can certainly do that (as long as your Sharepoint
    has the email setup.  We do this for alot of workflow tasks.
    So, in the workflow you can have a blanket statement like what I previously listed:
    if Current Item:hiddenStatus  not equals Current Item:Status
        .... do something
    or you can do something like:
    if Current Item:hiddenStatus equals "In-Progress"
        .... do something
    Else if Current Item:hiddenStatus  equals "Completed"
        .... do something
    or combine the two and do nested "if" statements.  Then you add an email statement wherever you need it like:
    if Current Item:hiddenStatus  equals "Completed"
       then email "these users"
    To add the email part, just type in "email" on the line where you want to add a statment.  There is only one option to choose from.  That will display the line "then email these users".   The "these users" will be a link.  When you
    click it you will get a popup to add the email info.  We typically will send the email to a user (or users) that are already listed in one of the PeoplePicker fields.  On the email form, you can type in your own text, designate that a value is based
    on a column value (like our PeoplePicker), designate that a value is based on a workflow variable, add a link to the current item, etc.  To get to these options you will click the button to the right of the fields or use the "Add or Change Lookup" button
    in the bottom-left for the text area.  There is alot you can set in the mail.
    Does this help answer your question?
    - Peter

  • "Unable to load workflow actions from server. Please contact your server."

    I get the following error message when I want to create or open a workflow in SharePoint Designer 2007
    "unable to load workflow actions from server. Please contact your server
    administrator."
    I don't receive this error as a site collection administrator, but one of my contributors gets the error.

    What Chris mentioned is kind of abnormal situation described in
    http://office.microsoft.com/en-us/sharepointdesigner/HA102379121033.aspx#20.
    However, normally, you won’t be able to create SPD workflow if you only have Contribute permission level. I give the user Design permission level then he can
    create SPD workflow.
    There are other factors affecting permission to create SPD workflow:
    1.     
    According to
    http://office.microsoft.com/en-us/sharepointdesigner/HA101005871033.aspx#4
    , the SPD workflows are stored in a site-level hidden document library called Workflows. You should make sure that user have permission in this document library so that the created workflow can be saved successfully.
     http://blogs.msdn.com/sharepointdesigner/archive/2008/11/25/locking-down-sharepoint-designer.aspx
    describe the method to manage permission for this hidden Workflows document library: open the site in SharePoint Designer >> right-click the Workflows library >> click Properties >> click the Security tab >> click the link “Manage
    permissions using the browser”
    2.     
    SharePoint Designer contributor setting (http://office.microsoft.com/en-us/sharepointdesigner/HA101174691033.aspx
    ) can also block the user from being able to create workflows.

  • Desinger Workflow 2010: Unable to load workflow actions from the server. Please contact your server administrator?

    Hello,
    I am facing a problem from last some days..
    When I am trying to open/create/update workflows from Designer 2010, then designer giving me an error "Unable to load workflow actions from the server. Please contact your server administrator".
    I researched on internet for this error and found some possible reason like
    Login user Permission issue
    Error in custom actions
    So that I checked for permission for login user, but it has administrator rights. and I tried to open workflow by removing custom activity code, but still exist.
    also if I tried to create/update workflow for another site on same server then it works without any problem.
    Can anybody please help me?
    Many thanks,
    Nitin
    N i T i N

    Hi NiTiN4u,
    Thanks for your post.
    First, here are some troubleshoot workflow error form Microsoft site:
    http://office.microsoft.com/en-gb/sharepoint-designer-help/troubleshoot-workflow-errors-HA010237912.aspx#BM20
    Second, have you tried to close the site and open it again in SharePoint Designer 2010?
    Third, try to restart your IIS and share the results.
    SharePoint 2010

  • The list of workflow actions on the server references an assembly that does not exist

    Hi,
    This issue has been discussed many times in this forum , the reason why I am posting is I tried the resolution steps but I dont see any luck.
    I am getting the below message from the SharePoint designer 2007 when I am trying to modify a workflow
    "This list of workflow actions on the server references an assembly that does not exist. Some actions will not be available. The assembly strong name is Microsoft.SharePoint.WorkflowActions, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c.
    Contact your server administrator for more information."
    #1 : One of the post says "Normally you would see that error because someone has extended the Workflow actions available in SPD with a custom action developed in Visual Studio.  These custom actions are loaded when your workstation reads the WSS.ACTIONS
    file on the server.  The file is located in the 12 hive under Template\1033\workflow.  Your WSS.Actions file contains a reference to a custom action .dll which is not available on the server."
    I opened the WSS.Actions file in notepad, I dont see any line with *.dll in it. Am I missing something?
    #2: Another post says "The solution I discovered was that the server running my SharePoint Services was not up to .NET 3.0.  As soon as I updated to .NET 3.0 everything worked.I had made sure the machine running SharePoint Designer was updated, but
    had missed the SHarePoint Services server."
    The server is already updated to .Net 3.0.
    #3: I went to the %System Drive%\Documents and Settings\Local Settings\ApplicationData\Microsoft\SharePointDesigner.
    Deleted the ProxyAssemblyCache folder but no luck.
    Just checking if any one was able to resolve this issue by following any of the solution other than the above mentioned ones.
    Thanks,
    Cutloo

        I have the similar issue with my custom work flow. I have searched the whole day for the solution but no success, then at last a simple track works for me. Please try this if any one faces such issue.
    Basically the assembly that we have define in the ACTIONS file dose not exists on the server, because of two reasons, either we have given the wrong assembly name (in our case the namespace name inside our solution) or the PublicKeyToken may differ from the
    original assembly, that are deployed in GAC.
        So cross check both of these, in my case the assembly name was fine,
     <Action
        Name="Move Item to Another List and Send Email"
        ClassName="MyAssemblyName.Classname"
        Assembly="MyAssemblyName,Version=1.0.0.0, Culture=neutral, PublicKeyToken=4053d1fde8a1c781"
        AppliesTo="all"
        Category="Email actions">
    But the problem was in the 'PublicKeyToken', so i double click on the feature inside my solution,then in the bottom i have clicked on the manifest tab to check the entries.
    <Feature xmlns="http://schemas.microsoft.com/sharepoint/" Title="MyAssemblyName Feature1" Id="f7f1bda0-5f65-40f1-a705-f6f15a41da3a" ReceiverAssembly="MyAssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0c32dbb769ed64b5"
    ReceiverClass="MyAssemblyName.Features.Feature1.Feature1EventReceiver" Scope="WebApplication"></Feature>
    Here i got the actual PublicKeyToken for my assembly (0c32dbb769ed64b5), i have replaced this number inside ACTIONS file, deploy the soultion, reset IIS.
    It works for me,

  • Workflow Action: Trouble adding a new line in "Description" field.

    Hi folks. I'm really having a difficult time with this one and it seems so simple...
    I am struggling with how to get a field update action to enter a line break in a note field. I've tried "\n", "\n\r", "chr(13)", "chr(10)", "<br>" and so on.... it just puts the text of what I use into the Description.
    Here's the simplified workflow action...
    [<NextStep>] + "\ \n" + PRE('<Description>')
    What it's supposed to do.. is every time someone updates the field [<NextStep>], I want to replace the contents of the description field with the new value for nextstep (plus a new line) and then followed by everything that was in the description field previously. This way I have a running log in the description field.
    Idealy it should put:
    Today() + ": " + [<NextStep>] + <line break> + PRE('<Description>')
    but when I add the Today() it ignores everything that follows. I'm not as worried about that as I am about the inablity to put in the line beak. Please help!!!
    Thanks!
    Edited by: ThinkGadget on May 11, 2009 9:13 AM because the forum interpreted the "\\n"
    Edited by: ThinkGadget on May 11, 2009 9:15 AM (I put a space between the two back slashes so that the forum doesn't interpret it as a new line)

    I had used the "\\n" in my expressions to add a new line in the Description field. Only issue is also add a \ to the end of line but that was acceptable in my case. We are on OOD R16.

  • Can I video capture 'live action' from Viewer screen ...

    Can I capture 'live action ' video as it appears on the 'viewer screen' in iMovie as I move the cursor across the 'source video' clips. Does iMovie allow me to record this 'action' to hard drive ?? ... Suggestions greatly appreciated.

    it is this 'rapidly changing 'still' images' as it appears in the 'viewer' that I want to record.
    You could use a screen capture application like Snapz ProX to capture the "preview" window as it is either playing or being "scrubbed." On the other hand, if you have QT Pro, you could also export the original source clip as a sequence of still images (image frequency can be selected by the user) to a folder and then simply open the "Image Sequence" using QT Pro to create a motion clip with a user selected frame rate for viewing. This approach would provide a more even playback than a screen capture of a "scrubbed" playback which depends on how fast and steadily you "scrub" the file.

  • Field Update workflow action - Updating today's date into a field

    Hello there.
    I was hoping someone might be able to help with an error currently being experienced with regards to this workflow action.
    The requirement is for a workflow rule to action the printing of today's date into a custom field on an Activity record. The workflow rule condition is (PRE('<Status>') <> 'Completed') AND ([<Status>] = 'Completed'). This appears to be working and triggering the action correctly.
    The custom field to be updated is of type 'Date'. The value being updated into this field is 'Today()'. Overwrite existing values is checked.
    The default value for the field is also 'Today()'. Thus the workflow action involves overwriting the default value (i.e. the date the record was created) to the current date when the Status is switched to completed.
    When the workflow is triggered the following error message occurs:
    "Unable to evaluate workflow rule for the following reason:
    Update [Custom field name] : The value '01/18/2008' cannot be converted to a date time value. (SBL-DAT-00359) (SBL-ODS-00500)"
    One odd observation is that this error only occurs when trying to update activities that were created on previous days - (it will not overwrite the default value of 15/01/2008 with 18/01/2008). The workflow does not return an error message when asked to overwrite a value which is equal to itself (i.e. if the default value was 18/01/2008, the workflow runs without error, although the value stays the same as you would expect.)
    Can anyone shed any light on this? One potential thought is that our CRM is set up so that all dates appear in a different format - i.e. dates appear as dd/mm/yyy, rather than mm/dd/yyyy. Could this be contributing to this issue?
    Any help very much appreciated indeed.
    Thanks,
    Kieran
    ps. The reason for doing all this is that 'Completed date' for an activity does not appear in reporting. This has been raised with Oracle and apparently an 'enhancement request' has been registered.

    Guys,
    using the following statement, it does display the current system time
    Mid(Timestamp(),4,2)+'-'+Mid(Timestamp(),1,2)+'-'+Mid(Timestamp(),7,4)+' '+Mid(Timestamp(),12,8)
    Now When i do this , it displays me a time which is 3 hours ahead
    Mid(Timestamp(),4,2)+'-'+Mid(Timestamp(),1,2)+'-'+Mid(Timestamp(),7,4)+' '+Mid(Timestamp() + (3.0/24.0),12,8)
    My problem is to now display the difference of the current time stamp and the the time which shows 3 hours ahead in one field
    Thats is substracting the first timestamp syntax fro mthe second timestamp syntax
    and ofcourse if I copy paste both the syntaxes and put a minus sign in between, it doesnt work
    Timestamdiff is not allowed in workflows or field validations :(
    Anyone has any ideas?
    Nick

  • Is there any FM or BAPI to capture the action in CRMD_ORDER?

    Hi All,
    In CRMD_ORDER transaction, I need to know the action selected by the user like CREATE TRANSPORT OF COPIES, LOGON TO SYSTEM etc. Is there any FM or BAPI available to capture this action details?
    Thanks in advance.

    BAPI_SALESORDER_CHANGE
    [Link|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi_salesorder_change-delete-sales-order-ver-470-1081398]

  • Implicit triggering of Workflow Action

    Hi
    There is Oracle APEX(Application Express) which is invoking the BPEL process on change in DB field.
    Lets say status become NEW, it inokes the BPEL process, with the Request Number, which is a key filed in APEX as an input payload message to BPEL.
    In BPEL process there is a Workflow which is triggered and a request is sent for Approval/Deny lies in a person's worklist.
    Now APEX is the controlling point and BPEL is only used for workflow .
    So no action of a workflow can be triggered form BPM worklist.
    So when the status of DB field changes from NEW to COMPLETED, the BPEL process is to be invoked again and should proceed with the workflow action task where it has stopped previously and should get out of theat person's worklist.
    The issue here is :
    How can I invoke the workflow action from APEX to proceed further, when it has come to a person's worklist.
    Thanks
    Deepak

    Thanks for the speedy response. We've tried that, but the "Change Document Object" for Risk Assessment in not included in the possible list.
    The following change document object for this transaction is CBIH_ERH for the Risk Assessment and CBIH_AC for the Safety Measure. This information can be seen in the change document CDHDR.
    Regards
    Makoro Manyathela

  • Workflow Action to update Picklist field

    Hi,
    I created a workflow. I want the workflow to do the following.
    Workflow Conidtion*
    If Condition is PM20 Bid Decision or PM20 No Bid then perform workflow actions.
    [<plMileston_ITAG>]=LookupValue("OCC_CUST_LOV_OPTY_6", "PM020 Bid Decision") OR [<plMileston_ITAG>]=LookupValue("OCC_CUST_LOV_OPTY_6", "PM020 No Bid Decision")
    Workflow Action*
    FieldValue('<plProject_Category_ITAG>')=LookupValue("OCC_CUST_LOV_OPTY_2", "A")
    I tried various combinations of using FieldValue,Just by putting the FieldName = A. Nothing works..I know the workflow Condition is working because when I update a free form text I am able to append the field. When I try to update a Picklist (Editable) it does not work. Dont know the reasons.
    Also what is the standard way of updating a Picklist field using workflow.
    Thanks for your help in advance
    Gautam

    Hi !
    I assume you created a workflow with the event trigger *"Before modified record saved"*.
    Then you action Update values must be :
    Field Name : select the picklist you want to update
    Value : simply put LookupValue("OCC_CUST_LOV_OPTY_2", "A")
    Overwrite Existing Values : check the box it if you want your picklist updated even if already filled
    You don't have to repeat the fieldname in the value field of your action. It seems that you put FieldValue('<plProject_Category_ITAG>')= in the value field, but with that, it will not work.
    Hope this will help, feel free to ask more !
    Max

  • Specific Due Date Syntax for Create Task Workflow Action

    I'm looking for a formula which will create a monthly due date on a specific day of the month (ie 1st or 15th). I have figured out a way to create recurring activities through workflows by adding a recuurence picklist but I currently only have monthly recurrences as Today()+30 which works but is not as clean as a monthly task that occurs on the 15th of every month.

    Record Type=Activity
    Event=When modified record saved
    Workflow condition=FieldValue('<Type>')='To Do' AND FieldValue('<plRecurrence_ITAG>')='Every 30 days' AND FieldValue('<Status>')='Completed'
    Actions=Create Task
    Recurrence picklist is a required field and is chosen be the end user upon creation of the original activity (Type=To Do). The duplicate activity is created upon completion (see condition) and now the end user has a recurring task due 30 days out. this future task has the recurrence in the subject (since the recurrence field cannot be defined in the workflow action) and the end user is prompted by the system to complete the activity record (choose a recurrence) upon trying to save the record as complete or by clicking the "Mark as completed" button. Thus the cycle is repeated.
    All I'm trying to figure out is instead of having the formula [<DueDate>]+30 in the Due Date* field within the create task workflow action, I'd like a formula that can choose a specific day of the month. I've tried combinations of cast, concat, timeframe, month, year...expressions to give me the date value I'm looking for (ie 4/15/2011) but I can't get the syntax to work. all I need is that syntax that can provide a specific date (4/15/2011) derived from the due date.

  • Workflow actions like FORWARD, RETURN, CANCEL in the Custom Screens

    We have a requirement to perform the Workflow actions like FORWARD, RETURN, CANCEL from a Custom transaction Screen.
    Usually these Workflow actions can be performed from SAP Inbox SWBP of the user and related WF logs are reflected by SAP automatically. 
    For example,
    we will add the Push buttons in CC02 transaction and want to perform these Workflow Actions, Is it possible to do so? If possible, How can I reflect these changes into WF logs and all similar to Standard SAP?
    Help is appreciated.
    Thanks,
    Prathap

    we will add the Push buttons in CC02 transaction and want to perform these Workflow Actions,
    Is it possible to do so? If possible, How can I reflect these changes into
    WF logs and all similar to Standard SAP?
    Question & Answers
    we will add the Push buttons in CC02 transaction ?
    Are you going to add only one button or three separate buttons, if you can add three separate buttonts then under each button action,
    For Forward  =  SAP_WAPI_FORWARD_WORKITEM make use of the standard FM.
    For Retrun ( Assuming that you want to put back the workitem ID back to the user's inbox ) in that case use of FM SAP_WAPI_PUT_BACK_WORKITEM.
    For Cancel   =  SAP_WAPI_WORKITEM_DELETE this might help you to cancel ( Assuming that Cancelling means Deleting the workitem...
    Note : to make use of all the above FM you need to have the workitem ID, Will you be able to determine the exact workitem id?
    for more :
    Now you can find more FM regarding the workitem by simple search in SE37 Txn by using the term SAP_WAPI_*.

  • Workflow Action on Before modified record saved

    Hi,
    When creating a new update action on a workflow for "Before modified record saved", why can I not select a field from the "field to update" pick list that I have renamed?
    If I do not rename the field, select it for the field to be updated with my fomula, then go into Admin > App Cust > Record Type > Field Steup and then rename the field and make it appear on the page layout, this works, but if I want to edit the formula for the workflow action, I cannot then select it as per my original issue!
    Is this a bug or just the way the system works?
    Thanks for any help/advice on this

    Ok - further to this, if I use the Indexed Short Text 1 or 2 field and re-name it, then re-name it back to the original field name it does not appear in the list of Fields to be selected for the action when it was listed there originally before I renamed it.
    Ideas anyone?

  • Triggering action for workflow action - pass parameters

    We defined multiple workflow actions for opportunity sales assistant. These actions share a common business logic (WF template), but they will be processed by different groups depending on the actions.  At the runtime, we need to know which action triggered the workflow, so we can direct it to the appropriate group.  Is there a way for us to figure out the triggering

    Hi
    I'm experiencing the same. Have you found an answer?
    Regards
    Carl

Maybe you are looking for

  • Jabber for Windows openLDAP and Deskphone Control

    Hello all I have a new install of 9.1 CUCM, with CUCM IM and Presence. I'm trying to get Jabber 4 windows functioning with an openLDAP directory, and also get Deskphone control working. I suspect i missed something with the configuration as this 9.1

  • HP Connected Driver app for Windows 8 - unable to find it in Store????

    In order to set up scanning on my pinter, I have to go to my printer installed software (which I can't find too).  However, in reading instructions, HP direct me to download the app instead, but its nowhere on Store.  anyone know whats happened to it

  • Concatenated Prompts in OBIEE answers

    Hello All, Can we have Concatenated OBIEE Prompts in Answers(Not in Dashboard) ex: Vendor_Number || Vendor_Name.. it has to be displayed in this way when the user runs the request. either can go into the DB to process the request. This is something l

  • Can't remove proxy

    I'm having trouble removing the proxy from the patching setup. I'm using GC 10g R3. Every time I try to set it back to direct Internet connection, it gives me a Error: "Proxy Test resulted in Exception" when I click on the apply button. I need to rem

  • Mobilme and Outlook 2010 on Windows 7

    When I open up Outlook 2010, I am receiving a message stating that the Mobileme service has stopped working. How do I fix this issue?