# NFC Parse Ndef Message

Provides several formats to parse an NDEF (NFC Data Exchange Format) Message to retrieve specific information from it.

Action available for the following operating systems:

![](/files/kfMeq0OanEe5OOx5RmUn)

### Parameters

* **Message** string - The NDEF message to parse.
* **Option** unquoted string - The information to retrieve from the message. It can be one of:
  * **Get Number of Records** - Get the total number of records in the NDEF message.
    * **Target for Record Count** numeric - The control or variable that will receive the number of records.
  * **Raw Data** - To retrieve the NDEF record raw content.
    * **Record Index** numeric - Index of the record to retrieve.
    * **Target for TNF** numeric - The control or variable that will receive the TNF record. Check [NFC Create Ndef Message](/kalipso5/developing/form/actions/actions-description/group-rfid/nfc-create-ndef-message.md) for possible values.
    * **Target for Type** string - The control or variable that will receive the TNF type.
    * **Target for Payload** string - The control or variable that will receive the record content. This is retrieved without any decoding done by Kalipso. Decode with **UTF8ToString()**, or other type of decoding.
    * **Target for ID** string - The control or variable that will receive the ID if it has one.
  * **URI** - Retrieve the URI of a URI record.
    * **Record Index** numeric - Index of the record to retrieve data.
    * **Target for URI** string - The control or variable that will receive the URI.
    * **Target for ID** string - The control or variable that will receive the ID if it has one.
  * **Text** - To retrieve the text from a text NDEF record.
    * **Target for Language Code** string - The control or variable that will receive the text language code.
    * **Target for Text** string - The control or variable that will receive the record text.
    * **Target for ID** string - The control or variable that will receive the ID if it has one.
  * **MIME** - Retrieve the MIME content of a MIME record.
    * **Record Index** numeric - Index of the record to retrieve data.
    * **Target for Type** string - The control or variable that will receive the record MIME type.
    * **Target for Data** string - The control or variable that will receive record MIME data. the record MIME type. This is retrieved without any decoding done by Kalipso. Decode with **UTF8ToString(),** or other type of decoding.
    * **Target for ID** string - The control or variable that will receive the ID if it has one.
  * **Smart Poster** -To retrieve a smart poster content from an NDEF record.
    * **Record Index** numeric - The record index to retrieve the data from.
    * **Target for Message** string - The control or variable that will receive the Smart Poster Message. Normally this is an NDEF message that can be parsed with another call to this action.
    * **Target for ID** string - The control or variable that will receive the ID if it has one.
  * **External** - To retrieve a content from an NDEF record of external type. Normally this is application specific data.
    * **Record Index** numeric - The record index to retrieve the data from.
    * **Target for Domain** string - The control or variable that will receive the record domain.
    * **Target for Type** string - The control or variable that will receive the record type.
    * **Target for Data** string - The control or variable that will receive the record data. This is retrieved without any decoding done by Kalipso. Decode with **UTF8ToString()**, or other type of decoding.
    * **Target for ID** string - The control or variable that will receive the ID if it has one.

{% hint style="info" %}
NFC uses NDEF messages to transmit information/data. An NDEF message is composed of one or more NDEF records. You can use this action to extract data from an NDEF message without having to manually implement the NDEF message format, but you can manually parse an NDEF message in Kalipso if you want to.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sysdevmobile.com/kalipso5/developing/form/actions/actions-description/group-rfid/nfc-parse-ndef-message.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
