RPANF-e
Returns the selected fields from a NF-e XML
Returns the selected fields from a NF-e XML
Gets specific fields of a Nota Fiscal Eletrônica (NF-e) already opened in the flow. It allows you to select which fields of the NF-e XML must be extracted for use in the following steps.
Options
Select a NF-e
Select the Nota Fiscal Eletrônica that was opened earlier in the flow by the Open NF-e action.
Name of fields
Enter the names of the XML fields you want to extract from the NF-e. Use the Add button to include multiple fields.
Returns
Javascript code
js
actions["action-id"].fields // object with the values of each field requested (Any)
Field selection
- fields — object in which each key is a requested field name and the value is the list of all the values found for it in the NF-e (Any)
Rules and Conditions
- The Select a NF-e and Name of fields fields are required.
- The NF-e must have been opened beforehand by an NF-e reading action.
- The field names must match exactly the XML tags of the NF-e. The search goes through the whole structure of the invoice, so a tag that appears in several places returns all the values found.
- Fields that are not found do not appear in the return.
- For structured NF-e fields (issuer, recipient, products), use the specific actions of the NF-e group.