Custom Field in Soap Api V4

Monday, February 4, 2013
Avatar

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
Avatar
re: DimitriSturm Monday, February 4, 2013

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

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Monday, February 4, 2013
  • Last Reply: Tuesday, February 5, 2013
  • Replies: 1
  • Views: 1774