Hey there,
I am creating a flow to have data within an outlook email template flow into a Smartsheet. During testing, the compose actions were working as expected, but when set to production it started causing a substring length error. Here is an example of the compose function created:
trim(substring(outputs('Convert_Email_into_Text')?['body'], outputs('Pulls_Beginning_Index_of_Interview_Type'), sub(indexOf(outputs('Convert_Email_into_Text')?['body'], 'Interview Location:'), outputs('Pulls_Beginning_Index_of_Interview_Type'))))
Since the emails that arrive are in the same template, the idea was to use Indexes to pull the necessary data. The weird part is that this will work for some emails, and not others. The error jumps to different compose actions, essentially the same as above just using different actions. Anyone have thoughts of why or a better solution?