in Search
 
Home Forums Marketplace Files
 
 
 

Use the API to determine if faxes are being archived for particular users.

Last post 06-25-2009, 11:45 AM by brainaba. 2 replies.
Sort Posts: Previous Next
  •  06-24-2009, 1:58 PM 14742

    Use the API to determine if faxes are being archived for particular users.

    Does anyone have a code sample for determining if a sent fax has been archived?  My C# code is below.  It would be nice if there was an IsArchived property for faxes in the API, but I'm sure there is another method for retrieval, but I can't seem to figure out what that method is.  I am reading UserIDs from a text file and checking their faxes to see if they are archiving properly.  I can get to their faxes, but cannot figure out how to determine if they are being archived or not.

    using System;
    using System.IO;
    using System.Collections.Generic;
    using System.Text;

    namespace rfaxapi
    {
        class Program
        {
            static void Main(string[] args)
            {
             
            string inputfile = "C:/users.txt";
            TextReader userinput = new StreamReader(inputfile);
        
            RFCOMAPILib.FaxServer FaxAPI = new RFCOMAPILib.FaxServer();
            FaxAPI.ServerName = "ServerName";
            FaxAPI.Protocol = RFCOMAPILib.CommunicationProtocolType.cpNamedPipes;

            string usr;
            RFCOMAPILib.User temp;

            while (((usr = userinput.ReadLine()) != null) && (usr != ""))
            {
                usr = usr.ToUpper();
                temp = FaxAPI.get_User(usr);

                foreach (RFCOMAPILib.Fax fx in temp.Faxes)
                {

                        <Need to retrieve fax archive status here>
                   
                }
            }
        }
        }
    }

  •  06-24-2009, 2:44 PM 14745 in reply to 14742

    Re: Use the API to determine if faxes are being archived for particular users.

    Just a guess here, but does the achieving add a history record to the fax?  If so, you might be able to find that history record in the fax object's FaxHistories collection.
  •  06-25-2009, 11:45 AM 14746 in reply to 14745

    Re: Use the API to determine if faxes are being archived for particular users.

    It does not appear to add a record to the fax history and I'm not sure if it is captured at all.  Documentation is sparse on this subject, but I'm sure I'm not the first to try this.
View as RSS news feed in XML
  Privacy    Site Terms   Contact Administrator