Delete attributes from native schema | Community
Skip to main content
wkt85768776
Level 3
November 29, 2017
Solved

Delete attributes from native schema

  • November 29, 2017
  • 17 replies
  • 13999 views

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.
Best answer by vraghav

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
November 29, 2017

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

david--garcia
Level 10
November 30, 2017

I support Vipuls approach.

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

wkt85768776
Level 3
November 30, 2017

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

david--garcia
Level 10
November 30, 2017

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

wkt85768776
Level 3
November 30, 2017

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

david--garcia
Level 10
November 30, 2017

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.

wkt85768776
Level 3
November 30, 2017

ok thank you

wkt85768776
Level 3
December 5, 2017

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

florentlb
Level 10
December 5, 2017

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

wkt85768776
Level 3
December 5, 2017

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.