Home
Find the answer to your question
.NET SDK sample to set the condition for an item
To set the item condition using the new item condition model you need to:
1. Make a call to GetCategoryFeatures to get the applicable condition IDs and DisplayNames
2. Use the ID for the appropriate DisplayName in the AddItem request
Here is the sample code using .NET SDK:
Create the context object:
using System;
//set the User token
//set the server url
//enable logging
//set the version
|
Make the GetCategoryFeatures call:
//create the call object for GetCategoryFeatures
//set the CategoryID
//view all the nodes and get all the details
//execute the request
//if the response contains more than 0 categories iterate through each
//if condition is available
} } } |
Make the AddItem call with the conditionID:
//create the call object |