Skip to main content
Liaison

Migrating TargetX Data to Custom Fields in WebAdMIT

Overview

Use the TargetX to WebAdMIT data migration process to transfer data from TargetX into custom fields in WebAdMIT. 

This automated process works as follows:

  1. TargetX exports a CSV file via Informatica to a designated folder on the Informatica server.
  2. A Python script running on the Informatica server picks up the CSV file and uses the WebAdMIT API to load the data into the appropriate custom fields in WebAdMIT.
  3. After processing, the script archives the CSV file for data retention and auditing purposes.

Prerequisites

To set up this migration process, make sure the following requirements are in place:

Server and software

  • A Windows-based Informatica server to host the Python script.
  • An account with administrator rights on that server so you can install software and manage services.
  • Notepad++ (or another text editor) installed on the server to edit the Python script and configuration files.
  • Python installed on the same server that will run the script.

Existing integrations and fields

  • An existing CAS (WebAdMIT) → TargetX data integration configured through Informatica.
  • ​The Program ID (For WebAdMIT API) field is included in your existing CAS → TargetX data integration.
  • If Program ID is not currently included, update your WebAdMIT → TargetX integration to add this field; you may need to create a new field in TargetX to store the Program ID (For WebAdMIT API) value.

Environment configuration

Creating Custom Fields in WebAdMIT

Identify the fields you want to migrate from TargetX to WebAdMIT. Then, create custom fields in WebAdMIT that will be the destination for this data.

WebAdMIT User Identities

To access the WebAdMIT API, you need a user account in WebAdMIT that is in the WebAdMIT Administrators Work Group and can access data for all CAS and programs. Once that is in place, complete the following steps in both environments:

  1. Log in to WebAdMIT with your user account.
  2. Click Account on the top right to view your account details.
  3. Click Edit My Account at the top right.
  4. Verify that your account has the correct organization assignments and program assignments.
  5. In the API Key section, click Generate New Key to generate a unique API key for your account.
  6. Click Show Key to view your API Key.
  7. Make note of the API Key, which will be required for the script and retrieving your identity ID.

Retrieving Your User Identity ID

You can retrieve your User Identity ID in two different ways, either with or without Postman.

Retrieving Your User Identity ID with Postman

To use Postman to retrieve your User Identity ID, follow these steps:

  1. Download the WebAdMIT API collection (updated 9/22/25).
  2. Download the WebAdMIT API Prelaunch environment and the WebAdMIT API Production environment (updated 9/22/25).
  3. From your Workspace, select the Collections tab and click Import.

    Import into Postman
  4. Select the WebAdMIT API collection and WebAdMIT API environments from your computer. It will automatically import. You should now see a collection created in the Collections section and an environment created in the Environments section.
  5. Click Environments, then the WebAdMIT Prelaunch environment. Add the API key you generated for your WebAdMIT account to the environment.

    Adding API key to postman
  6. Repeat step 5 for the production environment.
  7. Click Collections, then in the WebAdMIT Custom Fields grouping, select GET User Identities. In the drop-down in the upper right corner, select your WebAdMIT API Prelaunch environment.

    Click send to retrieve User identities
  8. Click Send to retrieve the User Identities.

    Selecting Collections and GET User Identities
  9. Copy the number after “id” for the CAS and cycle you want to make updates and set this value as the “UserIdentityID” variable.

    Variable for UserIdentityID
  10. Make note of the value for cycle. You will need to insert this value into a query (e.g., "2026 - 2027" with spaces surrounding the dash) so the export includes only applicants for the appropriate application cycle.
  11. If the API call fails, it will return a status code of 401. This indicates that the user is not authorized to access the API. Check the user’s permissions in WebAdMIT and verify that the user has the correct organization and program assignments.
Retrieving Your User Identity ID without Postman

To retrieve your User Identity ID without using Postman, follow these steps:

  1. Use CURL or POSTMAN to make the below API calls:
$ curl -n https://api.webadmit.org/api/v1/user_identities \
  -H "x-api-key: <ENTER YOUR API KEY>"
