web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Electronic reporting: can't check if getFileContentContainer is empty

(0) ShareShare
ReportReport
Posted on by 258
Dear Dynamics Community members,
 
In a model mapping, I'm getting file contents for attachments through this function: DocuRef.'getFileContentAsContainer()'
 
In the format mapping, I'm trying to evaluate if this value (referenced below through "@.FileContentContainer") is empty in the Enabled field. No function successfully uses this information, unfortunately.
 
I've tried:
 
A:
IF( @.FileContentContainer = "", false, true)
Result:
No overload for function = matches the input parameters
Function arguments are of incorrect types in 'IF'
 
B:
IF( ISEMPTY(@.FileContentContainer), false, true)
Result:
Function arguments are of incorrect types in 'ISEMPTY'
Function arguments are of incorrect types in 'IF'
 
C:
IF( @.FileContentContainer = NULLCONTAINER(), false, true)
Result:
No overload for function = matches the input parameters
Function arguments are of incorrect types in 'IF'
 
D:
IF( Base64StringToContainer(@.FileContentContainer) = "", false, true)
Result:
Function arguments are of incorrect types in 'Base64StringToContainer'
No overload for function = matches the input parameters
Function arguments are of incorrect types in 'IF'
 
E:
IF( Base64StringToContainer(@.FileContentContainer) = EMPTYLIST(), false, true)
Result:
Function arguments are of incorrect types in 'Base64StringToContainer'
No overload for function = matches the input parameters
Function arguments are of incorrect types in 'IF'
 
F:
IF( ISEMPTY(Base64StringToContainer(@.FileContentContainer)), false, true)
Result:
Function arguments are of incorrect types in 'Base64StringToContainer'
Function arguments are of incorrect types in 'ISEMPTY'
Function arguments are of incorrect types in 'IF'
 
G:
IF( LEN(@.FileContentContainer) < 1, false, true)
Result:
Function arguments are of incorrect types in 'LEN'
No overload for function < matches the input parameters
Function arguments are of incorrect types in 'IF'
 
H:
IF( COUNT(@.FileContentContainer) < 1, false, true)
Result:
Function arguments are of incorrect types in 'COUNT'
No overload for function < matches the input parameters
Function arguments are of incorrect types in 'IF'
 
I:
IF( INT64VALUE(@.FileContentContainer) = "", false, true)
Result:
No overload for function INT64VALUE matches the input parameters
No overload for function = matches the input parameters
Function arguments are of incorrect types in 'IF'
 
I feel like I tried everything but this value can't be evaluated, it seems. Any suggestions appreciated.
Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 671 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 365 Super User 2026 Season 1

#3
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 309

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans