Member since
03-01-2024
2
Posts
1
Kudos Received
0
Solutions
05-30-2024
11:09 PM
@AidenMartin wrote: Hi All, I hope you are doing well. Please help me with below request. Currenty our client is using MS Dynamics and they gave basic details required to fetch token. In Postman - 1. I'm choosing OAuth 2.0 in Authorization. 2. Giving the basic details(shared below) it asked for. 3. Then clicking on "Get New Access Token" 4. New window pops up to enter my Username and Password. 5. Post validating Creds, it gives the Token in another window. Problem : All the steps which I'm doing in postman, I want to implement the same in Apache Nifi(to fetch the Token). Basically I need an API along with a request payload to fetch the token.(I'm worried if it is possible to do so in one call, as we need to give User Creds too). Basic Details - Token Name - MyToken Grant Type - implicit Callback URL - https://callbackUrl Auth URL - https://login.microsoftonline.com/common/floridablue/oauth2/authorise?resource=https://company007.crm5.dynamic.com/ Client ID - d9cdd9f1-3fjdf45-005jl-9e5b-1bb87-4jdfhn Hello, @AidenMartin Certainly! To automate the OAuth 2.0 token retrieval in Apache NiFi, you can: Use the InvokeHTTP processor to request the token. Extract the token with EvaluateJsonPath. Store and use the token in subsequent requests. I hope this is helpful to you. Best Regard, Diana Hill
... View more
03-06-2024
02:54 AM
2 Kudos
Hi @AidenMartin , According to the documentation of the validate csv apply processors, the Optional has to take a type parameter : " ... Schema property: Null, ParseDate("dd/MM/yyyy"), Optional(ParseDouble()) Meaning: the input CSV has three columns, the first one can be null and has no specification, the second one must be a date formatted as expected, and the third one must a double or null (no value). ... " If you are not sure of the data type then just use Null instead of Optional, which means the value can be provided or not. reference: https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.23.2/org.apache.nifi.processors.standard.ValidateCsv/additionalDetails.html If you find this is helpful please accept solution.
... View more