PKCS7.SignedDataContent
-----------------------

Queries content signed.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Certificates](component_Certificates.md) | [9.1](newinversion91.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "PKCS7.SignedDataContent"; PKCS7 Reference { ; Encoding } ) 

**MBS**( **"PKCS7.SignedDataContent";** /\* Queries content signed. \*/  
**$PKCS7 Reference**; /\* The reference to the PKCS#7.e.g. $pkcs7 \*/   
**$Encoding**) /\* Optional; The text encoding for result.   
Default is native.  
Can be hex or base64 for binary data.e.g. "UTF8" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| PKCS7 Reference | The reference to the PKCS#7. | $pkcs7 |  |
| Encoding | The text encoding for result.    Default is native.   Can be hex or base64 for binary data.   Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the [FAQ](https://www.monkeybreadsoftware.com/filemaker/faq.shtml). | "UTF8" | Optional |

### Result

Returns text or error.

### Description

Queries content signed.  
In Italy digitally signed e-invoices in CAdES format include an embedded XML payload in a signed P7M file.  
### Examples

Read XML embedded in p7m file:

 Set Variable \[ $pkcs7 ; Value: MBS ( "PKCS7.ReadFromFile"; "/Users/cs/Desktop/IT12345.xml.p7m" ) \]   
Show Custom Dialog \[ "Content" ; MBS ( "PKCS7.SignedDataContent"; $pkcs7 ; "UTF-8" ) \]   
Set Variable \[ $r ; Value: MBS ( "PKCS7.Release"; $pkcs7 ) \]  
### See also

- [PKCS7.ReadFromFile](PKCS7ReadFromFile.md)
- [PKCS7.Release](PKCS7Release.md)
- [PKCS7.SignedDataCert](PKCS7SignedDataCert.md)
- [PKCS7.SignedDataCertCount](PKCS7SignedDataCertCount.md)

This function checks for a license.

Created 6th March 2019 , last changed 21st July 2019

  
[PKCS7.SignedDataCertCount](PKCS7SignedDataCertCount.md) - [PKey.Bits](PKeyBits.md)

[HTML Version](PKCS7SignedDataContent.shtml)