Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

EMailing Placebot

Posted on 2006-04-13
14
Medium Priority
?
255 Views
Last Modified: 2013-12-18
I'm working on a Quickplace and need some code to send an email from a Placebot that is run on Publish. The bit I can't figure out is how to get the full URL to embed as a link to the Page in the EMail.

I just need the code to get the URL of the page regardless of page type, room, plaetype name, etc.

Thanks
0
Comment
Question by:gbentley
  • 7
  • 6
13 Comments
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 1500 total points
ID: 16444397
What might work (but don't shoot me, I'm the only piano player and I know nothing about QuickPlace):

    "http://www.yourserver.com/" + @WebDbName + "/0/" + @Text(@DocumentUniqueID)
0
 
LVL 5

Author Comment

by:gbentley
ID: 16593809
THanks for the effort. I've worked it out.

I'll ask for this question to be deleted.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 16593901
What did you do, so I know (my assistance was indeed useless)?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 5

Author Comment

by:gbentley
ID: 16593976
This is my currect routine.

Function sGetURL As Variant
      Dim session As New NotesSession
      Dim dbRoom As NotesDatabase
      Dim docContext As NotesDocument
      Dim sURL As String
      Dim sTemp(1 To 1) As String
      Dim sFind(1 To 1) As String
      Dim sReplace(1 To 1) As String
      Dim vTemp As Variant
      
      Set dbRoom = session.CurrentDatabase
      Set docContext = session.DocumentContext
      
      sTemp(1) = Strleft(dbRoom.HttpURL,"/_") & "/" & dbRoom.FilePath
      sFind(1) = "\"
      sReplace(1) = "/"
      vTemp = Replace(sTemp, sFind, sReplace)
      
      sURL = vTemp(1)
      sURL = sURL & "/h_TOC/"
      sURL = sURL & docContext.UniversalID & "/?OpenDocument"
      
      sGetURL = sURL      
End Function

There is probably a better way, but it works in all my QPs which is the main issue!

Regards
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 16594072
That's just about the LotusScript equivalent of the Formula code I supplied above, with the only difference that you probably created an additional view h_TOC whereas I used the view 0 (zero), present in all Notes databases.

Don't know what to suggest...
0
 
LVL 5

Author Comment

by:gbentley
ID: 16594095
In my defence, I have appended the "/?OpenDocument" bit without which it wasn't working.

If you want the points, let me know.
0
 
LVL 5

Author Comment

by:gbentley
ID: 16594101
"h_TOC" is a standard view in all Quickplace DBs, and it's what is used in all the code I've been able to find. I wasn't aware of the /0 trick in Notes.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 16594163
And I wasn't familiar with the h_TOC view :)  Strange that the OpenDocument-command is required here.

Anyway, it works, and I don't want to beg for points. In my defence, if you'd have reacted on my second post we might have found the solution earlier. I rest my case...
0
 
LVL 5

Author Comment

by:gbentley
ID: 16594171
I actually missed the email from your post. Before I came here today, I thought I hadn't had any reponses. Comedy of errors really isn't it.

Regards
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 16595573
I hope you use Outlook/Exchange for mail...? Just to score points for Notes?
0
 
LVL 5

Author Comment

by:gbentley
ID: 16602661
No, it was Notes!
0
 
LVL 5

Author Comment

by:gbentley
ID: 16603253
I'll split the difference. You can have the points, but only a B!

Regards
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 16603601
I'll settle for that :) Thanks!
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question