Send notification on pre-defined date

Hi All,
I have a simple requirement which seems a bit difficult to achieve in CRM On Demand. I need the system to send out a notification on a (predefined) date with the warning that a contract is to expire soon. However when the contract is extended in the mean time there is no need to send out the notification anymore. Instead in case the contract is extended a notification should be set at the new date. Anyone knows how to achieve this?
The problem is that when you use a wait action to wait for the notification date it doesn't check whether that date has been changed in the mean time but just continues at the date determined at the time the WF was triggered.
Thanks in advance for your help.
Regards, Tim

Make the predefined date field a required field. Let's call it Defined_Date
Workflow 1
Record Type: Contract
Event: When new record saved
Condition: ([<IndexedBoolean0>] IS NULL OR [<IndexedBoolean0>] = "N")
Note: IndexedBoolean0 is the field named Indexed Checkbox in the list of fields
Workflow 1 - Actions
1. Action = Wait
Date Time Expression = [<Defined_Date>]
Reevaluate Rule Conditions After Wait = Y
Workflow 2
Record Type: Contract
Event: When new record saved
Condition: ToChar([<Defined_Date>], "MM/DD/YYYY") = ToChar(Today(), "MM/DD/YYYY") AND ([<IndexedBoolean0>] IS NULL OR [<IndexedBoolean0>] = "N")
Workflow 2 - Actions
1. Action = Wait
Period: 0 Minutes
Reevaluate Rule Conditions After Wait = N
2. Action = Field Update After Wait
Field Name = Indexed Checkbox
Value = "Y"
Overwrite Existing Values = Y
3. Action = Email
Configure the email action as needed
Workflow 3
Record Type: Contract
Event: When modified record saved
Condition: ToChar([<Defined_Date>], "MM/DD/YYYY") = ToChar(Today(), "MM/DD/YYYY") AND ([<IndexedBoolean0>] IS NULL OR [<IndexedBoolean0>] = "N")
Workflow 3 - Actions
1. Action = Wait
Date Time Expression = [<Defined_Date>]
Reevaluate Rule Conditions After Wait = Y
2. Action = Field Update After Wait
Field Name = Indexed Checkbox
Value = "Y"
Overwrite Existing Values = Y
3. Action = Email
Configure the email action (exactly the same as previous email action)

