Skip Navigation LinksHome Page > Forums > SpiraTeam Forums > SpiraTeam Issues & Qu... > Custom Field in Soap Api ...
I have updated from SOAP service v3 to v4. I have custom fields and in api v3 i could say
incident.Text01 = "abc"
After updating my service reference to v4, Text01 is not available. How can I update this custom field using the soap api?
Kind Regards,
Dimitri
Hi Dimitri
In the new v4.0 API you can access the full spectrum of custom property types in v4.0 not just the text and list ones that are backwards-compatible with v3.0. The new syntax is a bit different though:
remoteRequirement.CustomProperties = new RemoteArtifactCustomProperty[2]; remoteRequirement.CustomProperties[0] = new RemoteArtifactCustomProperty() { PropertyNumber = 1, StringValue = "test value1" }; remoteRequirement.CustomProperties[1] = new RemoteArtifactCustomProperty() { PropertyNumber = 2, IntegerValue = customValueId2 };
Regards
Adam
And if you have any questions, please email or call us at +1 (202) 558-6885