How to Sync Attachments in Xurrent

    This article describes how to synchronize attachments between Xurrent and other systems.

    Attachment Sync: Xurrent supports inline attachments inside notes, attachment with custom fields are not supported. 

    Here is more details about attachment behaviour in Xurrent: Attachment Guide for Xurrent

    Outgoing sync (Xurrent → Remote system)

    To send attachments from Xurrent to the remote system, use this script in your Outgoing Sync:

    replica.attachments = entity.attachments

    Incoming sync (Remote system → Xurrent)

    To receive attachments from the remote system and add them to Request notes, use this script in your Incoming Sync:

    entity.attachments = attachmentHelper.mergeAttachments(entity, replica)

    Filter attachments by size

    You can filter attachments to send only files under a specific size:

    // Send only files under 10MB
    replica.attachments = entity.attachments?.findAll { 
        attachment ->
        attachment.filesize < 10485760
    }


    Have more questions? Ask the community