$ curl -n https://prelaunch.webadmit.org/api/v1/user_identities \
-H "x-api-key: <ENTER YOUR API KEY>"
  1. Make sure to use the correct API Keys for PRELAUNCH and PRODUCTION.
  2. A successful API call should generate a status code of 200 with the following example response body:           
{
"href": "/api/v1/user_identities",
"user_identities": [
{
"id": 42,
"type": "Admissions User",
"association": "SOPHAS",
"institution": "Demo University",
"organization": "Demo University School of Public Health",
"cycle": "2014 - 2015"
}
]
}
  1. Make note of the number after "id":. Corresponding to the cycle for which you want your applicant custom fields updated, this is the identity ID and is needed for prelaunch and production. You'll use this in the next section.
  2. Make note of the value for cycle. You will need to insert this value into a query (e.g., "2026 - 2027" with spaces surrounding the dash) so the export includes only applicants for the appropriate application cycle.
  3. If the API call is unsuccessful, then it will return a status code of 401. This means the user is not authorized to gain access to the API. Verify the user’s permissions in WebAdMIT and confirm that the user has the correct organization and program assignments.

Retrieving the IDs of Custom Fields in WebAdMIT

Option 1: Making API Calls to Retrieve Custom Field IDs in WebAdMIT

You can retrieve the the custom field IDs in WebAdMIT either with or without using Postman.

Retrieving Custom Field IDs with Postman

To use Postman to retrieve the custom field IDs, follow these steps:

  1. In Collections, under the WebAdMIT API Data Import grouping and the Custom Fields folder, select GET Program IDs.
  2. Ensure that the correct environment is selected (prelaunch or production) in the upper right corner and click Send.

    Confirm correct environment and click Send
  3. Populate the environment variable with the program ID.

    Adding Program ID to environment variable
  4. In Collections, under the WebAdMIT API Data Import grouping and the Custom Fields folder, select GET Custom Field IDs. Ensure that the correct environment is selected (prelaunch or production) in the upper right corner and click Send to retrieve the custom field IDs.

    Retrieving custom field IDs in Postman
  5. Make note of the number after "id" for each of the custom fields. You will need the IDs to build the export.
Retrieving Custom Field IDs without Postman

To retrieve the custom field IDs without Postman, proceed as follows. Note that the examples below are for WebAdMIT production. To make this code viable for prelaunch, use https://prelaunch.webadmit.org as your base URL.

  1. Make the following API call to retrieve the Program ID associated with the user identity ID:
$ curl -n https://api.webadmit.org/api/v1/user_identities/:<ENTER USER_IDENTITY_ID>/programs/
-H "x-api-key: <ENTER YOUR API KEY>"
  1. Make the following API call to retrieve the custom field IDs:
$ curl -n https://api.webadmit.org/api/v1/user_identities/:<ENTER USER_IDENTITY_ID>/programs/:<ENTER PROGRAM_ID>/custom_fields \
-H "x-api-key: <ENTER YOUR API KEY>"
  1. A successful API call should generate a status code of “200” with the following example response body:           
{

"href": "/api/v1/user_identities/1/programs/42023191739237/custom_fields",

  "custom_fields": [
    {
      "id": 4,
      "label": "Preferred house",
      "field_type": "select",
      "options": [
        "Gryffindor",
        "Hufflepuff",
        "Ravenclaw",
        "Slytherin"
      ]
    }
  ]
}
  1. Make note of the number after "id" for each of the custom fields.

Option 2: Manually Retrieve Custom Field IDs in WebAdMIT

  1. Log in to WebAdMIT prelaunch or production.
  2. Click Custom Fields in the Management section of the Navigation Panel on the left.
  3. From the Custom Fields Manager page, click the pencil icon on the right of your desired custom field.

    WebAdMIT Custom Fields Page, clicking the pencil icon
  4. In the URL of the properties page that opens, you'll find the ID for that custom field.

    Finding the Custom Field ID from the WebAdMIT URL
  5. Repeat this process for each needed custom field to capture their IDs.

