cancel
Showing results for 
Search instead for 
Did you mean: 

DI Server - Update Service call

Former Member
0 Kudos
126

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

I tried the linenum property. this is the error im getting

Property 'LineNum' of 'ServiceCallActivity' is read only

Amudha

Former Member
0 Kudos

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)

Former Member
0 Kudos

Dear Amudha,

Could you put out your DI Server code for check?

Best Regards

Jane Jing

SAP Business One Forums team