Custom Field in Soap Api V4

Monday, February 4, 2013 1:19:29 PM

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

1 Replies
Tuesday, February 5, 2013 3:16:09 AM
Avatar
re: DimitriSturm on Monday, February 4, 2013 1:19:29 PM

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

Statistics
  • Started: Monday, February 4, 2013 1:19:29 PM
  • Last Reply: Tuesday, February 5, 2013 3:16:09 AM
  • Replies: 1
  • Views: 526