Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter luisdavh

    (@luisdavh)

    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.

    Thread Starter luisdavh

    (@luisdavh)

    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 !

Viewing 2 replies - 1 through 2 (of 2 total)