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

Using Integer as Identification Key

mtrapiello
Level 2
Level 2

Hello,

 

I have a custom resource that contains Order information, and i want to use order id (integer) as Identification Key in Campaign Standard. Is it possible to use a custom key of type integer as Identification Key with no automatic primary key selected?

 

I have tried to do so, but when i try to publish, i get an error saying that i need to set a dynamic default value in my custom key (which is not possible for an integer)

 

Thanks!

 

Mario Trapiello

Campaign Standard key
1 Accepted Solution
SatheeskannaK
Correct answer by
Community Advisor
Community Advisor

Hi @mtrapiello,

 

Yes, it's possible to use order id as primary key. Reason you're getting error, I believe when you select authorize creating/duplicating option on "Actions on data section" under screen definition. Uncheck both options and try publishing again.

SatheeskannaK_0-1594611073930.png

Thanks, Sathees

 

View solution in original post

2 Replies
SatheeskannaK
Correct answer by
Community Advisor
Community Advisor

Hi @mtrapiello,

 

Yes, it's possible to use order id as primary key. Reason you're getting error, I believe when you select authorize creating/duplicating option on "Actions on data section" under screen definition. Uncheck both options and try publishing again.

SatheeskannaK_0-1594611073930.png

Thanks, Sathees

 

View solution in original post

mtrapiello
Level 2
Level 2

Hello @SatheeskannaK ,

 

This solved my problem!I have been able to publish my resource with any issue.

 

Thanks for your help !

 

Mario