Detailed flow steps
substring(outputs('Compose_Replace_NewLine'),0,outputs('Compose_Index_of_Thanks'))
indexOf(outputs('Compose_Replace_NewLine'),'Thanks')
replace(outputs('Compose_Email_Body'),outputs('Compose_NewLine'),'')
Im need to extract body from the email and create item in body column under sharepoint list but issue im running the flow is that
InvalidTemplate. The length of substring can't be longer than '8' which is the length of the source string.