Fusion Manage Forum
Welcome to Autodesk’s Fusion Manage (formerly Fusion 360 Manage) Forum. Share your knowledge, ask questions, and explore popular Fusion Manage topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API api/v2/workspaces/{workspaceId}/items/query and latest version

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
mike.ponti
449 Views, 2 Replies

API api/v2/workspaces/{workspaceId}/items/query and latest version

Hi,

 

I am using the api/v2/workspaces/{workspaceId}/items/query to query on items and I would like to only return the latest version of individual items. I would prefer to do this in the filters that are POST'd but I can't seem to get the correct field name

 

I have tried to use the following as one of my filter conditions and have tried using an id of "is_latest" and "is_latest_version" as well.

 

new FilterCondition
{
	propertyDefinition = new PropertyDefinition
	{
		id = "isLatestVersion",
		type = PropertyType.SYSTEM.ToString(),
	},
	Operator = FilterConditionOperator.EQUALS.ToString(),
	value = "true",
}

 

Instead I get an error of "UNKNOWN PROPERTY".

 

"{\"errorCode\":\"FLTR_UNKNOWN_PROPERTY\",\"message\":\"Unknown property null.\",\"params\":null,\"url\":null,\"errorClass\":\"APIError\"}"

 

If anybody has any guidance on this, I would appreciate it!

 

Thanks

Mike

 

2 REPLIES 2
Message 2 of 3
gasevsm
in reply to: mike.ponti

Hi Mike,

See this like for example. http://help.autodesk.com/view/PLM/ENU/?guid=GUID-23719984-36F0-453B-99F3-4F05B0E17FE2

In property definition section, use Id: of "IS_WORKING_VERSION"

Then set "value":"true" to find working only.

Hope this helps,


Martin Gasevski | Fusion 360 Team Product Manager
Message 3 of 3
mike.ponti
in reply to: gasevsm

Thanks!

Works great.

 

Mike

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report