Does someone have easy to follow instructions on creating a button in a e-mail that will add a reminder calendar entry for those who receive the e-mail and click on the button.
Many thanks.
Does someone have easy to follow instructions on creating a button in a e-mail that will add a reminder calendar entry for those who receive the e-mail and click on the button.
Many thanks.
Subject: Calendar button in a e-mail
If you only want a very basic calendar entry and don’t mind the user having to click ‘Save’ on the event themselves after they have clicked the button, you can do this with formula:
subj:=“MY SUBJECT HERE”;
date:=[01/05/2008];
startTime:=“13:30:00”;
endTime:=“14:00:00”;
location:=“LOCATION HERE”;
@Command([OpenCalendar];@UserName);
@Command([CalendarGoTo];date);
@Command([Compose];“Appointment”);
@UpdateFormulaContext;
FIELD Subject:=subj;
FIELD StartTime:=@TextToTime(startTime);
FIELD EndTime:=@TextToTime(endTime);
FIELD Location:=location;
This will create a calendar entry with the above mentioned fields populated. All the user needs to do is click save.
If you want a more advanced entry and/or repeating options, then you will need to go down the LotusScript route as Stephen mentions.
Subject: Calendar button in a e-mail
It can be done via Lotus script and lot of people have posted most of what you need to do on this forum.
I’ve done exactly what you want, so you only need to change the values in the Declaration section (and am now playing with DXL) unfortunately, I cannot just “share the button” as it was developed for my client and they paid for it.
If you need help I can share …
Here are a few things to take into consideration:
Will the button just create a single calendar entry or will you want multiple (repeat) entries
Will they just be appointments or will you need to have Events and Reminders
I assume you will want to be able to indicate if it should set off an alarm or not
Don’t forget time zone issue. If you send a meeting for 4pm, do you mean 4pm your time zone? WHat if the meeting is in the future and your in a area that observes Daylight Time, do you mean 4pm after the time changes or not.
Do you need to be able to handle meeting date changes?
What do you want to put in the body of the Calendar Entry (if anything)
Subject: RE: Calendar button in a e-mail
Thanks–I an bit familiar with Lotus Script–Home complicated would it be to use Lotus script.
Your questions are good ones-
Will the button just create a single calendar entry or will you want multiple (repeat) entries Answer-single
Will they just be appointments or will you need to have Events and Reminders Answer-appointment
I assume you will want to be able to indicate if it should set off an alarm or not - no alarm needed
Don’t forget time zone issue. If you send a meeting for 4pm, do you mean 4pm your time zone? WHat if the meeting is in the future and your in a area that observes Daylight Time, do you mean 4pm after the time changes or not. – will not need to worry about time zone
Do you need to be able to handle meeting date changes? will not need to worry about meeting changes
What do you want to put in the body of the Calendar Entry (if anything) – body of calendar entry = “Resume updated and posted prior to end of 2Q2008”
Thanks-Pat Allen
Subject: RE: Calendar button in a e-mail
I just did a quick search (look for _viewicon) and found this example of code posted ==>
I Didn’t look closely to see if this was good or bad code, this will give you a starting point.
Here are a couple of links on what some of the fields are used for
Link 1and Link 2 (PDF - more detail than you will need, and for LN 5)
Basically all you want to do is:
create a document in their mail (as you’re mailing them - you will be in their mail - so this is nothing more that db = session.currentdatabase)
Populate all the key fields for the calendar entry (see link 1 above - to save time typing follow the doclink and borrow)
Make sure you use the right data types - use Dates/Times not Text as the person who gets your button may use a different format that you. Easy way to handle this is work with date(y,m,d) and time(h,m) functions. Then just pass it the Numbers.
Use AppendText to save Text to the body of your Calendar Entry
Save it and your done.
It’s actually quite simple, it’s just making sure to populate all the key fields with the right data types.