Pass business rule prompt to email

Hi,
My requirement is to send email to different users depending on the selection of runtime prompts in a business rule. First i registered essbase cdf posted in one of the other threads to send emails. It is working fine from calc script.
However when I pasted the same thing inside a BR in Calc Manager the BR doesnt validate. So I am stuck up again.
I need a business rule as I also need to pass prompt selected by the user in the subject of the email.
The calc script I am using :
RUNJAVA com.oracle.essbase.cdf.SetEmailProp "target:target1" "subject:Approval" "css:C:/target1.css";
RUNJAVA com.oracle.essbase.cdf.SetEmailProp "target:all" "title:<center><b>% Approval</b></center>" "header:Approval" ;
FIX ("Version",Project,CostCenter,YearTotal,Allocation)
BUDGET (
     @JaddToAlert("target1",@LIST(@NAME(Official),@name(Acc)),Acc->FullYear);
ENDFIX;
RUNJAVA com.oracle.essbase.cdf.SendMail target:target1 "server:smtp_ip" "from:[email protected]" "to:[email protected]";
When pasted in BR it says "target1" is not a UDA or attribute member ...
Any leads appreciated.
Thanks,
Neetesh

How about posting your business rule(if any different from above)? Maybe someone can spot an error.
Also: Sometimes these will run correctly even though they don't validate. Have you tried using the BR in its unvalidated state? Try that and see what happens.
Robb Salzmann

Similar Messages

  • Can members in business rule prompts be sorted

    Hi,
    we have business rules with prompts in accounts as Level 0 of a parent. the users are complaining that these leaf level members in the prompts selection window are not sorted. Is there a way we can display the selection list in prompts alphabetically?
    thanks

    Hello,
    the users see the alias or ID?
    When it is the ID, then I can agree what Sree said. If it is the alias, you have a bigger challenge. Sorting the children on Alias.
    I would recommend to use a relational table for creating the dimension files in EPMA or OutlineLoad.
    Regards,
    Philip Hulsebosch

  • New business rules for email notification

    I suggest adding 3 business rule: send an email notification when the rows was
    successfully:
    - added
    - changed
    - deleted
    In the rule settings allow you to specify the email list; for example: [email protected], [email protected], [email protected]
    from Moscow with money

    Currently MDS can track changes on Attribute level, and you can create a business role which will be triggered if the attribute value is changed.
    https://msdn.microsoft.com/en-us/library/hh479624.aspx

  • Business Rules in Planning 11.1.2.1

    Hi,
    I'm having a strange problem in Planning 11.1.2.1 dataforms. I added a business rule and selected Run on Save, Use members in dataform and Hide Prompt in a dataform. However when I press the save button, the Business Rule prompt appears, and the values of the prompt parameters are not filled with the current page selection (the specific business rule has 2 run-time prompt variables), while I was expecting it to simply start running without showing the prompt and ask the members to the user.
    Anyone knows what could be the problem?
    Thank you

    Its worth having a look at below link:
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/ch06s09s04.html
    Make sure that RTPs which you have created in EAS are of type Member not Members.
    Cheers..!!!

  • Members on rows, can they be passed to run-time prompt in a business rule?

    Hi!
    I have a input form which has a business rule with properties "Run on Save" and "Use members on Form".
    The business rule has run-time prompts (local variables) as follows (showing only the fix part of br...)
    FIX ([V_Year],[V_Version],[V_Scenario],@LEVMBRS ("Offering", 0),[V_Entity],
    [V_ICP], [V_Account])
    calculation...
    endfix
    Now my accounts are on rows and I would like pass those account members to the [V_Account] variable through run time prompt. The [V_Account] ís a local variable with Type "Members" in Account dimension. I have also selected 0-level accounts as limits. Other dimension members from page/pov seem be passed successfully to run-time-prompts.
    The run-time-prompt does not seem to be able to catch those account members on rows? Is it at all possible to pass members on dataform rows to run time prompts?
    kind regards,
    user637777

    Hi!
    Thanks John!
    I just have live with that and find another way to restrict the calculation regarding those accounts.
    kind regards,
    user637777

  • Can I pass the selected member at page dimension to form business rule?

    I have a business rule which will be executed when the form get loaded, the business rule is very complex, so I want to narrow down the calculation by passing the selected member at page dimension to the business rule.
    For example, I have year as page dimension, and I only want to calculate the selected year at one time? How can I do it?
    I know runtime prompt, but I don't think it's a good way, since you need to select again.
    Thanks
    Tony

    You can use a variable and a run time prompt.
    You can set the business rule options in planning to "Use Members on Form" and "Hide Run time prompt"
    This way the page/pov member will be passed into the business and into the variable.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Sequence will not validate with run time prompts in business rules

    I am in Hyperion Planning v 1.1.1.3, with Workforce initialized. I am creating a sequence of business rules. The rules use run time prompts within them and validate when used on their own. However, when I insert them in a sequence the sequence will not validate, apparently due to the run time prompts.
    The sequence returns the error: Cannot calculate. Essbase Error(1200323): Error parsing formula for [FIX STATEMENT] (line 7): expression expected after [(].
    Line 7 in the business rule is as follows:
    FIX ([rtpYear],[rtpScenario],[rtpVer],[rtpCC],[rtpBU],[rtpEmp])
    The problem is not isolated to this business rule, it occurs with any rule I try.
    Can sequences function with run time prompts in the included business rules?
    Stephen

    I have figured out that if any rtp is hidden in the business rule, the sequence will not validate. Is this expected behavior for sequences?
    Additionally, hiding the variables in the sequence has no effect if the variables are not hidden in the rule. When launched from a menu in a web form, the user is prompted for values for all variables (except for the Execution Database Name) although they are prepopulated based on the members in the POV, Page, etc. Is this also expected behavior?
    I also find that it won't validate if "Merge launch variables" is selected (I have included rules associated with different plan types and with different dimensionality, so this may be expected). The user is prompted to provide values for every variable in each rule in the sequence, many of them duplicates (though, again, they are prepopulated based on members in the form).
    Stephen

  • Auto email after execution of scheduled business rule

    Hi All,
    We have certain business rules which will be scheduled on daily, weekly and monthly basis. Our requirement is that every time when a scheduled business rule is executed a email is sent to the administrator (specifying the name of BR and time of execution). Can somebody tell us that how is that possible?
    We are on 11.1.2
    Thanks in advance.
    Regards.

    It may be worth having a read of :- http://john-goodwin.blogspot.com/2009/02/idea-for-this-blog-originates-from-post.html
    Another possibility if you are scheduling from command line is to use free command line email utility e.g. blat.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Business Rule:Usage of @ISMBR with User Prompts/ Variables+Loop Function

    Hi,
    currently facing a business rule user prompt - if-selection issue - not sure, if it's simply a bug or other ways how to solve it:
    depending on runtimeprompt [RTP_VERSIONS], either the 1st or 2nd part of the rule should get executed using a loop command.
    The special thing is, that you can choose several versions simultaniously in runtimeprompt : as soon, as Data Input is part of the selection, the 1st part of the if-section should apply and the 2nd loop executed (and other way round)
    this works if I select 1 Member in the user prompt, but does not work, if I select several members.
    according to the manual, @ismbr function is "true", if already 1 member is matching !
    I experiemented in addition to @ismbr with @list and @range and also with additional == "Data Input"
    any idea, which other command should apply ? any experience, if using user-variables with several member selections in if-sections is a problem ?
    of course I could simply create separate businessrules or restrict runtimeprompt to 1 value/ version - but inconvenient.
    we are on system 9.3
    Businessrule:
    VAR breakvar1=1; /*Controls Deletion of Budgetdata on Version Data Input */
    VAR breakvar2=1; /*Controls Deletion of ALL Data on selected Versions */
    FIX( "BegBalance",
    [RTP_SCENARIO],
    *[RTP_VERSIONS]*,
    "Local",
    +..... other dimensions+ )
    "HSP_InputValue"
    IF( *@ISMBR("Data Input")* AND not @ISMBR(&Scenario_1_curr))
    breakvar1=1;
    breakvar2=0;
    ELSEIF( not @ISMBR(&Scenario_1_curr))
    breakvar1=0;
    breakvar2=1;
    ENDIF;
    ENDFIX;
    SET UPDATECALC OFF;
    SET MSG SUMMARY;
    Loop(1,breakvar1) /* delete all accounts = all data */
    FIX( [RTP_SCENARIO],
    [RTP_VERSIONS],
    @IDESCENDANTS([RTP_PROJECT])
    CLEARBLOCK ALL;
    ENDFIX;
    ENDLOOP
    Loop(1,breakvar2) /* delete only budget accounts, not setupdata */
    FIX( [RTP_SCENARIO],
    [RTP_VERSIONS],
    @IDESCENDANTS([RTP_PROJECT]),
    *@IDESCENDANTS("Costs")*
    CLEARBLOCK ALL;
    ENDFIX;
    ENDLOOP
    Edited by: Rodian Abel on May 4, 2010 10:38 PM
    Edited by: Rodian Abel on May 4, 2010 10:43 PM

    I think he is saying he does want to allow the user to select more than one member.
    You mention you are using @ismbr and @list. I would say that should be the one that would work.
    For example if you wanted Version1 and Version2 and you hardcoded it. It would look like this
    If (@ismbr(@list(Version1,Version2))
    So using your Variable I expect you wrote it like this
    if (@ismbr(@list(variable)) and that it didn't work.
    @range is useful as it is cross dimensional and that isn't the case here. So if @list doesn't work than this is a bug/problem for your specific situation and will have to approach it differently.

  • Business Rules Runtime Prompts

    Hello,
    in my planning application, i have a few business rules that cannot be linket do any dataform. Users must run them directly via "Tools->Business Rules" menu'.
    These Business Rules have Runtime Prompt. User can fill them directly in the text field or navigate the outline using the "Select Member" icon.
    1) Is there a way users can navigate the outline using Alias table? All members have aliases but i see only member names.
    Using Administration Services i use limit to filter variable's members. Again, my outline navigation in "Select Member" icon in Planning is on a non sorted member list. 2) is there a way to avoid the behaviour?
    Planning versione: 9.3.1.1.8 on windows server.
    thank u.
    daniele

    Hi,
    If you need to arrange your outline in proper order you need to go to:
    workspace navigate-> application library ->double click the application and you'll need to edit the application members.
    right click the parent member->reorder children (select the proper order of members)
    you need to deploy the applacation after you have done this. try this if it works
    regards,
    hanson

  • Exporting Business Rules from command prompt

    Hi,
    I'm wondering if there is any way to export Business Rules to XML automatically through command prompt (instead of manually doing it through EAS Console).
    Thanks,
    Ryan

    The documentation is availabe at - http://www.oracle.com/technetwork/middleware/performance-management/documentation/index.html
    Go to Foundation Services > Lifecycle Management Guide > "Using Lifecycle Management Utility"
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Business Rule Run Time Prompts not saving last values entered

    Hello all,
    We've had an SR open with Oracle support for several months in regards to this issue and they have yet to give us any constructive feedback. I'm hoping that someone out there has run into this and maybe found a resolution to the issue. We're running EPM Planning/Calc Mgr 11.1.1.3.04.
    Our Planning end users are trying to "use last entered value" to get the prompts to default to users last used values, in Calc Mgr for a variable which has limits idesc(dim) and is limited to the planning application scope. The variable has no default value set.
    However when they run the rule with a given value in the prompt, when they relaunch the rule later the prompt is not defaulting back to the last used value. We tried to redeploy the rule, just to see if it makes any difference but that seems to have no effect.
    Thanks in advance,
    -Bob

    Spoke to my EPM Analyst who is working this issue with support and has more functional knowledge of what is going on.
    She checked the members/member selection and this did not change the results.
    While working with Oracle support they did try to select "Use Members in Form" and this also did not change the results.
    No matter what they select with the business rules, it is not retaining that value the next time that it is run. The BR's require that you select a value when running so there is no way to use nothing as the default. My apologies if my description was misleading.
    Our analyst has been logging on and off using just her credentials and sees this behavior.
    The Global Variables checkbox for save last value is selected.
    Regards,
    -Bob

  • Business Rule - Invalid prompt error - Security flaw?

    Hello all,
    I have a business rule in which users transfers volume from one cost center to another. The users have write access to sending cost centers and no access to receiving and this is how it is need. When I designed the rule and during the testing the business rule ran fine. I am pretty sure that I ran the rule successfully with a test user setup with a lower access to test the scenario. But now the rule has stopped working. It will work only if I give write acess to user to both sending and receiving cost center.
    The error message is " The following value is not valid for the run time prompt it was entered for: CCName."
    As far as I understand, the security controls access to objects like calc scripts. The access just gives users the rights to view/run the script but what ever is written in script, even if it outside the scope of user access, it will still get executed. I am positive that I have done this before and it worked fine.
    Any ideas as to why this wont work and why the error would start popping up? Nothing has been changed in the system.

    Hi Amit,
    The person running the rule will need to have read access to both cost centers in order to transfer otherwise as you have seen the prompt will be invalid -- when select the prompt you should find the cost center that have no access to do not appear in the prompt itself. If you a value that the prompt does not make available then it will error out.
    If you do not want to provide read access to both cost centers, you may be able to setup a multi-step process with a transfer out by a previous owner and transfer in by the new owner using a temporary cost center both have read access to -- workforce planning uses both (one step and two step) depending on how your security is provisioned.
    Regards,
    -John

  • Business rule, runtime prompt problem

    Hi Gurus,
    We have one business rule which contain run time prompt where global variable assigned to it, when I run the rule form workspace I would able see all numbers from prompt window
    But when I run the same from Excel Smartview, I couldn't able to find all members from prompt windows.
    I was wondering what would be the cause?
    Thnx.

    Hi Amit,
    The person running the rule will need to have read access to both cost centers in order to transfer otherwise as you have seen the prompt will be invalid -- when select the prompt you should find the cost center that have no access to do not appear in the prompt itself. If you a value that the prompt does not make available then it will error out.
    If you do not want to provide read access to both cost centers, you may be able to setup a multi-step process with a transfer out by a previous owner and transfer in by the new owner using a temporary cost center both have read access to -- workforce planning uses both (one step and two step) depending on how your security is provisioned.
    Regards,
    -John

  • Business Rule err The following value is not valid for the run time prompt.

    Hyperion Planning v 9.3.3
    I have created a new BR with 2 local variables (created at the time of the BR), Variables are set as run time prompts. They are created as "Member" (not Members). The BR basically does a calc dim on dense and Agg on Sparce other than the prompt on Entity and Version dimensions. The entity variable has a limit on level 0 of the dimension. The Version variable limits to the input (Submit and Sandboxes)
    The BR is associated in Planning with an input web form. Entity and Version are in the page. Is set to Run on Save and Use members on form.
    If the run time prompts Hide boxes are checked, an empty Prompt pops up with only a Submit button. Click the button and an error comes up: "The following value is not valid for the run time prompt it was entered for:. But it does not indicate what member - just ends in the :.
    The BR will run sucessfully only if the Run-time prompt is not hidden - "Hide" in the BR is unchecked. So the syntax and logic of the BR is correct and security should not be an issue.
    The client wants no prompt. In production we have similar situations in which the BR works with the Web Forms without a prompt.
    What am I doing wrong - I have tried restarting the Planning service and the EAS service.

    My preferred method of doing this is:
    1. In business rule, do not hide the run-time prompts. This makes it easy to validate the business rule as you are building it. I only use Global Variables.
    2. On the form, have business rule set to run on save, use members on data form and hide prompt.
    Check that in the business rule, for the variables (Run-Time prompts), that they are all in use. If not, delete them from the business rule. Are all your variables global? Are some local and some global? This could be the issue.
    Deanna

Maybe you are looking for

  • Computer freezes while in use, then problems occure with rebooting...

    Hi, For some time now, I am facing a strange problem with my Mac. This is my second MacBook and I am a Mac user since 2008. My latest version is a MacBook Pro 13", version mid 2012 with an optical drive, which I have purchased in May 2013. My Mac fea

  • Apple delete tool?

    Does Apple have an Itunes delete tool I can download and use? I tried to install the new version of itunes but the icon turned read and came back with an error stating that it was not installed correctly when I tried to click on it. I have tried to f

  • Elements 8 and 9 in a Mac with OSX?

    I have and use elements 8 in a Mac with OSX.  Just bought a Wacom tablet that comes with Elements 9.  What will happen if i install the included software bundle - will I have two versions of Elements, or a mess?,

  • Master Page pertaining to one bodypage appearing in another bodypage

    Hello All, I am implementing an Adobe form with the following layout. 1. First page consisting of some header information and an item table            For this, I have created a master page MP1 and a new bodypage BP1, with following specifications -

  • OCA example questions on Oracle website

    May I ask those with more experience -- the sample OCA exam questions on the Oracle website (not any purchased practice test, just the 8 example questions) seem more devilish to me than any training materials or books I have read. The code is unforma