SDOC Version 9.0 Upgrade – Update Required for Generated Document Visibility
Table of Contents
Overview
This article explains the SDOC upgrade change where the generated file's Content Version Id is now stored in SDOC__File_Version_ID__c instead of SDOC__File_ID__c. Any custom code, automation, or logic that references the legacy field must be updated to use the new field to ensure generated documents continue to be processed and displayed correctly.
A new field has been introduced in the SDOC__SDoc__c object in the latest SDOC version:
- New Field: SDOC__File_Version_ID__c
- Previous Field: SDOC__File_ID__c (Still exist in version 9.0)
In previous SDOC versions, when a PDF document was generated (such as an Official Transcript, Unofficial Transcript, or Degree Audit), the generated file's Content Version Id was stored in the field: SDOC__File_ID__c

With the newer SDOC version, the generated file's Content Version Id is now stored in: SDOC__File_Version_ID__c

As a result, the original field SDOC__File_ID__c is no longer populated with the Content Version Id for newly generated documents.
Impact
The Community Portal uses a custom trigger named: redu_SDoc_Visibility_TDTM
This trigger retrieves and displays student-generated documents by using the field SDOC__File_ID__c as a key value.
Since the newer SDOC version now stores the Content Version Id in SDOC__File_Version_ID__c instead, the value in SDOC__File_ID__c becomes null for newly generated documents.
This causes:
- The trigger's key field lookup to fail.
- The generated map to be empty.
- Student-generated documents not to appear in the Community Portal.
Resolution
Update all references of by replacing SDOC__File_ID__c with SDOC__File_Version_ID__c within the custom class.

Component to update:
-
Apex Class
redu_SDoc_Visibility_TDTM
-
Associated Test Class
-
Update all test data and assertions that reference
SDOC__File_ID__c.
-
Update all test data and assertions that reference
Validate after applying the changes:
- Generate a document (Official Transcript, Unofficial Transcript, or Degree Audit).
-
Confirm that the generated
SDOC__SDoc__crecord contains a value inSDOC__File_Version_ID__c. - Verify that the document is successfully displayed in the Community Portal.