PFI to Add a job and update the distribution group

 10 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
BeckyC
Basic Member
Posts: 12
Basic Member

    I am trying to set up a flow to add the IC130 job, and then update the distribution group to a specifically group of users.  Has any one done this before, any help will be appreciated.

    I tried using the following web run URL, but I got a Security Violation error.  I make sure the jobrun.exe has execution permission and the owner is Lawson.

    _PDL=&_TKN=IC130&_EVT=CHG&_RTN=DATA&_LFN=ALL&_TDS=IGNORE&FC=Change&JOB-NAME=ORIC130&USER-NAME=chinb&JOB-DESCRIPTION=ORIC130&COMPANY=5&UPDATE-OPTION=N&THRU-GL-DATE=20101205&RPT-FLD14=Dist Group&RPT-FLD15=OREGION&RPT-FLD18=/bc/bc/bc&_DELIM=%09&_OUT=XML&_EOT=TRUE

     

    BeckyC
    Basic Member
    Posts: 12
    Basic Member
      Here is the web run URL that I tried to use.
      http:///cgi-lawson/jobrun.exe?FUNC=update&JOB=ORIC130&USER=chinb&DSTGRP=OREGON&SAVE=Y
      Rob Conrad
      Veteran Member
      Posts: 73
      Veteran Member
        Hi Becky -

        Are you running the flow with the 'lawson' user as the PF User / IOS User in Designer?

        It sounds like that's the source of the security violation - the 'user' executing the call from within PF doesn't have Security Authority for IC130.

        Make sure the PF User has ACDI access to IC130 (or actually to any form you want to add/modify inside a PFlow).

        Rob
        BeckyC
        Basic Member
        Posts: 12
        Basic Member
          Can you add/update the distribution group using the AGS call??
          If not, do I have the correct syntax in the cgi call to update the distribution group??
          BeckyC
          Basic Member
          Posts: 12
          Basic Member

            I changed the login to use a user ID that I am sure it has access to IC130 and now I am getting the following error.
            Any one know what this error means??

            Posting to URL http://provcon-delta.prov...DSTGRP=OREGON&SAVE=Y
            Post content:
            WebRun3110_result = ERROR: FILE is required with Update function.

            Rob Conrad
            Veteran Member
            Posts: 73
            Veteran Member
              Good...you're past the security violation. There is something wrong with the API call....use the GUI API builder to troubleshoot and verify the call. Apparently the call needs the FILE attribute - which you can select from the API builder. Be CAREFUL with UPDATE, as the IOS Test would update the data. Once you know the IOS API call works, copy it to notepad and paste back into the WebRun object.
              BeckyC
              Basic Member
              Posts: 12
              Basic Member
                Do you know what is the correct URL to add a job with group distribution. The api builder does not include that field when using AGS call. That is why I went down the path using cgi call to update the the job with the distribution group.
                David Williams
                Veteran Member
                Posts: 1127
                Veteran Member
                  Becky - your original AGS call above seems to be missing the product line reference _PDL=
                  David Williams
                  BeckyC
                  Basic Member
                  Posts: 12
                  Basic Member
                    David,
                    I removed the product line on purpose. Other than the product line, do you see any thing else wrong? The Url did added the job ok, but the distribution group wad by passed. Therefore,I tried to use the cgi call to update the job.
                    David Williams
                    Veteran Member
                    Posts: 1127
                    Veteran Member
                      Do you need to create a new report with a distribution group or can you run an existing one? If you can update and run an existing one you can add the distribution group to that. I don't remember doing this before.
                      David Williams
                      BeckyC
                      Basic Member
                      Posts: 12
                      Basic Member
                        I can do both...
                        1) I can create a new report and add the correct distribution group if I could get that working...but no luck.
                        2) Or I can add the report first, and then update the job with the correct distribution group...
                        If any one has done this successfully before, please share your parameters.
                        thanks!!