Community

GraphQL | Add Ability to Update Custom Field using Definition Locator


Comments

2 comments

  • Official comment
    Avatar
    Gilles Benyon-Bell (Edited )

    Hey Steve,

    Have you tried something like:

    mutation cutomfieldsUpdates{
      customFields{
        updateGenericCustomFieldDefinition(input: {
          definitionId:"R2VuZXJpY0N1c3RvbUZpZWxkRGVmaW5pdGlvbjo2",
          definitionLocator:"hash_account_number_four"
          label:"Account Number"
        }) {
          errors {
            label
            message
            value
          }
        }
      }
    }

    However, in terms of being able to actually use the definitionLocator as a unique identifier to update - it’s not intended to work this way and not planned

    Comment actions Permalink
  • Avatar
    Steven Carr

    It's not to update the custom field itself, it's to update the value of a custom field.

    e.g. a custom field on a contact record, using the definitionLocator to set the value on the contact record, rather than having to use the hashed key.

    0
    Comment actions Permalink

Please sign in to leave a comment.