is
the value your retrieved in step 1. If you are creating multiple folders,
retrieve a unique primary key value as demonstrated in step 1 for
each folder you want to create. If you are creating a top-level folder,
the value of
is NULL. If you
are creating a sub folder, the value of
is
the unique ID value of the parent folder. The value for MEMBER_ID
is NULL as this field is reserved for future usage. The value for
TYPE is used to identify the object that the folder is associated
with, for instance, e-Marketing Spots. If folders exist for multiple
object types and have the same folder name for the different object
types, use the value of the TYPE column to help identify a folder.
For
example, the following SQL insert statements creates sample top-level
folders.
INSERT INTO FOLDER (FOLDER_ID, STOREENT_ID, MEMBER_ID, PARENTFOLDER_ID, IDENTIFIER, DESCRIPTION, TYPE)
VALUES (YourFolderId, YourStoreId, NULL, NULL ,'EMarketingSpotFolder',
'The folders created for eMarketing spots', 'EMarketingSpotFolder');
INSERT INTO FOLDER (FOLDER_ID, STOREENT_ID, MEMBER_ID, PARENTFOLDER_ID, IDENTIFIER, DESCRIPTION, TYPE)
VALUES (YourFolderId, YourStoreId, NULL, NULL, 'My Favorite Spots',
'MyFavoriteSpots', 'EMarketingSpotFolder');
The following
example SQL insert statements create sample sub folders under the
top-level folders that are created in the previous SQL statements:
INSERT INTO FOLDER (FOLDER_ID, STOREENT_ID, MEMBER_ID, PARENTFOLDER_ID, IDENTIFIER, DESCRIPTION, TYPE)
VALUES (YourFolderId, YourStoreId, NULL, YourParentFolderId,
'JanuarySpots',' eMarketing spots for January', 'EMarketingSpotFolder');
INSERT INTO FOLDER (FOLDER_ID, STOREENT_ID, MEMBER_ID, PARENTFOLDER_ID, IDENTIFIER, DESCRIPTION, TYPE)
VALUES (YourFolderId, YourStoreId, NULL, YourParentFolderId,
'MarchSpots',' eMarketing spots for March', 'EMarketingSpotFolder');
Where
YourParentFolderId is the
YourFolderId value
of the folder you want to set as the parent folder for the folders
you are creating. For this tutorial, use the value for the FOLDER_ID
of the top-level folder named
EMarketingSpotFolder
that
is created with your first SQL insert statement. Replace
YourFolderId for
each of your folders with one of the values you retrieved in step
1. Do not reuse any of these values. For example:
INSERT INTO FOLDER (FOLDER_ID, STOREENT_ID, MEMBER_ID, PARENTFOLDER_ID, IDENTIFIER, DESCRIPTION, TYPE)
VALUES (1, 10001, NULL, NULL ,'EMarketingSpotFolder',
'The folders created for eMarketing spots', 'EMarketingSpotFolder');
INSERT INTO FOLDER (FOLDER_ID, STOREENT_ID, MEMBER_ID, PARENTFOLDER_ID, IDENTIFIER, DESCRIPTION, TYPE)
VALUES (101, 10001, NULL, NULL, 'My Favorite Spots',
'MyFavoriteSpots', 'EMarketingSpotFolder');
INSERT INTO FOLDER (FOLDER_ID, STOREENT_ID, MEMBER_ID, PARENTFOLDER_ID, IDENTIFIER, DESCRIPTION, TYPE)
VALUES (102, 10001, NULL, 1,
'JanuarySpots',' eMarketing spots for January', 'EMarketingSpotFolder');
INSERT INTO FOLDER (FOLDER_ID, STOREENT_ID, MEMBER_ID, PARENTFOLDER_ID, IDENTIFIER, DESCRIPTION, TYPE)
VALUES (3, 10001, NULL, 1,
'MarchSpots',' eMarketing spots for March', 'EMarketingSpotFolder');