cancel
Showing results for 
Search instead for 
Did you mean: 

Condition using a String function

Mash_Gravy
Explorer
0 Kudos
174

Greetings experts, I am trying to use the endsWith function in as a condition, but I keeping getting an error that says 'type not found for variable "endsWith" '. I have included the Core SDK to use the function.

What I am trying to do is that I am evaluating attachments in Outlook (using the Outlook SDK), and all the attachments that end with .pdf are the attachments that I want to process? But I cannot get the endsWith function to work and I cannot find any documentation that shows an example of this.

Screenshot 2025-01-08 105705.png

Screenshot 2025-01-13 112902.png

SAP Build Process Automation SAP Business Technology Platform 

View Entire Topic
Mash_Gravy
Explorer
0 Kudos

May I add the my Step6.attach variable is list of Strings. When I enter a full stop these are the options I have. But in essence the provided line of code didn't work

Screenshot 2025-01-13 150356.pngScreenshot 2025-01-13 150335.png

Thanks.

MartinaKolafova
Participant
0 Kudos
If you are dealing with a list of strings, it is necessary to add a For Each loop and perform an action for each string in the list. Best regards, Martina