Similar Messages

  • Creating a Parameter with pre-defined date ranges.

    How can I create a parameter that will allow the user to select a specific date range for a report (i.e. YTD, MTD, WTD...)? Any suggestions? Thanks...
    Matt Johnson

    You can create & define Parameters in SSRS Report and provide possible values (MTD, YTD or WTD) as drop-down options, the user can then select which one to pick and you can write your T-SQL logic to capture this option and take further query action
    on it
    Good Luck! Please Mark This As Answer if it solved your issue. Please Vote This As Helpful if it helps to solve your issue

  • Send Notification when First Response Date is set

    I am looking for a way to replace a SCSM workflow with an Orchestrator runbook. We want an email sent to the Affected User when the First Response date is set by either the Primary Owner or the Assigned TO User.  I am not able to figure out a good way
    to present / compare the data..
    Thoughts?
    Cheers!

    A runbook has to recognize that a user who sets the first response date is exactly a primary owner or assigned analyst. But there's no field like 'First Response Date is set By'. But you can create one by yourself and the easiest way to
    populate it is using a custom console task. You could create the task with PowerShell, for instance. Take a look
    here.
    Cheers,
    Marat
    Site: www.scutils.com  Twitter:
    LinkedIn:
    Graveyard:

  • Teradata database error when using a Universe-defined Date condition

    I have encountered an odd problem when connecting Crystal to a Universe.  There is a pre-defined Date condition built into the Universe that is defined as follows:
    @Select(Date\Week End Date)  >  @Select(Conditions\User Response Select Date week -28)  AND @Select(Date\Week End Date)  <=  @Select(Conditions\User Response Select Date)
    The filter is designed to retrieve a rolling 4 weeks of data.
    When I try and create and refresh a Crystal Report that includes this Date prompt, I get the following error:
    Failed to retrieve data from the database.
    Details: 22003:(ODBC Teradata Driver)(Teradata Database) A character string failed conversion to a numeric value.
    If I create the same query in a WebI report it works fine, but in Crystal the error is produced.  I have also tried constructing the same prompt and filter within Crystal rather than use the pre-built prompt but that did not work either.
    Does anyone have any experience or advice on this error?  I can't seem to find many related postings on this specific error.
    BO Enterprise XI 3.1 SP2 running on Windows 2008 Server R2
    Crystal Reports 2008 SP2 running on Windows XP SP3
    Universe is built on a Teradata 12 source
    Thanks!

    One item I found I had to do with Teradata was cast my date/time values to dates, otherwise I got weird errors like this. You say it's working in Web Intelligence, so this might not be the issue, but it is an easy thing to test.
    In the universe, change your end date definition to
    cast(table.end_date as date)
    and see if that helps.

  • Disabled subscription sends notifications, relative date not working properly

    Hi
    I have two problems regarding subscriptions:
    1.When I disable a subscription, should I receive any further notifications? I am receiving notifications despite disabling the subscription.
    (I have cloned the template and deleted the original template, then sending email notification will be stopped, but as soon as assigning new template to subscription, sending emails starts, whether subscription is enabled or not)
    2. The criteria for subscription is as follows:
    Status = Active or Status = Pending and Source = Portal and Created date [relative] = [now-7d]
    Regarding the criteria, it must check whether it has past 7 days from incident creation, but it starts sending notifications without considering the [now -7d] condition.
    I use SCSM 2012 SP1 - Rollup 6.
    Am I doing something wrong?
    YSobhdel

    The actual criteria was Created Date greater than or equal to [now-7d]
    What I am trying to accomplish is that whenever an open incident (i.e., not resolved or closed incident) is active more than 7 days, assigned to user will be notified.
    My Question is , why is it happening in the first place, this criteria is nearly impossible to catch (equal to [now-7d]), yet it is sending notifications from the first day. I have testes the notification with
    Created Date greater than or equal to [now-7d] as well but to no avail, still the same problem.
    About delay, I am 100% sure that this is not performance problem, since this workflow is set to periodically check criteria and is run once a day. I have waited for the setting to apply for about two days and this is far beyond any delay! (for two consecutive
    days, I have received this notification).
    YSobhdel

  • Trying to change a pre-defined report. Date format is wrong, 20140217 should be 17.02.2014.

    The pre-defined report in sccm "Computers with specific software registered in Add Remove Programs" has a query like this:
    Select DISTINCT sys.Netbios_Name0, fcm.SiteCode,  sys.User_Domain0, sys.User_Name0, sys.Operating_System_Name_and0, arp.DisplayName0,
    arp.InstallDate0  
    FROM fn_rbac_R_System(@UserSIDs)  sys 
    JOIN v_Add_Remove_Programs arp ON sys.ResourceID = arp.ResourceID  
    JOIN v_FullCollectionMembership fcm on sys.ResourceID=fcm.ResourceID 
    WHERE DisplayName0 like @filterwildcard and fcm.CollectionID=@CollID
    I have highlighted the part that I added to the report.
    I have inserted an extra column in Report Builder, and added the value inside the column and the install date can be viewed in the report. However the date format is shown like this: 20140217 - I want it to be 17.02.2014.
    So I try to change this via right-clicking on the cell in Report Builder, Text Box Properties, Number. Here I choose Date and the correct format. However it does not change the date format when saving and running the report again. It just stays the same. 
    Kthxbai

    The format can be change if it was a date. But if you look that field it is NOT a date, it is a string and therefore will not  change to the data format that you want.
    On top of this, there is a bigger problem. Not ever setup records the date or in the same format so.....
    http://www.enhansoft.com/
    Sorry - I am not sure what you mean by the last statement. "Not ever setup records the date or in the same format so.."
    - Would it be possible to elaborate? Thank you very much.
    Kthxbai

  • How to create a new role : Need to send notifications to multiple users.

    Hi All,
    I have a requirement where in I need to send notifications to multiple users
    and no. of users in the list is not fixed.i.e. this builds up dynamically.
    Kindly let me know how do I achieve this.
    Also wanted to know where form the Workflow roles get created i.e. who inserts data into wf_roles and wf_user_roles tables. Is there any UI to create roles and associate users with them.
    Thanks,

    Hi,
    Yes - by default all responsibilities are defined as roles in the Workflow directory. You just need to identify the role that corresponds to the responsibility (look at ORIG_SYSTEM and ORIG_SYSTEM_ID columns, IIRC) and then send the notification to the role.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Could not send notification 65569 (status 'FAILED')

    Customize Workflow runs with 2006 error - only happen in the morning
    We have created a customize workflow which works a bit funny here:
    When we first run the workflow in the morning, it ends up with this error:
    Activity Buyer Notifications
    Result Mail
    Error Name WFMLRSND_FAILED
    Error Message 2006: Could not send notification 65569 (status 'FAILED') to 'CONTRACT SERVICES'.
    Error Stack WF_MAIL.GetDocContent(PO_DETAILS_BUYER)
    Then, thinking of some problem might happend to the workflow mailer, we run the standard workflow, e.g. PO Approval. It runs successfully and send out the notification email. So, we then run the customise workflow again, and this time it works, no error has been generated as above.
    The funny thing is, this had happened more than a week, where every morning I have to somehow run a standard workflow (normally I just create a new PO and send for approval), and got my customize workflow run successfully.
    Can someone highlight what's going wrong here?
    Is that some setup or soemthing that contribute to this problem?
    Thanks,
    Patricia

    The notifications are defined in the workflow but they do use a document type attribute (we send a table of data "Job", "Job Name", "Amounts").
    We have changed the database packages a lot and that created many problems afterwards so we minimized when we make those changes and we restart everything (database, IAS Server) afterwards.
    Here is the email to SYSADMIN:
    =========================================================
    Subject: Error in Workflow DUNAPIN2/20060323123955x30741282 2006: Could not send notification 41119 (status 'ERROR') to 'KKEMPER'.
    From
    To SYSADMIN
    Sent 03-APR-06
    Due
    Notification ID 41121
    An Error occurred in the following Workflow.
    Item Type = DUNAPIN2
    Item Key = 20060323123955x30741282
    User Key =20060323123955x30741282
    Error Name = WFMLRSND_FAILED
    Error Message = 2006: Could not send notification 41119 (status 'ERROR') to 'KKEMPER'.
    Error Stack = &ERROR_STACK
    Activity Id = 52557
    Activity Label = GET_GENERAL_LEDGER_APPROVAL:NTF_V2_AR_DEPT_OFF_MGR
    Result Code = #MAIL
    Notification Id = 41119
    Assigned User = KKEMPER
    Workflow monitor
    Please click on one of the following choices to automatically generate an E-mail response. Before sending the E-mail response to close this notification, ensure all response prompts include a desired response value within quotes.
    How do you want to Continue?
    How do you want to continue?: Abort Resolved Retry Request information
    =========================================================
    Any help would be greatly appreciated.
    Jim

  • WF error sending notification to org unit

    Hi All,
    I'm facing an amazing issue :
    I use my WF to send notification. The recipient can be a single user or an org unit(object O, in this case all people belonging to this org unit receive the notification in theur SBWP). It was running very fine before but newly my WF goes on error if the recipient is an org unit. I checked my structure, there is no issue, people are well assigned and have their users defined in the system.
    Could you please tell me what's the root cause of this issue? Is there a configuration of WF or rules I should verify?
    Many Thanks

    here is the last news, My WF runs correctly for another org unit. I went to the detailed log(transaction SWi2_freq) and found that for the container of my task(sending notification to the org unit ) some values of the structure "_Workitem" are diffrents :
    Field "callbackFM" which value is SWP_CALLBACK_WI_DONE for both WFs
    Field "return value" :
    the WF which ran correctly : 0000
    the WF which went on error : 1001
    So I guess that this FM causes the error, but I can't find this FM with transaction SE37
    How to reach it?
    Have you faced this error before?
    A colleague audited the OM structure, he confirmed that it's well set up, and the error is not due to wrong assignements or invalid dates.

  • GRC PC 2.5 - pre delivered data

    Hi All,
    We installed the PC 2.5 and activated all the delivered BC-Sets in the PC - we want to ensure that we have all the delivered data.
    We can now see in the system the pre-defined rules in the:
    Evaluation Set-Up -> Automated Test Rules -> Rule
    and also the pre-defined rule scripts and criteria in the:
    Evaluation Set-Up -> Automated Test Customizing -> Rule Script / Rule Criteria
    According to the documentation, the PC comes with 70 sample controls and 102 rules.
    The documentation terminology is not so clear regarding the pre-delivered content -
    Is it only rules and scripts we saw or is there something more?
    Thanks
    Yudit

    Hi Yudit
    Even though you see the rule and rule scripts in PC 2.5 system,in order to use them you need to install RTA (Real time agents) in backend ERP system,where you will perform the automated control test.
    You also need to connect PC2.5 and ERP system using a RFC connection
    RTA packages are available for the following different type of ERP versions
    ERP 4.6 C
    4.7
    2004
    ECC 6.0
    RTAs are the real ABAP programs(pre delivered Rule Scripts) which runs in the ERP system and sends back the result to the PC 2.5 system
    Let me know if you have any questions.
    Thanks
    Debraj

  • Sending notification from workflow to non users

    I have a workflow requirement where I would like to send notification to Email
    IDs of People who are not defined anywhere in the Content Management System.
    Basically the workflow is to review Documents for various Projects being
    carried out for our Customers. At the end of the workflow we would want to
    just notify the Customer that the document has been reviewed and approved
    and that they could collect them from our office. The email ID of the
    Customer is being stored as a metadata field and the purpose is to send a
    notification to this Email ID for the respective content.

    Hey There,
    This is a great question and a common request.
    Here at Fishbowl, we have an add-on component called Subscription Notifier that will do exactly what you are asking. It gives you the ability to define your own email templates so you can easily tailor the look and feel of the emails, it will email users and non users alike on a triggered and/or scheduled and/or event basis which gives you maximum flexibility. Furthermore as long as there is a look-up vector then email addresses can be pulled from anywhere they're stored (e.g. metadata as you currently have it, a data provider, database table join, IDM system etc.). Subscription Notifier also has built-in hooks to handle callbacks so that after a notification is sent out additional business process steps can be automated.
    Please take a look at the specs here: http://bit.ly/ENRwq
    Warmly,
    Billy Cripe
    Fishbowl Solutions

  • How can I pre-define the default selection in a SelectOneChoice?

    How can I pre-define the default selection in a SelectOneChoice?
    (1) Here's my JSF-code:
    <af:selectOneChoice label="#{res['usercreate.input.sex']}"
    value="#{bindings.Sex.inputValue}"
    binding="#{SelectListBean.sexlist}"
    readOnly="false" autoSubmit="false">
    <af:selectItem label="#{res['data.sex.women']}" value="1"/>
    <af:selectItem label="#{res['data.sex.man']}" value="2"/>
    </af:selectOneChoice>
    (2): manged bean: to set the default value to be the first in the list, my managed bean as follows:
    import oracle.adf.view.faces.component.core.input.CoreSelectOneChoice;
    public class MBSListBean {
    private CoreSelectOneChoice sexlist;
    public MBSListBean() {
    public void setSexlist(CoreSelectOneChoice sexlist) {
    this.sexlist = sexlist;
    this.sexlist.setValue(1);
    public CoreSelectOneChoice getSexlist() {
    return sexlist;
    (3) when i launch the page, it often gives me such warnings:
    WARNUNG: Could not find selected item matching value "1" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=_id7]
    how to solve the problem ?
    Thanks,
    wzzdx

    You could also set the default on your entity or viewobject, in the properties of your attribute.

  • Custom Report using pre-defined template

    In 2012, How to create custom report using pre-defined reports template in below format?
    Column1 :- Device Name
    Column2 :- When installed (Date & Time)
    Column3 :- Success (Date & Time)
    Column3 :- Failed (Date & Time - With which error code)
    Column4 :- Not Installed
    Regards,
    Onkar.

    Here is what you need to do.
    Start by writing the SQL query that you want.
    Clone one of the existing report
    Replace the SQL query with the new query.
    Update the columns with what you need.
    http://www.enhansoft.com/

  • Issues in creating a Pre-defined filter in Universe

    Hello Everyone,
    Here is the problem...
    The idea is to have a prompt (Prompt1) to allow user select the Input type ..ie."Check Number or Invoice Number". There is the second prompt (Prompt2) which will allow user to input a value. Based on Prompt1 value, the prompt2 input should be evaluated against Check Number object or Invoice Number Object.
    This is using a universe based on a BEx query.
    Following useful information in the OLAP universe Best practice doc available [here] which Ingo once shared with us [on this forum], I created following pre-defined filter in my universe.
    <OPTIONAL><FILTER EXPRESSION="IIF(@Prompt('Select Input type','A',{'Check','Invoice'},mono,free)='Check', [ZFIAP_IS1___F20].[LEVEL01],[ZFIAP_IS1___F46].[LEVEL01])"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Enter Check or Invoice Number','A',,mono,free)"/></CONDITION></FILTER></OPTIONAL>
    Where [ZFIAP_IS1___F20].[LEVEL01] = Check Number & [ZFIAP_IS1___F46].[LEVEL01] = Invoice number.
    The object is parsing without errors in the universe. But when I use it in my report, the report throws an error " failed to execute with the error Invalid MDX command with " "
    I took the MDX statment and tried to run/debug using MDXTEST and could never get it to work with the above objects. It was seen that the filter created in such a way is handled [Measures] object which only accepts Numeric values and not Strings. Where as my Check number and Invoice Number values are strings. The MDx statement is given below.
    Has anyone experienced this issue earlier ?
    WITH MEMBER [Measures].[4C46B176-CC15-DF11-92,5D,25,C2,A9,6F,0,0] AS ' IIF(Check=Check, [ZFIAP_IS1___F20].[LEVEL01],[ZFIAP_IS1___F46].[LEVEL01]) ' SELECT { [Measures].[4GQZ1D26O6QATUDY32CGL1C38] } ON COLUMNS , NON EMPTY FILTER( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( [ZFIAP_IS1___F93].[LEVEL01].MEMBERS, [ZFIAP_IS1___F94].[LEVEL01].MEMBERS ), [ZFIAP_IS1___F92].[LEVEL01].MEMBERS ), [ZFIAP_IS1___F71].[LEVEL01].MEMBERS ), [ZFIAP_IS1___F55].[LEVEL01].MEMBERS ), [ZFIAP_IS1___F46].[LEVEL01].MEMBERS ), [ZFIAP_IS1___F20].[LEVEL01].MEMBERS ), [Measures].[4C46B176-CC15-DF11-92,5D,25,C2,A9,6F,0,0] = 0000041924670) DIMENSION PROPERTIES [ZFIAP_IS1___F55].[2ZCCNODE01], [ZFIAP_IS1___F55].[2ZCCNODE02], [ZFIAP_IS1___F55].[2ZCCNODE03] ON ROWS FROM [ZFIAP_IS1/QZFIAP_BOUNV2]
    Edited by: vaibhav patil on Feb 11, 2010 9:53 PM
    Edited by: vaibhav patil on Feb 11, 2010 9:55 PM

    Hi,
    In fact, what you are requiring is feasible in Microsoft Analysis Services by defining a calculated meaure and a filter using this calculated measure.
    Unfortunately, due to MDX restrictions in SAP, it is not possible to do it in universes.
    I suggest that you create a range variable on Time to allow the user to only retrieve the dates needed.
    You can retrieve all the dates and then apply a filter in Web Intelligence document: this solution might have the disadvantage to retrieve more data than necessary.
    Didier

  • How to export multiple copies reoprts based on parameters and with pre-defined naming

    Hi All:
    I have a problem of using SSRS 2012, we have multiple clients and they wanted us to deliver the pre-defined excel reports to different branches based on selecting the "branch name" parameter, also they have a naming rule for the excel
    report file.
    We cannot use the subscription as they need to do it in one batch and upload to an FTP file, therefore we are doing this manually for over 300 reports. Is this a convenient way to generate them in one batch as well as customising their file names?
    Thanks a lot for your help.
    Cheers
    Johnny

    Hi JohnnyKahWang,
    As per my understanding, there are multiple clients, you want to deliver reports to clients according to branch name parameter, and naming the excel file according to the rule. If that is the case, we can use data-driven subscription to achieve your goal.
    Reporting Services provides data-driven subscriptions so that you can customize the distribution of a report based on dynamic subscriber data. Data-driven subscriptions use query results to determine the recipients of the subscription, delivery settings,
    and report parameter values. At run time, the report server runs a query to get values used for subscription settings. We can use the Create Data-driven Subscription pages to define the query and assign query values to subscription settings. For detail information,
    please refer to the following steps:
      1. Open Report Manager, and locate the report for which you want to create a data-driven subscription.
      2. Hover over the report, and click the drop-down arrow.
      3. In the drop-down menu, click Manage. This opens the General properties page for the report.
      4. Select the Subscriptions tab, and then click New Data-driven Subscription.
      5. Choose a method of delivery, then select data source for the subscription.
      6. Specify a query that retrieves subscriber data like below:
    CREATE TABLE Name (
    BranchName varchar(20),
    ExcelFileName varchar(20),
    Email_to varchar(50)
    INSERT INTO Name values
    ('Branch1', 'Name1', '[email protected]'),
    ('Branch2', 'Name2', '[email protected]'),
    ('Branch3','Name3', '[email protected]');
      IF we chose Windows File Share delivery extension, we can define path in the query.
      7. Specify delivery extension options like below:
      8. Specify report parameters to BranchName.
      9. Specify when the subscription is processed, then click Finish to save the configuration.
    For more information about Data-driven Subscription, please refer to the following documents:
    http://msbimentalist.wordpress.com/2013/08/26/how-to-create-data-driven-subscription-in-ssrs/
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

Maybe you are looking for