Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


This page explains how to import data in the Reservation object using a CSV file.


Warning

Make sure that you do not attempt to write to the following fields, as these fields are set automatically by Booker25:
B25__Start_Date__c, B25__End_Date__c, B25__Local_Start_Time__c, B25__Local_End_Time__c


To import the reservation times correctly, there are two options:
  1. Use B25__StartLocal__c and B25__EndLocal__c, and use your user's timezone for each field
  2. Use B25__Start__c and B25__End__c, and use the target Resource's timezone for each field

The first option is recommended if you are importing data for Resources in multiple timezones, because then you can apply the same timezone to every time field. If the Reservations you are importing are all in the same timezone as your user, then it does not matter which option you choose.


Info

If you are not familiar with the date formats accepted by Salesforce's Data Loader, please refer to this article: https://developer.salesforce.com/docs/atlas.en-us.dataLoader.meta/dataLoader/supported_data_types.htm

Example Scenario

We have two Resources in two different timezones: Moscow (+3:00) and Bangalore (+5:30).

We are importing two Reservations, one for each Resource. They both start at noon, and they both last one hour.

If we use the first option, we will need to use the user's timezone. Let's say you are located in Amsterdam with timezone +2:00.

The resulting CSV will look something like this:

B25__Title__cB25__Resource__cB25__StartLocal__cB25__EndLocal__c
Reservation 1 (Moscow)<Moscow record Id>2019-09-03T12:00:00.000+2002019-09-03T13:00:00.000+200
Reservation 2 (Bangalore)<Bangalore record Id>2019-09-03T12:00:00.000+2002019-09-03T13:00:00.000+200

If we use the second option, our CSV will look something like this (note the different column headers for the time fields):

B25__Title__cB25__Resource__cB25__Start__cB25__End__c
Reservation 1 (Moscow)<Moscow record Id>2019-09-03T12:00:00.000+3002019-09-03T13:00:00.000+300
Reservation 2 (Bangalore)<Bangalore record Id>2019-09-03T12:00:00.000+5302019-09-03T13:00:00.000+530
The advantage of the first option is that the Resource's timezone does not matter. All the times have the same timezone.
The advantage of the second option is that it does not matter who runs the import, the times will always be correct.


Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@101b6
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ( "data-import" , "import" ) and type = "page" and space = "BPD"
labelsdata-import import

Page Properties
hiddentrue


Related issues




Panel
titleOn this page

Table of Contents

...