Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Richard Rowles 1 post 71 karma points
    Jul 26, 2019 @ 11:25
    Richard Rowles
    0

    Archetype Update Value of File Property

    Hi,

    I'm trying to import data into an existing site. In each page, I have an archetype, and for that archetype I'm trying to programmatically update a property to a new but existing file listed in media.

    I've collected the new file....

    IPublishedContent newFile = _uh.TypedMedia(newFileID);

    Can anyone point me in the right direction to change the value of the property?

    I know once I've done this I need to serialise the archetype and save it, but how do I update the property with the new file?

    TIA. Rich

Please Sign in or register to post replies

Write your reply to:

Draft