That is correct, substring() will work provided the length of leading/trailing characters are fixed.
Main Topics
Browse All TopicsHi,
I am trying to create a workflow rule within Oracle CRM on Demand Release 16.
I am trying to read in a line of text from an activity, but i want to only read in a certain portion of the text i.e:
text = "FAM.536566.DRM"
Desired text ="536566"
I have tried using the LEFT/RIGHT function but this still leaves leading or trailing text.
is there a way to simply say, ignore the first 4 characters and then only read the next 6 characters?
I had a look at this post:
https://secure.experts-exc
But it seems to be only useful when you know the exact text you want to remove.
Any hints or pointers would be great, Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi,
Thanks for the replies so far, maybe i should go into a bit more detail.
I have setup the workflow to check for a certain activity that begins with "FAM"
Then i have setup an email notification.
within the email notification i was to say something along the lines of:
Message recieved, ID 536566
The ID number is taken from the whole message: FAM.536566.DRM.
So, in the body of the email for the workflow i have:
Message received, ID %%%substring([<Description>]
THis returns an error message saying its invalid with 3 parameters.
Im using R16 of CRM on Demand.
Thanks,
Business Accounts
Answer for Membership
by: usachrisk1983Posted on 2009-05-05 at 04:41:02ID: 24303520
What you're looking for is SUBSTR
select substr(fieldName,5,6) from tblName
will return the characters startring at position 5 and moving right 6 characters.