Skip to content

Extra use of a trigger #1

@wizbo27

Description

@wizbo27

You can remove the trigger and simply insert the content version with the id of the record you want to associate it to in the FirstPublishLocationId and Salesforce will setup the content document relationship for you.
Read more here
https://developer.salesforce.com/docs/atlas.en-us.234.0.object_reference.meta/object_reference/sforce_api_objects_contentversion.htm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions