Automating Siebel Object Export to .SIF Using Batch Script (.BAT File)

🚀 Automating Siebel Object Export to .SIF Using Batch Script (.BAT File)

In Siebel CRM, exporting repository objects manually through Siebel Tools can be time-consuming — especially when handling multiple objects across projects.
To make this faster and repeatable, you can automate SIF exports using a simple .bat file and the Siebel command-line utility siebdev.exe.


🧩 Step 1: Prepare Your Input File

Create an input text file (e.g., ExportInput.txt) that lists the Siebel objects you want to export.
Use the following format:

object_type,object_name,query_expression,file_name.sif

Example:

Business Component,*Account*,,C:\Siebel\exports\Account_BCs.sif Applet,My Applet Name,,C:\Siebel\exports\MyApplet.sif Project,MyProject,,C:\Siebel\exports\MyProject.sif

Notes:

  • No spaces around commas.

  • Use full file paths for .sif files.

  • Wildcards like *Account* are supported.

  • The query_expression field is optional.


⚙️ Step 2: Create the Batch File

Now, create a file called ExportSiebelObjects.bat and place it in your scripts folder.
Update the configuration, credentials, and paths as per your environment.

@echo off REM ---- CONFIG ---- SET SIEBTOOLS_ROOT="C:\Siebel\20.6\Tools\Bin" SET CONFIG_FILE="tools.cfg" SET DATABASE="SampleDB" SET USER="SADMIN" SET PWD="SADMIN" SET REPOSITORY="Siebel Repository" SET INPUT_FILE="C:\Siebel\scripts\ExportInput.txt" SET LOG_FILE="C:\Siebel\logs\Export.log" cd /d %SIEBTOOLS_ROOT% echo Starting Siebel batch export at %date% %time% >> %LOG_FILE% siebdev.exe /c %CONFIG_FILE% /d %DATABASE% /u %USER% /p %PWD% /batchexport "%REPOSITORY%" %INPUT_FILE% %LOG_FILE% IF %ERRORLEVEL% EQU 0 ( echo Export completed successfully at %date% %time% >> %LOG_FILE% ) ELSE ( echo Export failed with exit code %ERRORLEVEL% at %date% %time% >> %LOG_FILE% ) pause

🧠 Step 3: Run and Verify

  1. Run the .bat file from Command Prompt.

  2. Monitor the log file (Export.log) for any errors.

  3. Verify that .sif files are generated in the specified path.


🧰 Tips & Best Practices

  • Run the script on a machine with Siebel Tools installed.

  • Avoid spaces around commas in the input file.

  • Ensure proper permissions to write to export directories.

  • For large exports, schedule during off-hours to reduce load.

  • Use /batchimport for automating imports later.


💡 Conclusion

By using a simple .bat file, you can automate Siebel SIF exports—saving time, improving consistency, and enabling repeatable deployments across environments.

Comments

Popular posts from this blog

Siebel Administration Explored

Siebel Web Service session management

Siebel crm Best Bloggers/Blog sites