I am trying to fetch some data via an api and want to set the result of the api as an attribute of the flow file. I am able to fetch the data via the api but cannot seem to set it as a an attribute.

Apache Nifi: how to set the content of a flow file as an attribute
331 views Asked by Suyash Dhondkar At
1
There are 1 answers
Related Questions in APACHE-NIFI
- How to split a flow file json in nifi
- Nifi queryrecord compare regex using rpath on first level of record
- How to compare two csv files line by line in apachi nifi flow file using groovy script
- Apache nifi Invoke Http with url containing %2F
- localhost 8443 refused to connect
- Apache NIFI: Unable to write flow content
- Copy/Merge multiple HDFS files using Nifi Processor
- How to count the number of records of a JSON object using JOLT
- Jolt to remove the slashes and extract the nested json
- Customize Apache Nifi Frontend
- Apache NIFI getMongo An unexpected error has occurred: The specified data reference URI is not valid
- Filter JSON Array to Keep Only the Entry with the Latest Date/Time Using Jolt
- How to get hold of input file from a flowfile?
- How to let Airflow know that a Ni-Fi pipeline involving multiple flows is complete
- Creating connection from RouteOnAttribute to GetFile
Related Questions in APACHE-NIFI-REGISTRY
- Convert flow file contents of ExecuteStreamCommand to Json format
- Apache Nifi: how to set the content of a flow file as an attribute
- p12 certificate not working on mac (Ventura 13.4.1)
- ssl certificate not working - ERR_BAD_SSL_CLIENT_AUTH_CERT
- Nifi registry not considering environmental variable NIFI_REGISTRY_WEB_HTTPS_PORT
- In apache nifi can getsftp be a subsequent processor
- Nifi-registry pod error on flow_git when using custom image
- NiFi-Registry and Git Integration: Git User configuration and authentication
- Problem with connecting Nifi and Nifi registry via LDAP (anonymous user)
- NiFI registry encrypt-config.sh does not encrypt the providers.xml "Remote Access Password"
- When init nifi-toolkit/encrypt-config.sh, in nifi-registry.properties doesn't have encrypted password for nifi.registry.db.password
- Upgrade Nifi Registry
- Apache Nifi Install not working with java 8 (Launched Apache NiFi but could not determined the Process ID)
- NiFi Registry Access Denied
- How to add keystore and truststore of NiFi registry server to access NiFi registry URL from NiFi server
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)

You could make use of the
EvaluateJsonPathprocessor to get the desired data from the flowfile into the Attribute.The below sample flow invokes an API and gets data
The content of the response that is received
Properties set in the
EvaluateJsonPathto pull the length value as an AttributeThe output of the processor sets the Attribute Key with its corresponding value
To set the API response as a whole into the Attribute set the
KEYwith the value as$andReturn TypeasJSON