- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
NIFI GetMongo Dynamic Query Creation
- Labels:
-
NiFi Registry
Created ‎05-27-2021 05:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am trying to create query with attribute value in getMongo.
My attribute is itemType, i want to create query using this.
{
"itemType": ${itemType}
}
if i put hard code value there instead of ${itemType} it works
Created ‎05-28-2021 09:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Amn
Where did you define the NiFi Attribute "${itemType}" (FlowFile Attribute on a source FlowFile driving execution of GetMongo processor or NiFi variable registry)?
NiFi is also case sensitive, so for example "ItemType" and "itemType" would be considered different variables.
If you found this helpful to yoru query, please take a moment to login and click "Accept" on this solution.
Thank you,
Matt
Created ‎05-28-2021 09:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Amn
Where did you define the NiFi Attribute "${itemType}" (FlowFile Attribute on a source FlowFile driving execution of GetMongo processor or NiFi variable registry)?
NiFi is also case sensitive, so for example "ItemType" and "itemType" would be considered different variables.
If you found this helpful to yoru query, please take a moment to login and click "Accept" on this solution.
Thank you,
Matt
