When and If, Does the 'version' in ContentVersion Change?

Salesforce Asked by Carl-Johan Beurling on September 2, 2020

I’m using the lightning-file-upload component to upload files (wow).

My question is: is it safe to add a custom lookup relationship on the ContentVersion object?

I guess I don’t really understand the ‘version’ part of the name. Since we have to use isLatest = true when we query, does that mean the contentVersion changes on its own and therefore the custom relationship isn’t reliable, in the way, that a new version would be created and that record wouldn’t have the correct relationship?

One Answer

It's safe to put a Lookup field on the ContentVersion object, as the Lookup value will automatically be set on a new version from the previous version

If the Lookup value is changed on the latest version, it will only affect the latest version

Answered by Instread on September 2, 2020

Add your own answers!

Related Questions

How to truncate a string to a specific length if it is longer?

4  Asked on February 10, 2021 by imajmdf


Update contact activity in Journey builder

1  Asked on February 10, 2021 by mary-jon


Hide iframe url

1  Asked on February 8, 2021 by cloudy-ritz


How can we add placeholder for lightning:InputField?

1  Asked on February 6, 2021 by aakash-poudel


LWC OSS Build Command

1  Asked on February 3, 2021 by scott-morrison


%%_PreHeader%% Personalization String

1  Asked on February 2, 2021 by victorcorey


Marketing cloud new Transactional Messaging API

1  Asked on January 30, 2021 by martijn-e


Can’t send to a list in marketing cloud?

1  Asked on January 30, 2021 by 4kaudio


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP