cancel
Showing results for 
Search instead for 
Did you mean: 

Condition using a String function

Mash_Gravy
Explorer
0 Kudos
158

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

@MartinaKolafova Thank you for your assistance, you are a superstar. The For-each loop worked perfectly. The true/false that precede the document names are the evaluations of the endsWith statement. 

Screenshot 2025-01-14 094455.pngScreenshot 2025-01-14 094417.png