/// <summary>
 /// To delete the relation of parent record and junction record.
 /// </summary>
 /// <returns>APIResponse class instance.</returns>
 public APIResponse DeleteRelation()
 {
     return(RelatedListAPIHandler.GetInstance(parentRecord, junctionRecord).DeleteRelation());
 }
 /// <summary>
 /// To download attachment of the module related list based on attachment Id.
 /// </summary>
 /// <returns>FileAPIResponse class instance.</returns>
 /// <param name="attachmentId">Attachment Id (Long) of the module related list</param>
 public FileAPIResponse DownloadAttachment(long attachmentId)
 {
     return(RelatedListAPIHandler.GetInstance(parentRecord, this).DownloadAttachment(attachmentId));
 }
 /// <summary>
 /// To delete attachment of the module related list based on attachment Id.
 /// </summary>
 /// <returns>APIResponse class instance.</returns>
 /// <param name="attachmentId">Attachment Id (Long) of the module related list</param>
 public APIResponse DeleteAttachment(long attachmentId)
 {
     return(RelatedListAPIHandler.GetInstance(parentRecord, this).DeleteAttachment(attachmentId));
 }
 /// <summary>
 /// To upload the link as attachment of the module related list based on attachment URL.
 /// </summary>
 /// <returns>APIResponse class instance.</returns>
 /// <param name="attachmentUrl">Attachment URL (String) of the module related list</param>
 public APIResponse UploadLinkAsAttachment(String attachmentUrl)
 {
     return(RelatedListAPIHandler.GetInstance(parentRecord, this).UploadLinkAsAttachment(attachmentUrl));
 }
 /// <summary>
 /// To upload attachment of the module related list based on attachment file path.
 /// </summary>
 /// <returns>APIResponse class instance.</returns>
 /// <param name="filePath">Attachment file path (String) of the module related list</param>
 public APIResponse UploadAttachment(String filePath)
 {
     return(RelatedListAPIHandler.GetInstance(parentRecord, this).UploadAttachment(filePath));
 }
 /// <summary>
 /// To get all attachments of the module related list based on page, perPage and modifiedSince(Header).
 /// </summary>
 /// <returns>APIResponse class instance.</returns>
 /// <param name="page">Starting page index (Integer)</param>
 /// <param name="perPage">Number of records per page (Integer)</param>
 /// <param name="modifiedSince">DateTime to display attachments which are modified after the given input datetime (String)</param>
 public BulkAPIResponse <ZCRMAttachment> GetAttachments(int page, int perPage, String modifiedSince)
 {
     return(RelatedListAPIHandler.GetInstance(parentRecord, this).GetAttachments(page, perPage, modifiedSince));
 }
 /// <summary>
 /// To delete the note of the module relation records based on ZCRMNote class instance.
 /// </summary>
 /// <returns>APIResponse class instance.</returns>
 /// <param name="note">ZCRMNote class instance</param>
 public APIResponse DeleteNote(ZCRMNote note)
 {
     return(RelatedListAPIHandler.GetInstance(parentRecord, this).DeleteNote(note));
 }
 /// <summary>
 /// To get all notes of the module relation records based on sortByField, sortOrder, page, perPage and modifiedSince(Header).
 /// </summary>
 /// <returns>BulkAPIResponse&lt;ZCRMRecord&gt; class instance.</returns>
 /// <param name="sortByField">To sort the records based on this field (String)</param>
 /// <param name="sortOrder">Order preference - CommonUtil.SortOrder {asc/desc} <example>CommonUtil.SortOrder.asc</example></param>
 /// <param name="page">Starting page index (Integer)</param>
 /// <param name="perPage">Number of records per page (Integer)</param>
 /// <param name="modifiedSince">DateTime(ISO8601 format) to display notes which are modified after the given input datetime (String)</param>
 public BulkAPIResponse <ZCRMNote> GetNotes(String sortByField, CommonUtil.SortOrder?sortOrder, int page, int perPage, String modifiedSince)
 {
     return(RelatedListAPIHandler.GetInstance(parentRecord, this).GetNotes(sortByField, sortOrder, page, perPage, modifiedSince));
 }