I'm working my way through what the REST API can provide and I have a question about record relationships. Here's a sample of the XML data returned for an object that has some children on its BOM:
From the above I can determine that this record has no parents (no value in the Value element for REL_INV_BOM. I can also determine that it has 4 children, and I can determine what each of those children might be - including their version, release, and state name. What I don't see there is Quantity information for each child.
It also appears that the only tabs for which any information is provided are the Item Details, BOM, and Where Used tabs. This means no access to Grid, Workflow, Attachments, Milestones, Project Management, Relationships, etc.
Is that the case, or am I missing something? If that's all that is currently available, are there plans to expose more information in the future?
Solved! Go to Solution.
Forrest,
Correct, and yes we will be expanding on what is available by REST in the future
.
As for what you can do with REST, I suggest looking into the developers section in the wikihelp:
http://wikihelp.autodesk.com/PLM_360/enu/Help/Help/0086-Develope86/0096-PLM_360_96
Thanks Joe, very helpful as always. I do have one more question. Is it in any way possible to make web requests from a script? I really need to get at BOM information for records, but that tab is currently unavailable using the existing scripting API. However, if I can make a web request from a script, I can use REST to get the BOM information for the record in question.
I tried using XMLHttpRequest, but that functionality doesn't appear to be available in scripting. Although now that I think about it, the short run time cap for scripts might make that method nonviable anyway.
ForrestJudd,
For BOM relationship information, we have a "boms" end point in the existing REST API: /api/rest/v1/workspaces/<wsid>/items/<dmsid>/boms
This will provide you with the BOM information you seek 🙂
As for the XMLHttpRequest from script, I'd like to chat with you a bit to understand how you would use this feature. BTW, this would be a great one to add to the IdeaStation!
-Jared
Jared,
Thanks for that! Are there any other endpoints that are not documented on the wikihelp? The only features documented on the wikihelp are authorization (login, logout, and get user information), GET for workspaces, and GET for item information. There is also no documentation for any POST or PUT for item information update, assuming those calls even exist.
My immediate need for HttpWebRequest from a script would be to make a call to the REST API to get access to Item BOM information. It's my understanding that the built-in scripting doesn't have access to Item BOM information. If I could make a web request, though, I could get that BOM information using REST and use that in my script instead.
The basic gist of what I want to do is take an item specified by a user and 'explode' its BOM out onto a grid. Each grid row would have one of the children and the child's quantity, and that quantity would be modified by the quantity of the parent.
The way it stands now, users will have to review the Item's BOM on a different browser tab (or in a different window) and manually add each line item to the grid with the appropriate quantity. This could be tedious for larger assesmblies, and the process is open to mistakes in both item and quantity specification.
Can't find what you're looking for? Ask the community or share your knowledge.