{"id":36278,"date":"2024-08-21T13:59:37","date_gmt":"2024-08-21T12:59:37","guid":{"rendered":"https:\/\/developers.ila.cegid.com\/valuekeep\/\/"},"modified":"2024-12-26T18:07:24","modified_gmt":"2024-12-26T17:07:24","slug":"webapi-how-to-get-the-list-of-asset-attachments-regarding-a-work-order","status":"publish","type":"valuekeep","link":"https:\/\/developers.ila.cegid.com\/en\/valuekeep\/development-en\/assets-en\/article\/webapi-how-to-get-the-list-of-asset-attachments-regarding-a-work-order","title":{"rendered":"How to get the list of asset attachments regarding a work order?"},"content":{"rendered":"<section class=\"av_textblock_section \"  itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/CreativeWork\" ><div class='avia_textblock  '   itemprop=\"text\" ><div style=\"overflow-wrap: break-word;\">\n<div class=\"sty__pbwpx3__cls sty__go11lt__cls sty__v05dim__cls sty__532nj2__cls sty__yyi6ui__cls sty__72jm43__cls sty__pk04g0__cls sty__mvym0s__cls sty__lk793l__cls sty__sk0ter__cls sty__eze3fl__cls sty__g9qrlp__cls sty__g5dbso__cls sty__qz52bb__cls\" style=\"overflow-wrap: break-word;\">\n<p class=\"MsoNormal\" style=\"margin-bottom: 0cm; line-height: normal;\"><span lang=\"EN-US\" style=\"font-size: 12pt;\">This method allows, in a simplified way, to obtain the list of attachments of the assets referring to a work order.<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0cm; line-height: normal;\"><span lang=\"EN-US\" style=\"font-size: 12pt;\">The method to be used when getting the list is:<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0cm; line-height: normal;\"><span lang=\"EN-US\" style=\"font-size: 12pt;\">GET\u00a0\u00a0url\/api\/mytenant\/myorganization\/maintenance\/workorders\/getWorkordersAttachementsAssets<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0cm; line-height: normal;\"><span lang=\"EN-US\" style=\"font-size: 11.5pt;\">When this method is executed successfully, it returns HttpStatusCode.200OK.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">[\r\n\r\n\u00a0\u00a0\u00a0\u00a0{\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"name\":\u00a0\"AUD-SUB_0000007368_20221121_092616245.pdf\",\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"size\":\u00a0381428.000000,\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"sizeDecimalPlaces\":\u00a0null,\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"mediaType\":\u00a0\"application\/pdf\",\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"workOrderId\":\u00a0\"b4fa6c64-9670-ed11-a81b-000d3ac29e92\",\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"path\":\u00a0\"801769\/801769-0001\/maintenance\/workOrders\/b4fa6c64-9670-ed11-a81b-000d3ac29e92\/attachment?fileName=0000007368_20221121_092616245.pdf&amp;index=0\"\r\n\r\n\u00a0\u00a0\u00a0\u00a0}\r\n\r\n]<\/pre>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0cm; line-height: normal;\"><span lang=\"EN-US\" style=\"font-size: 12pt;\">This method allows you to list asset attachments according to the filled parameters:<\/span><\/p>\n<ul>\n<li class=\"MsoNormal\" style=\"text-indent: 0cm; line-height: normal;\"><span lang=\"EN-US\" style=\"font-size: 12pt;\">assignedTo: Person to whom the work order is assigned.<\/span><\/li>\n<li class=\"MsoNormal\" style=\"text-indent: 0cm; line-height: normal;\"><span lang=\"EN-US\" style=\"font-size: 12pt;\">company: The company&#8217;s key.<\/span><\/li>\n<li><span lang=\"EN-US\" style=\"font-size: 12pt; line-height: 107%;\">modifiedOn: Gets the attachments after the inserted date.<\/span><\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div><\/div>\n<\/div><\/section>\n","protected":false},"excerpt":{"rendered":"","protected":false},"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","format":"standard","tags":[896,904],"videos_tax":[],"post-type":[],"categoria-valuekeep":[943],"class_list":["post-36278","valuekeep","type-valuekeep","status-publish","format-standard","hentry","tag-attachments","tag-work-orders","categoria-valuekeep-assets-en"],"_links":{"self":[{"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/valuekeep\/36278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/valuekeep"}],"about":[{"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/types\/valuekeep"}],"replies":[{"embeddable":true,"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/comments?post=36278"}],"version-history":[{"count":0,"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/valuekeep\/36278\/revisions"}],"wp:attachment":[{"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/media?parent=36278"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/tags?post=36278"},{"taxonomy":"videos_tax","embeddable":true,"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/videos_tax?post=36278"},{"taxonomy":"post-type","embeddable":true,"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/post-type?post=36278"},{"taxonomy":"categoria-valuekeep","embeddable":true,"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/categoria-valuekeep?post=36278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}