Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Seeking script syntax for running Sales Order Import 4010000

(0) ShareShare
ReportReport
Posted on by

I am trying to nail down the exact syntax to call the Sales Order Import (4010000) routine from the command line for a specific input .dta comma-delimited text file. I also have the configuration file for it ready to go.  

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Seeking script syntax for running Sales Order Import 4010000

    Thank you Carolyn, that was very helpful.

    Two notes about the process I discovered: on the command line, you must NOT surround file and path names with quotes, otherwise it will fail.

    Also, that .data in dta files must not surround text fields in quotes, otherwise errors will be logged.  

  • karmar Profile Picture
    195 on at
    RE: Seeking script syntax for running Sales Order Import 4010000

    Thanks Carolyn, I will be doing some test next week with TI. First need to build the csv file properly...

  • Carolyn Kolpien Profile Picture
    on at
    RE: Seeking script syntax for running Sales Order Import 4010000

    Hi Facerone,

    When you use TI to import into a data entry screen, the items imported are automatically saved into a batch unless there are errors.  So no intervention is needed to save the batch if you have a successful import.

  • karmar Profile Picture
    195 on at
    RE: Seeking script syntax for running Sales Order Import 4010000

    Carolyn

    I have a similar need, more actually towards the lines of creating sales orders automatically using a scheduled tasks/process. I have no problem having the order info in a csv file. Will the process you describe  above require user intervention to 'save' the order? (I am trying to eliminate manual processing, need the order created and saved, so process manager takes it from there).

    thanks for any info on this subject

  • Carolyn Kolpien Profile Picture
    on at
    RE: Seeking script syntax for running Sales Order Import 4010000

    Hi BOOMER57,

    Here is an example of a script to run TI on the sales order screen from a command line;

    S:\OM\4010000.exe [TI]TM=2 [TI]TC=c:\DATA\40100.ctl [TI]TD=c:\DATA\salesorder.dta [TI]TO=c:\DATA\Log.log [TI]TL=1 [TI]Minimize=N

    You can adapt it to the names of your files.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,099 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,880 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans