on 11-22-2007 7:15 AM
Can sum one please help me with this problem. I need to set an alert thru the code. Now the issue here is each tym a new item has been added to the inventory i need to pop up an alert. How do i do this?
Regards
Aris
Hi
create a Query and Store it in OUQR and based on that you create an alert Under Itempressed for item "1" in Addmode of itemMaster data
Dim oAlertTemplate As SAPbobsCOM.AlertManagement
Dim oAlertTemplateParams As SAPbobsCOM.AlertManagementParams
Dim oAlertTemplateRecipients As SAPbobsCOM.AlertManagementRecipients
Dim oAlertRecipient As SAPbobsCOM.AlertManagementRecipient
Dim oAlertTemplatesService As SAPbobsCOM.AlertManagementService
oAlertTemplate = oAlertTemplatesService.GetDataInterface(SAPbobsCOM.AlertManagementServiceDataInterfaces.atsdiAlertManagement)
oAlertTemplate.Name = "asd"
oAlertTemplate.QueryID = ""
oAlertTemplate.Active = SAPbobsCOM.BoYesNoEnum.tYES
oAlertTemplate.Priority = SAPbobsCOM.AlertManagementPriorityEnum.atp_Normal
oAlertTemplate.FrequencyType = SAPbobsCOM.AlertManagementFrequencyType.atfi_Minutes
oAlertTemplate.FrequencyInterval = 2
oAlertTemplateRecipients = oAlertTemplate.AlertManagementRecipients
oAlertRecipient = oAlertTemplateRecipients.Add()
oAlertRecipient.UserCode = "User"
oAlertRecipient.SendInternal = SAPbobsCOM.BoYesNoEnum.tYES
oAlertTemplateParams = oAlertTemplatesService.AddAlertManagement(oAlertTemplate)
Hope this helps you
Regards
Vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.