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

How to setup links integrity?

Avatar

Avatar
Validate 10
Level 2
yetanother_andrey
Level 2

Likes

18 likes

Total Posts

31 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 2
yetanother_andrey
Level 2

Likes

18 likes

Total Posts

31 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
yetanother_andrey
Level 2

26-07-2018

I have these 2 schemas:

<srcSchema entitySchema="xtk:srcSchema" img="xtk:schema.png" label="Consent Log"

           name="consentLog" namespace="li" xtkschema="xtk:srcSchema">

<element autopk="true" label="Consent Log" name="consentLog">

    <attribute label="Customer Id" length="36" name="customerId" type="string"/>

    <element label="Customer" name="customer" target="li:customer" type="link">

      <join xpath-dst="@customerId" xpath-src="@customerId"/>

    </element>

    <element label="Consent" name="consent" target="li:consent" type="link"/>

  </element>

</srcSchema>

<srcSchema entitySchema="xtk:srcSchema" img="xtk:schema.png" label="Trial Registration Consent"

           name="trialRegistrationConsent" namespace="li" xtkschema="xtk:srcSchema">

  <element autopk="true" label="Trial Registration Consent" name="trialRegistrationConsent">

    <element label="Consent Log" name="consentLog" revCardinality="single" revIntegrity="own"

             target="li:consentLog" type="link"/>

    <element label="Trial Registration" name="trialRegistration" target="li:trialRegistration"

             type="link"/>

  </element>

</srcSchema>

What I want from them is the following: If someone (Workflow, User manually, any JS code) will delete item from li:consentLog I want corresponding item to be deleted from li:trialRegistrationConsent.

This doc (https://docs.campaign.adobe.com/doc/AC/en/CFG_Schema_Reference_Database_mapping.html#Links-_relation... ) says I need revIntegrity to be "own". But it doesn't work or I don't understand the doc. Help pls.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 250
Level 10
pablo_rosero1
Level 10

Likes

81 likes

Total Posts

348 posts

Correct Reply

77 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile

Avatar
Validate 250
Level 10
pablo_rosero1
Level 10

Likes

81 likes

Total Posts

348 posts

Correct Reply

77 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile
pablo_rosero1
Level 10

27-11-2018

Hi Andrey,

Here you can find Examples of revIntegrity.

I hope this helps!

All the best,

Pablo

Answers (2)

Answers (2)

Avatar

Avatar
Validate 10
Level 2
yetanother_andrey
Level 2

Likes

18 likes

Total Posts

31 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 2
yetanother_andrey
Level 2

Likes

18 likes

Total Posts

31 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
yetanother_andrey
Level 2

27-07-2018

Hi Adhiyan,

Nope. when deleting li:consentLog li:trialRegistrationConsent is still not deleting.

Avatar

Avatar
Boost 50
Employee
Adhiyan
Employee

Likes

239 likes

Total Posts

342 posts

Correct Reply

124 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 100
View profile

Avatar
Boost 50
Employee
Adhiyan
Employee

Likes

239 likes

Total Posts

342 posts

Correct Reply

124 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 100
View profile
Adhiyan
Employee

26-07-2018

Hi Andrey,

Can you try and use integrity="own" instead of revIntegrity and see if the deletion of source and target works correctly.

Regards,Adhiyan