PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 02/08/2019 9:43 AM by  Bob Canham
Dynamic Date Trigger Variables from Process Trigger
 6 Replies
Sort:
You are not authorized to post a reply.
Page 1 of 212 > >>
Author Messages
PP
Analyst
Private
New Member
(7 points)
New Member
Posts:3


Send Message:

--
02/08/2019 8:20 AM
    I have a Process Trigger created for an Process Flow with 2 date trigger variables. I am trying to schedule this IPA to run everyday. I want the date variables to dynamically populate with the respective date of the day it is running. For example, if it kicks off today the 2 trigger variables should be today's date, tomorrow it should be tomorrow's date and so on and so forth. Attached is the image of what I am trying to do. What should I put in the value of the Trigger variables CheckBeginDate and CheckEndDate so that when I schedule it to run everyday it will pass that day's date to the process flow.
    Attachments
    John Henley
    Private
    Private
    Senior Member
    (9692 points)
    Senior Member
    Posts:3248


    Send Message:

    --
    02/08/2019 8:36 AM
    Don't use trigger variables, but rather just calculate the variables inside the flow based on system date, e.g. using functions like today() or todayDME(), etc.
    Thanks for using the LawsonGuru.com forums!
    John
    PP
    Analyst
    Private
    New Member
    (7 points)
    New Member
    Posts:3


    Send Message:

    --
    02/08/2019 8:54 AM

    Thanks. The reason I am using trigger variables is because sometimes users might want to run it manually for a week aside from the scheduled daily run. 

    David Williams
    Private
    Private
    Veteran Member
    (3136 points)
    Veteran Member
    Posts:1056


    Send Message:

    --
    02/08/2019 9:01 AM
    That's different than what you originally said you wanted to do and John's solution met that requirement. If you want users to enter dates, then give them access to the trigger form and have them enter the dates there.
    David Williams
    PP
    Analyst
    Private
    New Member
    (7 points)
    New Member
    Posts:3


    Send Message:

    --
    02/08/2019 9:15 AM

    Sorry new to Process Flows. Is there no way users can do both with the same process flow?

    Scenario: This will be scheduled to run everyday with today's date. It does its thing without any user input which is what we want 90% of the time. But once in a while users will want to run the same process with different date parameters with user input. Is it not possible?

     

    You are not authorized to post a reply.
    Page 1 of 212 > >>