Updating the address book outlook
That approach assumes that you already have an application built, users are comfortable with it and you are basically adding functionality. Building Outlook-like features with their own interfaces is a massive project on its own. The first step in accessing VFP from Outlook is to build a COM server that will be accessed from Outlook.If you can make use of Outlooks features and then add functionality to them, you can build a powerful application with an interface users already know. For this example, we are going to build a simple COM server application and build it up from there.The Conversation Topic property however maintains the original topic. By setting the Meeting Status, you can make an appointment show on a network calendar. You can identify the inspector or explorers with Get Inspector and Get Explorer methods as well.
Therefore, be careful of the changes made to the Body property. So far, I have concentrated on automating Outlook from within our existing application.It only has one supported data source which is MAPI. The code to do this is also relatively straight forward: lo App = CREATEOBJECT(Outlook.application) lo Space = lo App. Moving through folders with Outlook can be done using the Get Default Folder method or by traversing the Folders collection. The Conversation Topic and Index properties can be used to group similar messages together. Resolve() MESSAGEBOX("Recipient is invalid") ENDIF If you are using Internet email addresses, the Resolve method can be bypassed, as it will be used automatically when sending the message. Most of the fields are well-named but they tend to get a little long (see the next table for a list of commonly used contact fields). The Application object has Active Inspector and Active Explorer properties to help identify what view the user is currently looking at.From the namespace object, you can access all of the Folders and items within Outlook as well as Address Lists. As with most collections, you can specify the name of the folder directly or specify it by index count: FOR lni = 1 TO lo Space. When a message is replied or forwarded, the subject is updated with the words "RE:" or "FW:". Numeric value indicating the status of the appointment. However, Outlook is generally a modeless application and users can have multiple windows open at once.The Outlook Application object exposes a few properties that are used to access the rest of Outlook, the most important one is the Name Space object. Items The lo App statement creates the Application object. Common Item Methods All items have standard methods that can be used for moving items around. Deleted items are placed in the Deleted Items folder. You can add an attachment as a shortcut to the item, a direct attachment or as an embedded Outlook object. When you create a message, the most likely method to use is Send. Each Recipient in the collection has thee properties: Name, Address and Type. Contacts The Contact Item represents a placeholder for any information you want to track about a person. When you delegate a task, you are, in effect, sending them a message with the details of the task, asking them to take ownership of it. If the assignee (in this case, John Smith) refuses the assignment, the Delegation State is automatically updated to 3. The following code returns a list of tasks, waiting to be assigned: FOR EACH lo Task IN o Tasks. The first parameter to the Add method is the name of the custom field. After moving to the first or last item, call Get Next or Get Previous to move up and down through the folder. Call the Find Next method to find the next occurrence based on your current item position. For example, a list of messages or contacts is displayed in Outlook with an Explorer.
The Name Space object is a reference to the current Outlook data source or session. Lo Space returns a reference to the current Outlook session. Name ENDFOR Folders are hierarchical so each folder can contain their own set of folders as well. To permanently delete items, delete items that are in the Deleted Items folder. Get Default Folder(3) ln Items = trashfolder.items.count For lni = l TO ln Items Trashfolder.items(0).delete() Endfor Call the Copy method to create a copy of the message. Copy() The Move method then moves the message into another folder. However, if you call Save, it will save a copy of the message. For a single contact, you can store 3 mailing addresses, 3 e-mail addresses, 19 different contact numbers and many more pieces of personal information. The following code delegates a task to another user: lo Task = o Tasks. The second parameter is the type of field you are adding. You can specify that a custom field must be one of the types above. When you double-click a contact, it appears in a form that is controlled by an Inspector.In addition, training can become a breeze as you are simply extending their knowledge of an existing application. Our COM server is going to act like an Audit Trail for certain types of activities in Outlook.