Primary Key defined in Schema's using autopk and key field attribute | Community
Skip to main content
Adobe Employee
October 9, 2018
Solved

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

  • October 9, 2018
  • 1 reply
  • 3189 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by dskhurana

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

1 reply

dskhurana
Adobe Employee
dskhuranaAdobe EmployeeAccepted solution
Adobe Employee
October 9, 2018

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