Esempio n. 1
0
 /// <summary>
 /// To delete the attachment of the notes based on attachment Id.
 /// </summary>
 /// <returns>APIResponse class instance.</returns>
 /// <param name="attachmentId">Attachment Id (Long) of the notes</param>
 public APIResponse DeleteAttachment(long attachmentId)
 {
     return(ZCRMModuleRelation.GetInstance(ZCRMRecord.GetInstance("Notes", id), "Attachments").DeleteAttachment(attachmentId));
 }
Esempio n. 2
0
        /// <summary>
        /// To get the record based on record Id of the module.
        /// </summary>
        /// <returns>APIResponse class instance.</returns>
        /// <param name="entityId">Entity(record) Id (Long) of the module</param>
        public APIResponse GetRecord(long entityId)
        {
            ZCRMRecord record = ZCRMRecord.GetInstance(ApiName, entityId);

            return(EntityAPIHandler.GetInstance(record).GetRecord());
        }
Esempio n. 3
0
 /// <summary>
 /// To upload the attachment of the notes based on file path.
 /// </summary>
 /// <returns>APIResponse class instance.</returns>
 /// <param name="filePath">File path (String) of the note attachment</param>
 public APIResponse UploadAttachment(string filePath)
 {
     return(ZCRMModuleRelation.GetInstance(ZCRMRecord.GetInstance("Notes", id), "Attachments").UploadAttachment(filePath));
 }