Add Issue ID to an email alert?
Dear all,
(running WSS 3.0)
I'm desperately trying to add the Issue ID to the alert email that is sent when a list item is assigned to you. I have looked around and followed many tutorials online, however none of my changes have had any effect. So far I have done:
Copied alerttemplates.xml to customalerttemplates.xml
Edited customalerttemplates.xml
Removed "ID" from <ImmediateNotificationExcludedFields>
Ran stsadm -o updatealerttemplates -url http://server -filename "C:\Program files\common files\Microsoft shared\web server extensions\12\template\XML\customalerttemplates.xml"
Ran iisrest
Restarted Sharepoint Timer service
However even after doing that the email sent when an item is assigned is just the basic default! I've just tried to add the ID to the most simple section of the email (footer) however nothing seems to change the email alert.
I've followed guides such as:
http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/c458eb9c-e9a7-4957-98d8-596962c1e2c2
http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2007/12/07/customizing-alert-notifications-and-alert-templates-in-windows-sharepoint-services-3-0.aspx
http://www.sharepointusergroup.org/NewYork/Meeting%20Present ations/Bryan%20-%20SharePoint%20Alerts%202008aug6.pdf
http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/16ff437d-c72b-42e8-bc95-59065aee175d
Can anyone please help?
Regards,
Steve
I am aware that this is very old thread, and I needed similar solution to display ID in the email alerts.
I am using SharePoint 2010 Enterprise. And I am able to get it displayed correctly in the alerts. Output attached:
Here are the changes I did:
1. Created a copy of alerttemplates.xml and named it as alerttemplatesWithIssueID.xml.
2. Open it in browser to check the structure. And then removed "ID" from <Properties><ImmediateNotificationExcludedFields> and <DigestNotificationExcludedFields> for SPAlertTemplateType.GenericList and SPAlertTemplateType.AssignedToNotification
<AlertTemplate> types.
Note: <AlertTemplate Type="List" Name="SPAlertTemplateType.AssignedToNotification"> has just one property <Properties><ImmediateNotificationExcludedFields></Properties> as DigestNotification is not applicable for this event
type.
3. register it using stsadm -o updatealerttemplates command.
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>stsadm -o updatealerttemplates -url http://<sitecollectionUrl> -filename "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML\alerttemplatesWithIssueID.xml"
-lcid 1033
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>iisreset
Attempting stop...
Internet services successfully stopped
Attempting start...
Internet services successfully restarted
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>
4. My next todo action item is to display it on top instead of displaying ID at the bottom of the alert.
Thanks & Regards, Atul Shukla
Similar Messages
-
Add log entries to an emailed alerts
Is there any way to add the logs entries that is included in a report/incident in an emailed alert. In other words, instead of just having the link to the mars emailed in the alert, have the actual data that the user will see once they enter the mars.
I have been working on this one for a few months now. Out of the box, no, there is not. There was a feature request added into 6.0.3 that was supposed to add this functionality but it got left out because it was going to be a lot of work. I have opened a new case with TAC (611170537) and the guy confirmed that the engineers added some data to the email alerts that was already being processed and wouldnt need much additional coding.
I have filed a new feature request with my local Cisco team but I do not know the bug id yet. Basically what i want is the ability to create an email template which will have the ability to include variables in the email, so the raw message or matched event ID can be included. I was told by the guy at TAC that when he brought up this idea to the developers, they werent too excited because it seemed like a lot of work and there didnt seem to be a business case for it. So if anyone wants to see this feature added, please contact your local account team and include my latest case #. I will include the bug id once I get one. The only way to get this feature added is to request it. -
We have recently customized the XML alerts template (AlertTemplates.xml) for our site collection in SharePoint 2010 to exclude specific fields in the email when users who have subscribed using the "Alert Me" feature. We have renamed the
custom alerts XML file and loaded the custom template in the following directory (%ProgramFiles%\Common Files\Microsoft Shared\Web server extensions\14\TEMPLATE\XML) and restarted IIS. Once users subscribe to the alerts using the list "alert me"
function they received the customized email as intended.
We needed to auto-subscribe users to the email alerts so what we did was use a powershell script to add users to the alert subscriptions using the script shown below:
Import-Csv D:\Temp\filename.csv | ForEach-Object{
$webUrl=$_.WebUrl
$listTitle=$_.List
$alertTitle=$_.AlertTitle
$subscribedUser=$_.SubscribedUser
$alertType=$_.AlertType
$deliveryChannel=$_.DeliveryChannel
$eventType=$_.EventType
$frequency=$_.Frequency
$oldAlertID=$_.ID
$web=Get-SPWeb $webUrl
$testAlert = $web.Alerts | WHERE { $_.ID -eq $oldAlertID }
IF ($testAlert) {
$web.Alerts.Delete([GUID]$oldAlertID)
Write-Host Old alert $oldAlertID deleted. -Foregroundcolor Cyan
$list=$web.Lists.TryGetList($listTitle)
$user = $web.EnsureUser($subscribedUser)
$newAlert = $user.Alerts.Add()
$newAlert.Title = $alertTitle
$newAlert.AlertType=[Microsoft.SharePoint.SPAlertType]::$alertType
$newAlert.List = $list
$newAlert.DeliveryChannels = [Microsoft.SharePoint.SPAlertDeliveryChannels]::$deliveryChannel
$newAlert.EventType = [Microsoft.SharePoint.SPEventType]::$eventType
$newAlert.AlertFrequency = [Microsoft.SharePoint.SPAlertFrequency]::$frequency
if($frequency -ne "Immediate"){
$AlertTime=$_.AlertTime
$newAlert.AlertTime=$AlertTime
$newAlert.Update()
Write-Host Created $newAlert.Title for $subscribedUser . -Foregroundcolor Cyan
} ELSE {
Write-Host Alert $alertTitle for $subscribedUser already done. Moving on. -Foregroundcolor Magenta
When we ran the script and added the users and restarted the service, all users who were auto-subscribed via this method get the email without the customizations that were done in teh custom alert template. All users who manually subscribed on their
own to the list using the "Alert Me" function would get the customized email.
Does anyone know why users who manually subscribe to the alerts get the customized email, and users who were auto-subscribed using the powershell script do not get the customized email and get the standard generic email template?Hi ,
According to your code, it create a new alert using SPUser.Alerts.Add() method. For this method, it will create a new alert based on the predefined alert template by default.
If you only assigned the custom alert template to the list, users who manually subscribe to the alerts get the customized email, but users who were auto-subscribed using the PowerShell script get the standard
generic email template.
For your issue, you can set the new alert ‘s alert template:
http://social.technet.microsoft.com/Forums/en-US/1b19c12f-fc37-48cf-8b59-6c09f095dc23/custom-alert-email-templates-issue-list-alerts-emails-not-using-customized-xml-alert-template?forum=sharepointgeneralprevious
Here is a good blog you can have a look:
http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2007/12/07/customizing-alert-notifications-and-alert-templates-in-windows-sharepoint-services-3-0.aspx
Thanks,
Eric
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
contact [email protected]
Eric Tao
TechNet Community Support -
Problems with Mountain Lion. Have never had these problems previously. Have been a mac user since 1990.
iTunes no longer sends music to my airport express. NO FIX EXISTS !
Now iCal every time I want to send an email alert puts up this message: You must add your own card and email address in Contacts to be able to use mail alerts.
COME ON I HAVE DONE THIS OVER AND OVER TO NO RESULT.
MACINTOSH WHAT ARE YOU DOING?
UNHAPPY !Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work.
Isolating an issue by using another user account
If the problem is still there, try booting into the Safe Mode. Shut down the computer and then power it back up. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal.
Safe Mode
Safe Mode - About
General information.
Isolating issues in Mac OS X
Troubleshooting Permission Issues
Step by Step to Fix Your Mac -
Custom Email Alert Template Issue - Users not getting customized emails
I have recently customized the XML alerts template (AlertTemplates.xml) for our site collection in SharePoint 2010 to exclude specific fields in the email when users who have subscribed to a list using the "Alert Me" feature. I have renamed
the custom alerts XML file and loaded the custom template in the following directory (%ProgramFiles%\Common Files\Microsoft Shared\Web server extensions\14\TEMPLATE\XML) and restarted IIS. Once users subscribe to the alerts using the list using the "alert
me" function they received the customized email as intended.
We needed to auto-subscribe users to the email alerts so what I did was used a powershell script to add users to the alert subscriptions using the script shown in below:
Import-Csv D:\Temp\filename.csv | ForEach-Object{
$webUrl=$_.WebUrl
$listTitle=$_.List
$alertTitle=$_.AlertTitle
$subscribedUser=$_.SubscribedUser
$alertType=$_.AlertType
$deliveryChannel=$_.DeliveryChannel
$eventType=$_.EventType
$frequency=$_.Frequency
$oldAlertID=$_.ID
$web=Get-SPWeb $webUrl
$testAlert = $web.Alerts | WHERE { $_.ID -eq $oldAlertID }
IF ($testAlert) {
$web.Alerts.Delete([GUID]$oldAlertID)
Write-Host Old alert $oldAlertID deleted. -Foregroundcolor Cyan
$list=$web.Lists.TryGetList($listTitle)
$user = $web.EnsureUser($subscribedUser)
$newAlert = $user.Alerts.Add()
$newAlert.Title = $alertTitle
$newAlert.AlertType=[Microsoft.SharePoint.SPAlertType]::$alertType
$newAlert.List = $list
$newAlert.DeliveryChannels = [Microsoft.SharePoint.SPAlertDeliveryChannels]::$deliveryChannel
$newAlert.EventType = [Microsoft.SharePoint.SPEventType]::$eventType
$newAlert.AlertFrequency = [Microsoft.SharePoint.SPAlertFrequency]::$frequency
if($frequency -ne "Immediate"){
$AlertTime=$_.AlertTime
$newAlert.AlertTime=$AlertTime
$newAlert.Update()
Write-Host Created $newAlert.Title for $subscribedUser . -Foregroundcolor Cyan
} ELSE {
Write-Host Alert $alertTitle for $subscribedUser already done. Moving on. -Foregroundcolor Magenta
When I ran the script and added the users and restarted the service, all users who were auto-subscribed via this method would get the email without the customizations that were done in the custom template.
All users who manually subscribed to the list using the "Alert Me" function would get the customized email.
Does anyone know why users who manually subscribe would get the custom email alert and why users who were auto-subscribed using the powershell script do not get the custom email alert?Hi,
To deploy custom alert template file, we would load changes into SharePoint and restart SharePoint 2010 Timer Service from Windows Service. If you create your own AlertTemplate in the custom_alerttemplates.xml, you will need to set the set the SPList.AlertTemplate
property of the list. Then delete and re-subscribe to the alerts for the list.
Please refer to:
http://blog.zebsadiq.com/post/SharePoint-2010-custom-alert-template.aspx
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support -
You must add your own card and email address in Contacts to be able to use mail alerts. mean
I am trying to set up notifications in Calendars. I click "custom" and choose email. I get a message"You must add your own card and email address in Contacts to be able to use mail alerts." I have my own email address entered into Contacts, but don't know what this message intends, or how to deal with it. Please advise.
ThanksThank you Eric. So easy, when you know what you're doing.
Thanks. -
Recently the sound on my Iphone 4 for texts, and email alerts started working intermittently. I have upgraded to the latest software and the Apple store even replaced the phone but safe issues
For each mail account, along with designating a primary SMTP server, you should be able to just turn off any and all other SMTP servers you have listed. In that case, if there is a problem with comcast, the message send should just fail.
Also make sure your comcast smtp settings are correct (port, likely 587 but might be something else for comcast, whether you should be suing SSL or not, do you need authentication or not).
You might find the comcast forums useful for getting the settings right - I found this:
http://forums.comcast.com/t5/E-Mail-and-Xfinity-Connect-Help/iphone-email/m-p/66 1151?view=by_date_ascending#M131151
The second poster notes, SSL should be on, authentication should be "password" and you should be using port 995 -
Process chain email alert issue
Hi,
I'm working with BASIS to get the email alert for Process chains working.
We've done the following so far:
1. Created a mail exchange group "SAP BW" with all required email addresses
2. In the Process chain, created a message variant and assigned the above private distribution list
3. BASIS configured SMTP in SCOT to reference the correct port and mail path
4. In SU01, Security added email addresses which were missing earlier for everyone in the distribution list
5. BASIS scheduled a job to run every 5 minutes to collect and send emails
I just ran a test process chain and failed a few loads. However, none of us are getting emails in our inbox. What step are we missing? Is there anything else we should be looking at?
Thanks,
Pooja.few more things to check
1. Is the mail sent from SO01 working correctly?
2. Are the mails sent getting accumulated and seen in SCOT transaction queue?
3. Did you try using Individual addresses instead of distribution list?
These might help in boiling down to the actual problem though may not solve it. good luck!
Regards,
Sree -
Getting backup battery to send email alerts....?
Hello! I've got an APC RS1500 UPS hooked up to my Mac Mini server running 10.6.
Obviously, I've already used System Preferences to configure how we want the battery to manage the power to the machine in the event of an outage. But since APC's PowerChute software (which, from what I understand, used to have the ability to send email alerts in such a case) only works up until about 10.4 until they started implementing the native support we have "lost" the ability for the server to send out an email alert whenever should there be a power issue.
So far, I've found no native way to do this within OSX and the APC software that used to do this for you is no longer supported on 10.5 or 10.6.....how can we do this?
I'm looking for something, anything, really to just get the server to send me an email should the power go down. Terminal command, Automator workflow, AppleScript, third party software....whatever.
Just....something?
Surely there are other people out there running Mac servers on a battery backup with some kind of notification system in place?
Thanks in advance.Pingdom does what you are asking for. It detects the web server outage. It sends email, SMS or a tweets. And it's a free service.
If you're working on an internal server of some sort (or otherwise outside of what pingdom can reach), then this is going to involve a quick script, or some add-on software.
If you're working on the script, do you have a local mail server running on this box? (That'll make sending mail easier.)
And do you want to know about every outage, or do you want notifications when the shutdown happens? (If it's the latter that you're after, then you can send mail from the shutdown script.)
Some of the more capable and less-interruptible power supplies have notification capabilities. (eg: APC less-interruptible power supplies with the APC Web/SNMP card.)
The apcupsd tool might be of interest, too. Whether that update works on Mountain Lion, I don't know. -
Email Alerts are working for some but not all users
If some users are getting the alerts and some not, it seems more likely that the issue is with your email server or email clients, not with your SW setup.
Have you checked SPAM / Junk folders on the server and on the clients?We have alerts setup for multiple scenarios. All of our users are setup the same but not everyone is getting the alert. We are using the spiceworks mail servers and I have checked the Spiceworks App Notifications are set to Yes. Any ideas?
This topic first appeared in the Spiceworks Community -
How to configure email Alerts in OEM Cloud 12c for Database Servers up/down
Hi everybody,
How to configure email Alerts in OEM Cloud 12c for Database Servers up/down status?
Regards,
Miguel VegaHi Miguel Vega,
Information regarding the notifications:
==============================
Configuring notification rules in 12c is different from earlier releases.
The concept and function of notification rules has been replaced with a two-tier system consisting of Incident Rules and Incident Rule Sets :
1. Incident Rules: Operate at the lowest level granularity (on discrete events) and performs the same role as notification rules from earlier releases.
By using incident rules, you can automate the response to incoming incidents and their updates.
A rule contains a set of automated actions to be taken on specific events, incidents or problems.
The actions taken are for example : sending e-mails, creating incidents, updating incidents, and creating tickets.
2. Incident Rule Set: A rule set is a collection of rules that applies to a common set of objects, for example, targets, jobs, and templates.
To help you to achieve the Notification Rules configuration, refer those notes :
How To Configure Notification Rules in 12C Enterprise Manager Cloud Control ? Doc ID 1368036.1
EM12c How to Add and Configure Email Addresses to EM Administrators and Update the Notification Schedule ?Doc ID 1368262.1
EM12c How to Subscribe or Unsubscribe for Email Notification for an Incident Rule Set ?Doc ID 1389460.1
EM 12c How to Configure Notifications for Job Executions ? Doc ID 1386816.1
Best Regards,
Venkat -
How do I stop calendar from emailing alerts to me.
This was never an issue on ios 7, but as soon as I upgraded to ios 8 I started getting a ton of new emails alerting me to upcoming events.
I use Google calendar, and I have Google email me alerts for certain events, and I still want those. But I do not want the ones coming from Apple Looking at Google calendar. I am not sure if these new emails are coming from my phone or my Yosemite imac.
Thoughts?i am getting getting three emails from each event. One from Google, and two from Apple devices. I suspect I am getting one email from my iPhone and one from my imac. It happened just now, and the instant my iPhone popped up an alert, I received one of the Non Google emails. About thirty seconds after that I received a second Apple email.
By Apple email, btw, I mean an email I believe was generated by an Apple device. All the emails actually come from my gmail address. -
List of values apprear for email alert while scheduling the report
List of values apprear for email alert while scheduling the report
Hi,
Can you please expand on your issue?
Cheryl -
Issue in sending the email with XL attachment in ECC version
Hi,
I have an issue with sending the email with XL attachment. My program is sending a mail to the receiver with XLS as attachment. Recently we have migrated from 4.6B to ECC version. Same code was worked in 4.6B.But it is not working in ECC version.When i try to open the attachment, i get a Dialog Box with the following message
"The file is not in a recognizable format.
1. if you know the file is from another program whih is incompatible with Microsoft excel,click cancel,then open this file in its original application
2.If you suspect the file is damaged, click help for more information about solving theproblem.
3.if you still want to see what text is contained in the file, click OK.Then click the text import wizard. "
when i click OK, the excel sheet is opening with all required data.
Can anyone kindly tell me why this is happening.
I am also attaching part of the coding related to this requirement.
*& Form BUILD_XLS_DATA_TABLE
text
--> p1 text
<-- p2 text
FORM build_xls_data_table.
DATA: w_total(13),
w_clabs(13),
w_cinsm(13),
w_ceinm(13),
w_cretm(13),
w_cspem(13),
w_cumlm(13),
w_exp_date(8),
w_v_totalp(13),
w_min_rem(8),
w_ersda(10),
w_hsdat(10),
w_vfdat(10),
w_ship_date(10),
w_plnmg(13),
w_mhdrz(4).
CLEAR: w_total, w_clabs, w_cinsm, w_ceinm, w_cspem, w_exp_date,
w_v_totalp, w_min_rem, w_ersda, w_hsdat, w_vfdat, w_ship_date,
w_plnmg, w_mhdrz.
w_total = it_batch1-total.
w_clabs = it_batch1-clabs.
w_cinsm = it_batch1-cinsm.
w_ceinm = it_batch1-ceinm.
w_cspem = it_batch1-cspem.
w_cumlm = it_batch1-cumlm.
w_cretm = it_batch1-cretm.
w_exp_date = it_batch1-exp_date.
w_v_totalp = it_batch1-v_totalp.
w_min_rem = it_batch1-min_rem.
w_plnmg = it_batch1-plnmg.
w_mhdrz = it_batch1-mhdrz.
CONCATENATE it_batch1-ersda6(2) it_batch1-ersda4(2)
it_batch1-ersda+0(4) INTO w_ersda SEPARATED BY '.'.
CONCATENATE it_batch1-hsdat6(2) it_batch1-hsdat4(2)
it_batch1-hsdat+0(4) INTO w_hsdat SEPARATED BY '.'.
CONCATENATE it_batch1-vfdat6(2) it_batch1-vfdat4(2)
it_batch1-vfdat+0(4) INTO w_vfdat SEPARATED BY '.'.
CONCATENATE it_batch1-ship_date6(2) it_batch1-ship_date4(2)
it_batch1-ship_date+0(4) INTO w_ship_date SEPARATED BY '.'
CONCATENATE
it_batch1-werks it_batch1-mtart it_batch1-matnr it_batch1-maktg
it_batch1-prdha it_batch1-prctr it_batch1-ktext it_batch1-dispo
it_batch1-charg it_batch1-lgort it_batch1-herkl w_clabs
w_cinsm w_ceinm w_cretm w_cspem
w_cumlm w_total it_batch1-meins it_batch1-v_spr_unit
w_v_totalp it_batch1-waers w_plnmg it_batch1-meins
w_ersda w_hsdat w_vfdat w_exp_date
w_ship_date w_mhdrz w_min_rem it_batch1-zlifer
it_batch1-doknr it_batch1-dokar it_batch1-doktl it_batch1-dokvr
INTO L_STRING SEPARATED BY CON_TAB.
INTO l_string SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
WHILE l_string <> space.
CALL FUNCTION 'TEXT_SPLIT'
EXPORTING
length = 255
text = l_string
as_character = 'X'
IMPORTING
line = it_attach
rest = l_string.
IF l_string = space.
CONCATENATE IT_ATTACH CON_CRET INTO IT_ATTACH.
CONCATENATE it_attach cl_abap_char_utilities=>cr_lf INTO it_attach.
APPEND it_attach.
CLEAR it_attach.
ELSE.
APPEND it_attach.
CLEAR it_attach.
ENDIF.
ENDWHILE.
move l_string to it_attach .
CONCATENATE it_attach cl_abap_char_utilities=>cr_lf INTO it_attach.
APPEND it_attach.
CLEAR it_attach.
ENDFORM. " BUILD_XLS_DATA_TABLE
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
text
--> p1 text
<-- p2 text
FORM send_file_as_email_attachment.
DATA:w_length TYPE i.
DATA: w_cnt TYPE i,
w_sent_all(1) TYPE c,
w_doc_data LIKE sodocchgi1,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc,
t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = text-034 .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
DESCRIBE TABLE it_attach LINES w_cnt.
DESCRIBE TABLE it_message LINES w_cnt.
READ TABLE it_message INDEX w_cnt.
w_length = STRLEN( it_attach ).
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_message ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = text-034.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
***Start of changes by 501507008 on 29.01.2009
t_packing_list-obj_descr = 'MAIL BODY'.
***End of changes by 501507008 on 29.01.2009
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = 'XLS'.
t_packing_list-obj_descr = text-034.
t_packing_list-obj_name = 'filename'.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
LOOP AT it_adr6.
t_receivers-receiver = it_adr6-smtp_addr.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
ENDLOOP.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ' '
sender_address_type = ' '
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
commit_work = ' '
IMPORTING
sent_to_all =
new_object_id =
tables
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
contents_hex =
object_para =
object_parb =
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
ENDIF.
ENDFORM. " SEND_FILE_AS_EMAIL_ATTACHMENTHi,
could you tell me which opeion should i select in SCOT under INT node. I have tried with diffrent options. but no luck.
SAPscript/Smart Forms - No Conversion
ABAP List - No Conversion
Business Object/Link - No Conversion
RAW Text - No Conversion -
Send an email alert when an item is added to web part from list.
Hello, I'm a SharePoint 2010 newbie and have been tasked with a small project and would greatly appreciate any help. We have a web part on our home page that is populated from a query source list from one of our department's sites. We would like
for an alert email to be sent out when it hits the web part. I was able to use the Alert Me feature on the list to send out an email however the alert had links to the source site page and we only want to have a link to the new item.Hello,
Do you have SP designer installed in your machine? If yes then create simple list workflow using designer then you can customize the email body as per your business need.
Here is link to add current item link in email body:
http://www.enjoysharepoint.com/Articles/Details/sharepoint-designer-2010-workflow-email-link-to-edit-item-or-20796.aspx
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help
Maybe you are looking for
-
How to create a folder in the file system?
Hi All, How to create a normal folder in my PC's file system in a specific path?
-
Posting GR against inbound delivery document by MIGO for the movt type 101
Hello Team To put my question in a simple way, i have changed the subject also. my requirement as below. In my legacy system GR against PO is happening and the same data is passing to SAP system through PI. Where i need to post GR against the inbound
-
I installed Windows 7 Ultimate on a PC and I am trying to set up the ODBC drivers to use with Crystal Reports. I ran CR on my XP machine and have the ODBC settings EXACTLY the same on both PCs. When I click 'Apply & Test Connection' in the ODBC Drive
-
Authorization check at diff levels
I need this functionality: several authorization checks should be implemented. · Selection on Plant level (authorized yes or no is then taken care within the authorization role) · When this was successful, check further whether User i
-
Hello will I be able to open .bbb files on BLACKBERRY BLEND? I have a z10 and mutiple system backups with different message data I would like to display. Cheers, H Solved! Go to Solution.