• Resolved rosewordpressp

    (@rosewordpressp)


    I need to update fields in a custom object but only have the contact id. The custom object has a lookup for contact.

    Is the only way to update fields in the custom object is to create a hook for this?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jonathan Stegall

    (@jonathanstegall)

    @rosewordpressp If the custom object has a lookup for contact, you should be able to pass the contact ID to it. Salesforce stores the ID for lookup fields.

    If that does not do what you need, yes, you’d have to use a developer hook. We don’t have additional functionality for this purpose within the plugin at this time.

    Thread Starter rosewordpressp

    (@rosewordpressp)

    Thanks Jonathan!

    To create the custom object rec just need Accountid and ContactId. But the various ways I tried to set the fieldmaps up in the plugin, I can’t get it to write a custom object rec.

    The custom object doesn’t need an id itself since its create automatically when the record is created

    For fieldmap, I tried

    contact id “no sync” and no salesforce key (field def contact__C)
    account id “no sync” and no salesforce key (field def account__C)

    But just can’t get it to create the custom object record

    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    @rosewordpressp I see. Yes, that would definitely require developer hooks, if it were possible within the current structure of the plugin at all. I expect it is possible, but I certainly haven’t done it or been aware of anyone doing it.

    If you achieve this and the code is public, please post a link here or in GitHub, so we can point to your usage of the hooks as an example.

    I should also say that we’d look at any pull requests for doing this kind of thing within the plugin itself, but it’s unlikely that we’ll pursue doing this anytime soon.

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

The topic ‘Salesforce Related Object’ is closed to new replies.