Queries
linkedObjectDetails
Template for Query:
query GetLinkedObjectDetails(
$input: CreateTaskLinkObjectInput!
$composition: LinkedObjectComposition
) {
linkedObjectDetails(input: $input, composition: $composition) {
resourceUrn
}
}
Show More
Arguments
| input* CreateTaskLinkObjectInput! non-null | |
| composition |
* Required
Possible Returns
| Value Type | Description |
|---|---|
LinkedObjectDetails! non-null |
Examples
Example 1
Resolves a design or drawing object to its display details before linking it
to a task. Check that viewState is AVAILABLE before using the returned
resourceUrn in linkTaskLinkedObject. The resourceId field is
deprecated.
This request uses sample IDs. Replace hubId with your hub ID and
externalId with the Fusion design’s lineage URN.
Query:
query GetLinkedObjectDetails($input: CreateTaskLinkObjectInput!, $composition: LinkedObjectComposition) {
linkedObjectDetails(input: $input, composition: $composition) {
resourceUrn
workspace
objectType
sourceSystemId
name
partNumber
description
thumbnailUrl
viewState
}
}
Show More
Query Variables:
{
"input": {
"hubId": "urn:adsk.ace:beta.scope:11111111-2222-4333-8444-555555555555",
"externalId": "urn:adsk.wipprod:dm.lineage:EjRWeJCrTe-ACRI0VniQqw",
"workspace": "Design",
"objectType": "ROOT_COMPONENT",
"sourceSystemId": "FUSION"
},
"composition": "WORKING"
}
Show More
Illustrative response
{
"data": {
"linkedObjectDetails": {
"resourceUrn": "urn:adsk.wipprod:dm.lineage:EjRWeJCrTe-ACRI0VniQqw",
"workspace": "Design",
"objectType": "ROOT_COMPONENT",
"sourceSystemId": "FUSION",
"name": "Mounting bracket",
"partNumber": "BRK-001",
"description": "Bracket for the enclosure assembly.",
"thumbnailUrl": null,
"viewState": "AVAILABLE"
}
}
}
Show More