cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IbrahimKhalil1
Frequent Visitor

Flow issue

Hallo,

 

when i am using the functions split, substring, index of i always get the error "The template language function 'split' expects its first parameter to be of type string. The provided value is of type 'Array'." can anybody help please ?

 

Thank you,

Ibrahim

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @IbrahimKhalil1,

 

You could put the Email body into the HTML to text action directly, there is no need to create an Apply to each action, for example:

Screenshot 2021-03-01 154054.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
soysalf
Resolver I
Resolver I

Hi @IbrahimKhalil1 ,

If you have an array as an initialized variable, then for the function that requires a string like substring etc, you should get the array item

soysalf_0-1614338590021.png

 

substring(item(),0,3).
If this is not your case, it would be better if you add the screenshots of your own flow.

 

IbrahimKhalil1
Frequent Visitor

Hi @soysalf 

 

Thank you for your reply.

 

actually my fow is nicht complex, i want to take the body of an email and insert it to an excel file, actually i want to take several things from the emails and add them to an excel file, below is the screen shot:
Example.PNG

 

Thank you,

Ibrahim

Hi @soysalf 

 

below is error also:

example2.PNG

Hi @IbrahimKhalil1,

 

You could put the Email body into the HTML to text action directly, there is no need to create an Apply to each action, for example:

Screenshot 2021-03-01 154054.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi @soysalf ,

 

that worked for me. many thanks for your help.

 

Thank you,

Ibrahim

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (61,393)