Google Sheets Mapping Data: Telling the Agent What to Sync

Modified on Tue, 19 Aug at 6:02 PM

Data mapping is a critical step in configuring the integration between the PortPro TMS and a selected Google Sheet. During this phase, each field from the PortPro TMS—such as "Load Number," "Container Status," or "Customer Name"—must be aligned with the appropriate columns in the chosen Google Sheet worksheet. Proper mapping ensures accurate data placement and effective synchronization.


Understanding Data Mapping


Data mapping serves as a set of instructions for the AI agent. For example, the "Load ID" field in the PortPro TMS may be configured to populate Column A in a Google Sheet, or into a custom-named column such as "Shipment Identifier."


Using the AI-Assisted Mapping Feature


To streamline the mapping process, the Google Sheets AI Agent may offer an AI-assisted mapping feature, which can include:

  • Automatic Suggestions: Based on the existing column headers in the selected Google Sheet worksheet, the agent may suggest field-to-column mappings based on logical matches.

  • Interactive Chat Interface: In some versions, an interactive chat interface may be available where mapping preferences can be described, and the AI will assist in building the configuration.


Note: AI-generated suggestions should always be reviewed manually. Final adjustments can be made to ensure the mappings align with intended outcomes.


The Crucial Role of the Primary Key


As part of the mapping setup, it is necessary to designate one column in the worksheet as the Primary Key. This is a vital requirement.

  • What is a Primary Key?
    A Primary Key is a column that contains a unique value for each row. Examples include "Load Number," "Container ID," or another unique identifier used within the TMS.

  • Why is it important?
    The AI agent relies on the Primary Key to:

    • Uniquely identify each row in the Google Sheet.

    • Accurately update existing records when TMS data changes.

    • Properly insert new rows for new TMS records without duplication.

    • Delete rows in the Google Sheet when corresponding records are removed from the TMS.

    • Enable the polling feature for intelligent record matching.



Important: The column selected as the Primary Key must contain only unique values for all synchronized records. Duplicate values in this column can result in synchronization errors or incorrect updates.


Reviewing and Confirming Mappings


Once all field mappings have been defined and the Primary Key has been selected, a thorough review is essential.

  • Confirm that each TMS field is correctly aligned with the intended column in the worksheet.

  • Verify the Primary Key assignment.

  • After confirming accuracy, save the mapping configuration.



Saving the configuration will typically initiate the data synchronization process between the PortPro TMS and the designated Google Sheet.


Mappable Data:


Load #A unique reference number assigned to the load
CustomerThe name of the customer who requested the load
BranchThe branch of the customer who requested the load
Pick Up LocationThe location where the load will be picked up from
Delivery LocationThe location where the load will be delivered to
Return LocationThe location where the load will be returned to
Hook Chassis LocationThe location where the hook chassis will be located
Terminate Chassis LocationThe location where the chassis will be terminated
Freight HoldFreight status for the load
Custom HoldCustom hold status
Carrier HoldThe carrier hold status of the load
Broker HoldThe broker hold status of the load
Vessel ETAInformation about the vessel transporting the load
Last Free Day
The last day the load can be stored without incurring additional charges
Discharged DateThe date when the load was discharged
Outgate DateThe date when the load exited the gate
Empty DateThe day the container became empty
Ingate DateThe date when the load entered the gate
Ready to Return DateThe date when the load is ready for return
Loaded DateThe date when the load was loaded
ERDThe date when the container is available for return
Cut OffThe date when the load is due to be picked up
Date ReturnedThe date when the load was returned
Container #The unique identifier for the container used in the load
Container SizeThe size of the container used in the load
Container TypeThe type of container used in the load
Container OwnerThe owner of the container used in the load
Chassis #The unique identifier for the chassis used in the load
Chassis SizeThe size of the chassis used in the load
Chassis TypeThe type of chassis used in the load
Chassis OwnerThe owner of the chassis used in the load
Genset #The unique identifier for the genset used in the load
TemperatureThe temperature of the container
RouteThe route of the load
SCACThe SCAC of the load
Tare WeightThe tare weight of the load
HazmatWhether the load is a hazardous material
OverweightWhether the load is overweight
OverheightWhether the load is overheight
LiquorWhether the load contains liquor
HotWhether the load is urgent
GensetThe genset of the load
Street TurnThe street turn of the load
House Bill Of LadingThe house bill of lading of the load
Booking #The booking number of the load
Reference #The secondary reference number of the load
Vessel NameThe name of the vessel transporting the load
VoyageThe voyage number of the load
Purchase Order #The purchase order number of the load
Shipment #The shipment number of the load
Pick Up #The pick up number of the load
Appointment #The appointment number of the load
Return #The return number of the load
Reservation #The reservation number of the load
Seal #The seal number of the load
Master Bill Of LadingThe master bill of lading of the load
Delivery Reference #The delivery reference number of the load
Ready for PickupWhether the load is ready for pickup
Gray Chassis #The unique identifier for the gray chassis used in the load
Gray Chassis SizeThe size of the gray chassis used in the load
Gray Chassis TypeThe type of gray chassis used in the load
Gray Chassis OwnerThe owner of the gray chassis used in the load
StatusCurrent load status (e.g. dispatched, enroute to deliver)
Load TypeType of the load (IMPORT, EXPORT, ROAD, BILL ONLY)
Billing DateThe date when the load was billed
Available DateThe date when the load is available
Pick Up Apt FromThe start time of the load pick up appointment
Pick Up Apt ToThe end time of the load pick up appointment
Delivery Apt FromThe start time of the load delivery appointment
Delivery Apt ToThe end time of the load delivery appointment
Return Apt FromThe start time of the load return appointment
Return Apt ToThe end time of the load return appointment
Per Diem Free DayLast Date to return the container to port for free
Trailer #The unique identifier for the Trailer used in the load
Trailer SizeThe size of the trailer used in the load
Trailer TypeThe type of trailer used in the load
Delivered To Unload DateThe date when the load was delivered to the unload location
Load Completed DateThe date when the load was completed
Current LocationThe last known location of the load
Lift Off Reference #The lift off reference number of the load
PiecesThe commodity and the number of pieces
Delivery Arrival TimeThe time of the delivery arrival for the load
Driver NotesThe notes for the driver of the load
Yard NotesThe notes for the yard of the load
Load NotesThe notes for the load

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article