Access Json Data in Uploaded File


I’m currently trying to access the data of a file, which a user previously uploaded in a camunda task.

It’s a JSON File, that is supposed to be opened and worked with in a JS service. While I’m able to access the file Object in JS and getting information about it’s whereabouts, the load() function throws an exception anytime it’s called.

Currently my code inside the topic is looking like this:
file = task.variables.get(‘jsonData’).load();

How can I get the load function to work?
Thanks in advance!

Found the issue :slight_smile:

1 Like