Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve assets values using API

Rohit Bankoti October 10, 2023

I am trying to retrieve asset attribute values using REST API.

When there is value defined then it is easy to retrieve values with fixed indexes. for e.g. 

DeseralizeResult("objectEntries")( int_Counter)("attributes")(0)("objectAttributeValues")(0)("value")--> purchased date

DeseralizeResult("objectEntries")( int_Counter)("attributes")(1)("objectAttributeValues")(0)("value")--> display (key value)

 

Issue comes when there is no value supplied in any attributes then this causes fixed pattern to break because no Null value will come as an output. 

how to mitigate this problem statement as it will be more complicate when there are n number of no values provided in fields ?

Is there a way to define attribute as mandatory and can take empty values from Admin user?

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events