Skip to main content
Solved

How to expose/use attachments from json


Hi

I have a workbench looking at a json feed: https://niord.dma.dk/rest/public/v1/messages?lang=dk&domain=niord-nm

The feed contains attachments for some of the features, with a column specifying a link to the location of the attachment (PNG file typically):

I would like to populate a field with this url, so that I can sent it to correxponding features in a SDE database. i tried to use AttributeExposer and AttributeCreator to extract the link to a new coloumn, but this seems impossible as the coloumns with the attachment information is not available in the list of attributes to expose/create (should be between areas and charts):

How can I extract the information from attachments coloumns to an attribute in FME then?

Here is an example of one of the attachment files:

https://niord.dma.dk/rest/repo/file/messages/e/f0/ef03d235-70af-44e9-8a20-8c506534abfe/80/Overview%20with%20national%20measures_5.png

Best answer by ebygomm

If you wanted to expose attachments{0}.path you just type it in the AttributeExposer, it won't appear in the drop down. This is a list item though, so if you want to get all the values you will need to explode the list or similar.

View original
Did this help you find an answer to your question?

2 replies

ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • Best Answer
  • March 23, 2020

If you wanted to expose attachments{0}.path you just type it in the AttributeExposer, it won't appear in the drop down. This is a list item though, so if you want to get all the values you will need to explode the list or similar.


daraghatsafe
Forum|alt.badge.img

Hi @kristianbj were you able to use the AttributeExposer to achieve your goal?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings