Hi @Hague,
Thanks for the reply
I have already setup two compose actions
one to get the contenttype and one to get the actual content
items('Apply_to_each_Attachment')?['contentType']
items('Apply_to_each_Attachment')?['contentBytes']
These both populate with the correct data
if I replace the 'Get_attachment_content' to point to my compose items it reports an error in relation to the header
<img src="data:@{outputs('ComposeTest')?['headers']['Content-Type']};base64,@{outputs('ComposeTest')?['body']}" />
error:
InvalidTemplate. Unable to process template language expressions in action 'Send_an_email_(V2)' inputs at line '0' and column '0': 'The template language expression 'outputs('ComposeTest')['headers']['Content-Type']' cannot be evaluated because property 'headers' cannot be selected. Property selection is not supported on values of type 'String'. Please see https://aka.ms/logicexpressions for usage details.'.
if I remove the headers and use the following, this also reports error as doesn't like contentType
<img src="data:@{outputs('ComposeContentType')?['contentType']};base64,@{outputs('ComposeContent')?['body']}" />
but the following doesn't report an error but doesn't return anything even though the outputs contain data
ComposeContentType = 'image/png'
ComposeContent = contains the data content which matches what would be output into the saved file
<img src="data:@{outputs('ComposeContentType')?['body']};base64,@{outputs('ComposeContent')?['body']}" />
When creating an action to get the content within the apply to each loop, i can only get the content using items on the apply loop