Hyperlink in Outlook to Navision Form/Record

Collo
Member Posts: 12
Hi
What I'm trying to do it embed a hyperlink in and outlook email to a purchase order in navision.
I have managed to change the format of the email to HTML and have replaced spaces '\' and '&' from the url
CR:=13;
LF:=10;
CRLF := CRLF+ FORMAT(LF);
ReplaceTextInString(' ','%20',TextURL);
ReplaceTextInString('\','%5C',TextURL);
ReplaceTextInString('&','%26',TextURL);
BodyText := TextURL + CRLF;
I have also prefixed my url with string 'url:'
All works fine however outlook does not recognize this as a hyperlink unless I review the email and press Return after the url so that outlook does a autoformat and turns it blue and underlines it (recognized it as a hyperlink).
I know I can embed the link as an attachement but the customer does not want this.
Is there any way I can make outlook recognize the link automatically as I do not want to review the email before sending???
Any Ideas??? ](*,)
What I'm trying to do it embed a hyperlink in and outlook email to a purchase order in navision.
I have managed to change the format of the email to HTML and have replaced spaces '\' and '&' from the url
CR:=13;
LF:=10;
CRLF := CRLF+ FORMAT(LF);
ReplaceTextInString(' ','%20',TextURL);
ReplaceTextInString('\','%5C',TextURL);
ReplaceTextInString('&','%26',TextURL);
BodyText := TextURL + CRLF;
I have also prefixed my url with string 'url:'
All works fine however outlook does not recognize this as a hyperlink unless I review the email and press Return after the url so that outlook does a autoformat and turns it blue and underlines it (recognized it as a hyperlink).
I know I can embed the link as an attachement but the customer does not want this.
Is there any way I can make outlook recognize the link automatically as I do not want to review the email before sending???
Any Ideas??? ](*,)
0
Comments
-
1) Check in which format the mail is sent. if it is plain text mail, you cannot use hyperlinks
2) You can use SMTP to send the mail and in this case you can set in which format the mail will be send (HTML or plain text). After that you can use HTML tags...0 -
I am using outlook and I have Set the email to HTML format, not plain text. Still doesn't recognise the Hyperlink.
](*,)0 -
I am not using outlook for sending HTML mails from NAV, it is why I have no more what to add... :-k0
-
Did anyone ever find an answer to creating a hyperlink in an outlook email to a navision form?0
-
Do you mean something like this:
create(out); mail := out.CreateItem(0); mail.BodyFormat(2); mail.display; mail.HTMLbody := '<HTML><BODY>Here is a link to the Purchase Order form: <a href="navision://client/run?target=Form 50">NAV</a> </BODY></HTML>';
?
where:
out - Automation: 'Microsoft Outlook 12.0 Object Library'.Application
mail - Automation: 'Microsoft Outlook 12.0 Object Library'.MailItem
br/Gennadii0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions