Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Primary Key defined in Schema's using autopk and key field attribute

nidhiv80682024
Employee
Employee

Hello Team,

Difference between autopk="true" defined for primary and primary key defined via <key><keyfield> attribute. Please let me know the difference between the two?

Best Regards,

Nidhi

1 Accepted Solution
dskhurana
Correct answer by
Employee
Employee

Hi Nidhi,

Autopk="true" is used to declare a unique key.  Read below -

  • autopk (boolean): if this option is activated (autopk="true"), a unique key will be automatically defined. This option may only be used on the main element of the schema. Warning, Adobe Campaign only guarantees that the key generated is unique. It is not guaranteed that the key values are consecutive and incremental.

Thanks

Deepak

View solution in original post

1 Reply
dskhurana
Correct answer by
Employee
Employee

Hi Nidhi,

Autopk="true" is used to declare a unique key.  Read below -

  • autopk (boolean): if this option is activated (autopk="true"), a unique key will be automatically defined. This option may only be used on the main element of the schema. Warning, Adobe Campaign only guarantees that the key generated is unique. It is not guaranteed that the key values are consecutive and incremental.

Thanks

Deepak

View solution in original post