Creating AGS call and Web run to change parameter on a form

 8 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Jeanne
New Member
Posts: 2
New Member

    Hello,

    I am trying to create a process flow that uses an AGS call to call a form and make a change on a job.  I currently have this syntax ( I have asterisked out my production line name):

    _PDL=****&_TKN=RW100&_EVT=CHG&_RTN=DATA&_LFN=ALL&_TDS=IGNORE&FC=Change&JOB-NAME=ISCR6TEST&USER-NAME=lawsonerp&REPORT-OPTION=1&ACCT-PERIOD=2&FISCAL-YEAR=C&REQUEST-NAME=ISCR6&_DELIM=%09&_OUT=TEXT&_EOT=TRUE

    I am trying to change the ACCT-PERIOD to "2" and when I run this, it calls the form, runs the program ( as I am using the following WebRun:

    FUNC=run&USER=lawsonerp&JOB=ISCR6TEST&OUT=text

    but it does not change the accounting period.

    can anyone clue me in on what I am doing wrong?

    David Williams
    Veteran Member
    Posts: 1127
    Veteran Member
      Shouldn't that be REQUEST-NAME1? That's the only thing that didn't look correct to me.
      David Williams
      Jeanne
      New Member
      Posts: 2
      New Member
        That was it David! Thanks so much!
        Jen Wang
        Basic Member
        Posts: 5
        Basic Member
          This processflow run perfectly on PF Designer, but it dose not update the parameters and submit the job to run on PF Scheculer. Even the time stamp has changed to the scheduled run time on PF scheduler, but we don't see the job in completion job screen in Lawson.

          Any ideas?

          The flow is Start -> ags node (update the paramerters) -> webrun (jobrun to submit the job) -> end

          David Williams
          Veteran Member
          Posts: 1127
          Veteran Member
            Send me your flow and I'll look at it.
            David Williams
            Jen Wang
            Basic Member
            Posts: 5
            Basic Member
              Just emailed you the process flow. Thanks so much to look at it for us.
              Jen Wang
              Basic Member
              Posts: 5
              Basic Member

                Somehow the flow just won't do anything on the PF scheculer.  

                Joe Haveman
                Advanced Member
                Posts: 31
                Advanced Member
                  Jen,

                  First, I don't know anything about this particular report. Second, the FC value is usually a single character like A or C. Third, use the AGS builder by clicking the Build button inside the AGS object. Use the Test API button on the last tab and it will help you build a correct ags call. (You will probably have to go through the motions of selecting the correct screen and fields on the first tab or you get a VB error.)

                  Joe
                  KK - Infor
                  Veteran Member
                  Posts: 61
                  Veteran Member
                    Jen,
                    Try hard-coding the ProductLine in the AGS Call/ WebRun. I have seen that the appProdline doesn't populate in some cases for scheduled PFlows.
                    Do you see a WU created when the flow is scheduled? Please share the WU logs if you see it.

                    KK