Skip to main content
wkt85768776
Level 3
Nov 29, 2017 2:09 PM UTC
Solved

Delete attributes from native schema

Hello, i would like to know if i can delete an attribute from a native schema of AdobeCampaign. I need to delete some but i dont know how does it will affect neolane or the DB. I will also need to know how to do it .

thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
vraghav
vraghavAccepted solution
Adobe Employee
Nov 29, 2017 10:51 PM UTC

To delete an existing attribute on factory schemas follow the steps outlined here

  • Extend the scehma
  • Define the same attribute again in this extended schema (name must match) and then define _operation="delete"
  • Save the schema and update database structure.

<attribute name="registrationToken" _operation="delete"/>

Should you do this?

I would not recommend it as you never know what can break in the system when deletion of an attribute happens.

Regards,
Vipul

17 replies

vraghav
Adobe Employee
vraghavAdobe EmployeeAccepted solution
Adobe Employee
Nov 29, 2017 10:51 PM UTC

To delete an existing attribute on factory schemas follow the steps outlined here

  • Extend the scehma
  • Define the same attribute again in this extended schema (name must match) and then define _operation="delete"
  • Save the schema and update database structure.

<attribute name="registrationToken" _operation="delete"/>

Should you do this?

I would not recommend it as you never know what can break in the system when deletion of an attribute happens.

Regards,
Vipul

Translate
david--garcia
Level 10
Nov 30, 2017 11:07 AM UTC

I support Vipuls approach.

@OP what are you trying to achieve by deleting OOTB attributes?

Translate
https://www.linkedin.com/in/david-garcia-uk/ | https://martech.network
wkt85768776
Level 3
Nov 30, 2017 11:14 AM UTC

im trying to delete some attributes of mobile app in a native schema, but i cant achieve that.

i tried to use  <attribute name="registrationToken" _operation="delete"/>  but i cant update in the DB

Translate
david--garcia
Level 10
Nov 30, 2017 1:01 PM UTC

Why do you need to delete it? this is required for push notifications to work.

Translate
https://www.linkedin.com/in/david-garcia-uk/ | https://martech.network
wkt85768776
Level 3
Nov 30, 2017 1:23 PM UTC

i dont need them in my new instance for now. thats why i want to delete them.

Translate
david--garcia
Level 10
Nov 30, 2017 1:42 PM UTC

There are hundreds of fields that are not used most of the time on Adobe Campaign and will probably never get populated, just ignore them. You may end up breaking some kind of relationship between tables or get errors on the console as these fields are referenced by input forms and other features.

Translate
https://www.linkedin.com/in/david-garcia-uk/ | https://martech.network
wkt85768776
Level 3
Nov 30, 2017 2:03 PM UTC

ok thank you

Translate
wkt85768776
Level 3
Dec 5, 2017 1:59 PM UTC

its not the correct answer, I dont know why you tag it as correct.....

Translate
florentlb
Level 10
Dec 5, 2017 2:07 PM UTC

Hi,

This is the most advisable answer that you'll get from anyone, including from Adobe. You can also try what Vipul suggested but doing so is not advised.

That's why it is marked as the right answer.

Florent

Translate
wkt85768776
Level 3
Dec 5, 2017 2:17 PM UTC

Trying what Vipul suggested is not posible , database doesnt allow to update  the push delete_operations atributes in the schema.

David_garcia gaves an advice not an answer to the problem.

Im waiting for Adobe's answer, thanks.

Have a nice day.

Translate