Note that custom field IDs are different between prelaunch and production, so you'll need to complete this process for each environment as needed.

We recommend that you create a data mapping document for each cycle to capture the WebAdMIT Custom Field Label, Custom Field IDs, and Custom Field Data Types, as seen in the example below. 

WebAdMIT Data Mapping Example

WebAdMIT Field Label

WebAdMIT Field Type

WebAdMIT Field ID (Prelaunch)

WebAdMIT Field ID (Production)

Number Field Numeric  2271421  2571462 
Date Of Birth Date  2117817  2581764 
Mobile Opt In Yes/No Value 2118714  2297871
Name Text Value 2714171 2237848
Email Text Value 2178171 2267413
First Name Text Value 2215871 2295373
Interview Status Select From List 2281917 2246458

Configuring the TargetX Export

To get data from TargetX to WebAdMIT via Informatica, you need to set up Informatica export tasks.

Here’s a quick walkthrough:

  1. Import the attached zip [Custom Fields.zip] file into your Informatica.
    1. Select the connections for your flat file dropbox and TargetX Salesforce (sandbox or production).
    2. Choose your runtime environment.

Integration_TXxprt_Runtime.png

  1. Test the import and click Import.
  1. Once imported, you will see 4 tasks created (2 mappings and 2 mapping tasks).
    Integration_TXxprt_4TsksCrtd.png
  2. Open the TargetXExport Mapping – this task will create an export out of TargetX with the required fields to import into WebAdMIT.
    1. Click Source and confirm the correct Connection is set.
    2. Click Edit Query.

Integration_TXxprt_EditQury.png

    1. In the query, replace TargetX_SRMb__Application_Fee_Payment_Received__c with whatever field you are wanting to import into WebAdMIT, as well as the WebAdMIT_Program_ID__c field with the WebAdMIT Program ID field from your instance of TargetX.
      1. You may also edit the filter of the export, which starts after the WHERE statement. 

Integration_TXxprt_EditCstmQury.png

  1. Now click Filter and edit the Filter Condition with the WebAdMIT Program ID field from your instance of TargetX.

Integration_TXxprt_EditFilterCndtn.png

  1. Finally, click Target and ensure that all fields are included on the Incoming Fields tab. 

Integration_TXxprt_TargetIncldFields.png

  1. Save this task before closing.
  1. Open the TargetX-WebAdMIT Mapping – this will take the csv exported from TargetX and format/map a file to import into WebAdMIT.
    1. Click Expression and edit the DECODE statement with the field you are wanting to import into WebAdMIT.

Integration_TXxprt_EditDecodeStmt.png

  1. Edit the Cycle and Association (CAS name).
    1. The value of the cycle must correspond with the cycle as it appears in WebAdMIT (e.g., "2026 – 2027", with spaces surrounding the dash).

  2. In the Target, ensure that the following fields are included in Incoming Fields.
    1. Answer
    2. Association
    3. Cycle
    4. TargetX_Base__CAS_Applicant_ID__c
    5. Your WebAdMIT Program ID field

Integration_TXxprt_EnsrIncmngFields.png

  1. On the Target Fields tab, ensure that the fields are in the following order:
    1. TargetX_Base__CAS_Applicant_ID__c
    2. Your WebAdMIT Program ID field
    3. Cycle
    4. Association
    5. Answer
      1. The import script will be looking for a file with the fields in this specific order.
      2. If you need to change the order, check the field you want to move and the arrows next to the Find field will become active.

Integration_TXxprt_FieldOrder.png

