on 2009 May 26 8:48 AM
Hi All,
I am using DI server to update a service call. This service call has an activity attached to it. Now i am trying to add a new activity to this service call. the following error is reported.
Removing activities from service call is not allowed. [OSCL.customer]
without activity i am able to update the service call.
Any help would be appreciated,
Thanks & Regards
Amudha
Dear Amudha,
Try to put LineNum property in ServiceCallActivities, for example, if add second activity then the LineNum should be 1 (start from 0):
<ServiceCallActivities>
<row>
<LineNum>1</LineNum>
Best Regards
Jane Jing
SAP Business One Forums team
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
strObj = " <BOM><BO><AdmInfo><Object>oServiceCalls</Object></AdmInfo><QueryParams><ServiceCallID>9117</ServiceCallID></QueryParams>"
strObj = strObj & "<ServiceCalls><row><Subject>Updated Subject</Subject></row></ServiceCalls>"
'strObj = strObj & "<ServiceCalls><row><Subject>" & Subject & "</Subject><CustomerCode>" & Cardcode & "</CustomerCode></row></ServiceCalls>"
strObj = strObj & "<ServiceCallActivities><row><ActivityCode>" & res4 & "</ActivityCode></row></ServiceCallActivities>"
strObj = strObj & "</BO></BOM>"
XMLDoc2.LoadXml(strObj)
strAdd = "<?xml version=""1.0"" encoding=""UTF-16""?>"
strAdd = strAdd & "<env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"">"
strAdd = strAdd & "<env:Header>"
strAdd = strAdd & "<SessionID>" & SessionID & "</SessionID>"
strAdd = strAdd & "</env:Header><env:Body><dis:UpdateObject xmlns:dis=""http://www.sap.com/SBO/DIS"">" & XMLDoc2.InnerXml & "</dis:UpdateObject></env:Body></env:Envelope>"
Dim res As String
res = DINode1.Interact(strAdd)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Amudha,
Could you put out your DI Server code for check?
Best Regards
Jane Jing
SAP Business One Forums team
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
106 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.