How to export Items to File automatically!?

naranara Member Posts: 37
Hi!
I am not very experienced in Navision.
I have a Dataport that can make a file of Content from Items.
My question is the following, is it possible that make some kind automatic job that this Dataport can runs periodically.
Example: creating a file every day.
Some how a RECURRENT JOB, is it possible!?

Comments

  • themavethemave Member Posts: 1,058
    You can use the job scheduler to run dataports

    look under the menu Administration --> It Administration --> job schedular
  • naranara Member Posts: 37
    Hi!
    Thanks for your advise.
    I did it, but how can I define the time/period for runing the job?
    I can't see any options to do that.

    Thanks again
  • themavethemave Member Posts: 1,058
    setup of the schedular is done

    administration --> Application Setup --> job Schedular

    the important item on the management setup form is the

    interval check(sec) this setting is how often the job queue is checked

    the Job Schedular setup is the actual jobs you want to run.
    on the general tab is the frequence you want it to run, it can be day, hour minute, and month. and then the frequence of days, hours, minutes, ect.
    on the scheduling detail tab is where you set what days you want it to run


    on the admin menu for the job schedular management is where you start the job schedular running
  • julkifli33julkifli33 Member Posts: 1,087
    i cannot find the job schedular
    where is it?
    what id?
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    themave wrote:
    setup of the schedular is done

    administration --> Application Setup --> job Schedular
    This is true for NAV 4.0, but starting from NAV 5.0, this has been replaced with "Job Queue". And as the "Job Queue" module runs through the NAS, you cannot schedule the execution of Dataports. Only Codeunits and Reports are supported.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • julkifli33julkifli33 Member Posts: 1,087
    thanks luc
    but i after i compared job scheduler and job queue
    job scheduler can execute dataport, how about job queue?
    i think there are only 2 options.... report and codeunit only?
    how i execute for dataport?
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    julkifli33 wrote:
    i think there are only 2 options.... report and codeunit only?
    That's what I said. Using NAS, there is no way to schedule the execution of Dataports. You'll have to rewrite your dataport using a codeunit and FILE.OPEN, FILE.READ instructions. Or you'll have to use a NAV client which stays open all the time, and use a OnTimer-trigger to execute your dataport from that client.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • julkifli33julkifli33 Member Posts: 1,087
    julkifli33 wrote:
    i think there are only 2 options.... report and codeunit only?
    That's what I said. Using NAS, there is no way to schedule the execution of Dataports. You'll have to rewrite your dataport using a codeunit and FILE.OPEN, FILE.READ instructions. Or you'll have to use a NAV client which stays open all the time, and use a OnTimer-trigger to execute your dataport from that client.

    do you have any idea how to separate delimeter like in dataport?
    example data : 70000,5000,1
    field (customer no,item no,quantity)
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    julkifli33 wrote:
    do you have any idea how to separate delimeter like in dataport?
    Use STRPOS to find the delimiter, and COPYSTR to copy the field value to your variables.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
Sign In or Register to comment.