e.    Save this task before closing.

    1. Open the TargetX-WebAdMIT Mapping Task
      1. In Runtime Options, open Advanced Options and edit the Post-Processing Commands based on your Informatica folder path; leave the file names as is.
        del YOUR INFORMATICA PATH\dropbox\SfCustomFieldsExport.csv* && copy /b YOUR INFORMATICA PATH \dropbox\header.csv + C:\Informatica\GradCAS\dropbox\data.csv YOUR INFORMATICA PATH \dropbox\TargetXToWebAdmit.csv && del YOUR INFORMATICA PATH \dropbox\data.csv && move /Y " YOUR INFORMATICA PATH \dropbox\TargetXToWebAdmit.csv" "DRIVE (i.e. C:)\TargetXToWebAdmit\"
      2. Save this task before closing.

    Python Installation

    You'll need to install Python on the server that will be hosting the script. To do so:

    1. Download the software from https://www.python.org/downloads/.
    2. Download the latest release for Windows (based on whether the server is a32 bit or 64 bit).
    3. Once downloaded, run the Python install file as an administrator.
    4. This opens an installation window:
    1. TargetX Export_Python Install.png
    1. Click Customize Installation to display Optional Features:
    1. TargetX Export_Python Opt Ftrs.png
    1. Ensure that pip is selected.
    2. The next page displays advanced installation options:
    1. TargetX Export_Python Adv Opt.png
    1. Select the path to install Python and click Install.
    2. Once Python is successfully installed, restart the server.
    3. Once restarted, navigate to your system environment variables to ensure Python is appended to the end of the PATH variable. If it is not, you will need to add it. The path should be the path to the Python executable, such as C:\Users\username\AppData\Local\Programs\Python\Python314
    4. To test that your Python installation was successful and added successfully to your PATH variables, run Command Prompt as an administrator, type python, and click enter:
    1. TargetX Export_Python Cmd Prmpt.jpg
    1. If the response is similar to “Python is not recognized as an internal or external command,” it could mean that the PATH variable is not correctly set up or that your Python was not correctly installed.

    Editing the Python Script

    1. Download the Python script and config.json file from Integration Help Center and place it on the Informatica server.
    2. On the server, create a folder called TargetXToWebAdMIT.
    3.  Create a sub-folder called Archive.
    4. Place the Python script and the config.json file in the TargetXToWebAdMIT folder.
    5. The CSV file from Infomatica must also be dropped in the TargetXToWebAdMIT folder.
    6. Edit the config.json file in the TargetXToWebAdMIT folder using Notepad++ or Notepad and make the following changes:
      • Change the Api_key value to your API key for prelaunch or production.
      • Change the url_link value to prelaunch or production WebAdMIT url.
        • PRELAUNCH URL-https://prelaunch.webadmit.org
        • PRODUCTION URL-https://api.webadmit.org
      • Change Working_dir to the full directory path of your TargetXToWebAdMIT folder. Note that the directory separations use  "/".
      • Set File_name to the name of the incoming CSV file from TargetX. This is the FinalFileName.csv that was added as a part of the post processing commands in your Target To WebAdMIT task.

    Creating the Python Executable

    Edit section

    Next, you'll need to create a Python executable that will run the script. To do so:

    1. Open Command Prompt as an administrator.
    2. Run the following command: pip install pyinstaller
      • If you get an error message that pip is not recognized as an internal or external command, this means your Python installation did not include the pip package.
      • The article How to Install PIP on Windows provides guidance on installing pip.
      • Once installed, type pip –version in Command Prompt to verify if the installation was successful.
      • If pip installation was successful, rerun the pyinstaller command: pip install pyinstaller

    3. Run the following command to ensure the requests module gets installed correctly: pip install requests
    4. If pyinstaller and requests installation was successful, in Command Prompt, navigate to the TargetXToWebAdMIT directory.
    5. Type the following command: pyinstaller --onefile decisions.py and press enter.
    6. This command converts the script into an executable.
    7. The executable is found in the \TargetXToWebAdMIT\dist\ folder.
    8. Copy the config.json file from the TargetXToWebAdMIT folder to \TargetXToWebAdMIT\dist\ folder.

    Testing the Executable

    Edit section

    The following should be completed for prelaunch Outcomes to prelaunch WebAdMIT:

    1. Navigate to the \TargetXToWebAdMIT\dist\ folder in Windows Explorer and double-click decisions.exe to open a running Command Prompt window.
    2. If the Command Prompt window closes immediately after opening, then there is an issue with your Python code or the config.json file. In that case, navigate to the TargetXToWebAdMIT\dist folder and check the decisions.log file. If this file shows HTTP connection errors, this could mean that your API key, URL, or Cycle is incorrect.
    3. Edit the config.json file to make sure the file name, directory paths, API keys, base URL, and cycle are correct.
    4. Once verified, run the executable again.
    5. If the executable continues to run, this means the JSON file is correct.
    6. Run the Informatica tasks configured for this process to drop a csv file into the TargetXToWebAdMIT folder. The executable will pick up, process, and archive the file.
    7. Navigate to the Archive folder under TargetXToWebAdMIT\Archive folder. You will see a timestamped_yourfilename.csv file.
    8. Open the file, and you will see HTTP status codes printed in each row.
    9. Successful loads would have a status code of 200, while unsuccessful loads would have a status code of 404 or 422.
    10. The 404 status code could indicate several issues, including the Decision ID not existing in WebAdMIT, incorrect authentication methods (api_key), or CASID not found in WebAdMIT.
    11. If error 422 is thrown, the applicant has already had a local status associated with their record.
    12. Note that Decision Codes in WebAdMIT can only be updated via API for applicants that do not already have a Local Status associated with them.
    13. If all rows show a 200 for each field, then the next step is to check prelaunch WebAdMIT to ensure the decision data was correctly applied in WebAdMIT.If all looks good, then close the running executable command prompt window and delete the archived file.

    Setting the Python Executable as a Windows Service

    1. To keep the script running indefinitely, the following steps are required to set up the Python executable as a windows service. For this purpose, you'll need to install a tool called NSSM (Non-Sucking Service Manager).
    1. On your web browser on the Windows server meant to host the script, navigate to https://nssm.cc/download
    2. Download the latest release of NSSM which is nssm 2.24.
    3. This should download a zip file called nssm-2.24.zip.
    4. Extract the zip file in the TargetXToWebAdMIT folder.
    5. Open Command Prompt as an administrator, and within Command Prompt,  navigate to TargetXToWebAdMIT\nssm-2.24\win64 (or win32, depending on your Windows server). Run the command: cd PATH\TargetXToWebAdMIT\nssm-2.24\win64.
    6. Run the following command by replacing the paths to your Python executable and python (.py) file. Name your service so it is easy for the CAS you are working with to recognize, for example:
    • nssm install "TargetXToWebAdMIT" "PathTo\dist\main.exe" "PathTo\main.py"
    1. If the service is successfully installed, it displays the following message in command prompt Service " TargetXToWebAdMIT" installed successfully!
    2. Open services.msc in Windows as an admin and locate the TargetXToWebAdMIT service.
    3. Start the TargetXToWebAdMIT service.

    Testing the TargetXToWebAdMIT Service

    1. To test the service, navigate to Testing the executable and perform steps 6 to 14.
    2. If the test is successful, stop the TargetXToWebAdMIT service in services.msc and delete the archived file.
    3. After all testing is completed and preparations are being made to move to production then perform the following steps to remove the service:
      • Open Command Prompt as an administrator, and within Command Prompt navigate to TargetXToWebAdMIT\nssm-2.24\win64 (or win32, depending on your Windows server).
      • Run the following in Command Prompt: nssm remove “TargetXToWebAdMIT”
      • A dialog will open to ask if you want to remove the service, click Yes, and it should say the service was successfully removed.
      • Open services.msc as an admin and refresh the services to ensure the TargetXToWebAdMIT service is not in the list of services.

    Moving the Script to Production

    1. After successful testing in prelaunch:
    1. Navigate to the TargetXToWebAdMIT folder in Windows Explorer.
    2. Delete the following file and folders:
      • Build folder.
      • Dist folder.
      • Main.spec file.
    3. Update config.json file found in the TargetXToWebAdMIT folder with production API keys and URL.
    4. Save the file.
    5. Perform the steps found in Creating a Python executable section.
    6. Perform the steps found in Setting the Python executable as a Windows Service section.
    7. Start the TargetXToWebAdMIT service.
    8. On the Informatica side, edit the mappings for Contact Export Mapping, Application Export Mapping, and the TargetX-WebAdMIT Mapping by changing the Source connection to be TargetX production. Make sure to save the mappings after this change and review the mapping tasks for each to ensure the change to the production TargetX connection is reflected.
    9. Edit the header.csv file found in the dropbox location and change the custom field IDs to be the ones for production WebAdMIT.
    10. Have Informatica drop a CSV file to the TargetXToWebAdMIT folder.
    11. Here you could run a smoke test by running each of the informatica tasks manually and filtering out just one applicant. If the one-applicant load succeeds, run a manual test for all applicants before adding the tasks to your linear flow.
    12. Check the archived file for status codes for a successful load.
    1. Cycle Over Cycle Changes
    1. Cycle over cycle, review your custom fields in WebAdMIT and make note of any new custom fields that need to be added.
    2. If new custom fields are added, make sure you follow the steps in Retrieving the Ids of Custom Fields in WebAdMIT and configure your Informatica export to match accordingly.
    3. Edit the filter conditions for the Application mapping as well as the TargetX-WebAdMIT mapping to match filters required for the new cycle. These would be stored in the query options section for each of the sources for the mentioned mappings.
    4. Change the cycle value in the TargetX to WebAdMIT mapping expression:
    1. TargetX Export_Cyc over Cyc.png
    1. Stop the TargetXToWebAdMIT service.
    2. Edit the config.json file in your TargetXToWebAdMIT and \TargetXToWebAdMIT\dist folders.
    3. Update the filename if you plan to use a new filename for the new cycle in the config.json file. 
    4. If you plan to use a completely new WebAdMIT user for the new cycle, change the API Key in the config.json file.
    5. Save the config.json file in the TargetXToWebAdMIT and \TargetXToWebAdMIT\dist folders with the changes.
    6. Edit the header.csv file in the dropbox folder and change the Custom Field IDs, to the new cycle custom field IDs and save the file.
    7. Start the TargetXToWebAdMIT service.

    Cycle Over Cycle Changes and Special Considerations

    Review the following information regarding maintaining this process from cycle to cycle, and other considerations.

    Non-Overlapping Cycles

    It is important to note that Decision IDs in Prelaunch and Production WebAdMIT change cycle to cycle. In preparation for the next cycle, complete the following steps:

    1. Revisit the Retrieving the Decision IDs in WebAdMIT section to grab the new Decision IDs.
    2. Update the Informatica Answer DECODE statement with the new Custom Field IDs.
    3. In the Informatica expression, update the Cycle value to the new years (e.g., "2026 – 2027", with spaces surrounding the dash).
    4. The TargetXToWebAdMIT service may continue to run; no changes are needed to the script or the config file.

    Overlapping Cycles

    If a new cycle opens while the previous cycle is still active, updates to the Informatica expressions will be required. Complete the following steps to add a new cycle:

    1. Revisit the Retrieving the Decision IDs in WebAdMIT section to grab the new Decision IDs.
    2. Update the Informatica Answer DECODE statement with the new Custom Field IDs. Additionally, you will need to add the cycle so the expression knows which set of IDs to use.
    3. In the Informatica expression, update the Cycle value to the new years (e.g., "2026 – 2027", with spaces surrounding the dash). Additionally, you will need to use TargetX_SRMb__Start_Term_Year__c to the expression to indicate which cycle should be used.
    4. Add a schedule to the new cycle’s taskflow that runs at a different time than the existing taskflow. The TargetXToWebAdMIT service is looking for a specific file name, and while both can export the same file name, they cannot be on the SFTP at the same time without overwriting each other.
    5. The TargetXToWebAdMIT service may continue to run; no changes are needed to the script or the config file.

    Multiple CASs

    If you have multiple CASs that need this script in WebAdMIT, you may run the same script with different exports that have the appropriate information configured. The file name will need to be the same across all exports. Have the exports run to the SFTP at different times.

     

    • Was this article helpful?