RE: CRMScript Link Appointment to Document in the BeforeSaveDocument Trigger
Hi James,
Before events will not have an ID yet, i.e. No DocumentId, and you need it to complete the link. This will have to be in the AfterSaveDocument trigger.
When adding a Link to the List array. only fill in the Link EntityName - in this case is "document" (without quotes), and the Link Id is the document ID.
Hope this helps.