luisdavh
Forum Replies Created
-
Hi !
Yes, you are right, it creates the Metadata. However, is only to show, then try to edit and save again, and look for that metadata and I cannot find it. They system auto delete.
I just tried again.
Hi! Thanks for your reply.
After create a Contact, I want to add a custom metadata to the Contact, so I used the actions:
add_action(‘erp_create_new_people’, ‘custom_function’ );
add_action(‘erp_update_people’, ‘custom_function’ );Then, inside of the function I need to add the custom metadata of the Id assigned from our own application, so I used this:
erp_people_add_meta( $wperp_contact_id, ‘id_custom_app_id_user’, 1598433, true );
So, it added to the custom meta, because I saw in the database, however after I refresh the CRM, or go to the contact, it disappear. Looks like a function is deleting.
I have used this function, adding to the Google plus metadata, and it worked fine, no function is deleting.
erp_people_update_meta( $wperp_contact_id, ‘googleplus’, 1598433);
After do that, I can refresh, go to the contact and is not deleted. So, I conclude some function is deleting the metadata. Should I need declare first ?
Thanks for your help !