Add activity an follow up activity
Ronald van Amelsvoort
We have a standard Lay-out wich is send to new customers/prospects. In this ay-out, we ad a activity that the letter is printed.In the commonscript, I have the following code:
Private Sub LD_AfterPrint(company As SAPbobsCOM.Company , sendToPrintDriver As Boolean)
Dim cts As SAPbobsCOM.Contacts = company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oContacts)
cts.CardCode = GetData("B1_Data.Select_BP.CardCode")
cts.Details = "Kennismaking brief " & Now
cts.DocEntry = GetData("B1_Data.Document.DocEntry")
cts.DocTypeEx = GetData("B1_Data.Document.ObjType")
cts.Closed = "1"
Dim i As Integer = cts.Add()
If i <> 0 Then
System.Windows.Forms.MessageBox.Show("Error " & i & " Text " & company.GetLastErrorDescription(), " Error")
End If
End Sub
This Works fine tha activity is added and closed.
For this activity we also want to create a follow up activity.
What is the best way to do this?
Greetings,
Ronald van Amelsvoort
Philipp Knecht
Hi RonaldSo you plan to create 2 activities each time?
hth
Ronald van Amelsvoort
Hi Philipp,Yes.
For the following reason:
At our business we have some one, who is responible for making contact with new customers. When the new contact is intereested, a standard information package is send to the new customer. So a new businesspartner is created in business one, and from this business partner a standard letter is created (with the coresuite designer). At this moment a activity is created (and directly closed)that the letter is send to the new customer.
With this activity we can messure the sucsess on first contacts.
After this letter is send, a activity (Follow up) is made for the future (14 days) to call the (new) customer, to look of he is still interested. This activity is made manualy. I would like to do this in the designer, so this cannot be forgotten.
With kind regards,
Ronald.
Ronald van Amelsvoort
Antoher question:I try to set the field activity to "Note". I tried this with: cts.Action = "E" After printing the error mesage from SAP appears:
System Error: Het openbare lid voor Action voor type IContacts is niet gevonden
And the activity is not added.
Same happens when trying to set the Activity Type field (CntctType)
How can i set these fields?
Ronald van Amelsvoort.
0
Please sign in to leave a comment.
Comments
0 comments