Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Is there a way to get text after a certain word ?
Topic Summary:
Created On: 05/12/2018 08:19 AM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 05/12/2018 08:19 AM
User is offline View Users Profile Print this message

Author Icon
ConTrelos
Apprentice (20-49)

Posts: 44
Joined: 09/01/2013

Hey guys.
I'm basically trying to read a PDF file and get the text inside of it, but I only need certain parts of it to be allocated to different variables.
For example, look for the word "Name:" and copy the text after it and allocate it to the "CustomerName" variable
Also, read the word "ProdCode:" copy all the characters up until the space and allocate it to the "ProductCode" variable.

Any help you guys have would be greatly appreciated.

 Category Survey
 05/14/2018 12:33 PM
User is offline View Users Profile Print this message

Author Icon
Alex Escalante
HelpSystems

Posts: 871
Joined: 02/26/2014

Hello ConTrelos,

There is a function that will allow you to grab characters from any variable value. This function coupled with our "trim" action should allow you to complete your goal.

The way the function works is that you give it a set number of spaces to grab. Lets work with a variable that contains "Name: ConTrelos". Lets call this variable varName. In this case, since we know "Name: " will always be present, we will grab the first 6 characters:

%Left(varName, 6)%

As you can see, the function simply specified the direction from where we are grabbing the characters from (start from the Left), the variable we are working with (varName), and the amount of characters we will be grabbing "6".

With this variable now populated, we can now use it to trim that text from the overall text.

Here is an example which you can copy and paste into task builder:

 Category Survey



Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)


-------------------------

Alex Escalante | Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 355 guests browsing this forum, which makes a total of 355 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2019 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog