11/22/2024 10:51:44 PM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
|
|
|
|
Email contact link to user
Posted: 14 Mar 07 10:14 AM
|
fiogf49gjkf0d Hi folks,
I remember reading an article (on this website I think) that detailed how to send a link/URL to another SLX user that, when clicked, it will take them to that customer record in SLX.
Can anyone point me in the right direction? |
|
|
| |
|
Re: Email contact link to user
Posted: 14 Mar 07 12:28 PM
|
fiogf49gjkf0d Stuart did link to the correct article. One thing to keep in mind, that article was written for pre-v7. That functionality is built into v7 so if you're on that version you can just include the hyperlink for slx:TABLE/IDVALUE in an e-mail and it will just work.
If you're not yet on v7 then the article outlines how to build the functionality for your current version. |
|
|
|
Re: Email contact link to user
Posted: 14 Mar 07 2:09 PM
|
fiogf49gjkf0d Hi Ryan,
I'm on V6.2 at the moment with no signs of upgrading in the near future. I've managed to get it working, but not 100%. It works when I paste the link into a browser but it only shows up as plain text inside an email instead of being treated as a hyperlink. Any ideas how to fix it?
Thanks! |
|
|
| |
|
Re: Email contact link to user
Posted: 14 Mar 07 3:43 PM
|
fiogf49gjkf0d You'll want to form the e-mail as HTML and then include the like as a hyperlink (ie: anchor tag with the SLX link as the href)
From a SLX script, you can use the built-in QueMessage function, here's a sample:
Dim body body = "This is a SalesLogix Link<br><br>" & _ "Please contact <a href='slx://contact/CXXXX0000001'>Customer Name</a><br><br>" & _ "<i>Thanks!</i>" Application.BasicFunctions.QueMessage "you@youremail.com", "", "", "My Subject", body, ""
Make sense? |
|
|
|
Re: Email contact link to user
Posted: 15 Mar 07 4:47 AM
|
fiogf49gjkf0d Hi Ryan,
I've got it working now. What I wanted was the functionality of the toolbar button you provided with the record in the email pre-set as a hyperlink. Your above example showed how to do this, but for a fixed value (or record). I took both of them, mixed them up a little in the blender and out came a nicely formatted email with a dynamic hyperlink already defined. Nice!
For anyone else who wants to achieve the same, simply modify the 'URL Link Toolbar Action' script included in Ryan's zip file to look like the following:
option explicit
sub Main
Dim shell Dim mv Dim link Dim recname Dim body Set mv = Application.MainViews.ActiveView If (mv.CurrentID = "") Then Exit Sub link = "slx:" & mv.BaseTable & "/" & mv.CurrentID recname = mv.Caption body = "Please refer to the following SLX record:<br><br>" & _ "<a href='" & link & "'>" & mv.caption & "</a><br><br>" Application.BasicFunctions.QueMessage "", "", "", "SLX Record: " & recname, body, "" end sub
Thanks for the help Ryan |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|