web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Split Text / URL in Dynamics CRM

(0) ShareShare
ReportReport
Posted on by 50

Hello together,

 

we are working the Visit-Entity from ClickDimensions. From every page we receive a URL which contain specific campaign Code in it. With this Code we want to connect the visit to the campaign for reporting reasons. Now we want to create a workflow which is able to split / separate last 16 characters from the URL, look after campaign with the Code and assign it to the visit. This should happen by creating a new visit.

Is there any function how can we separate last 16 characters from the URL?

7367.URL.png

Thank you in advance

*This post is locked for comments

I have the same question (0)
  • Leon Podiev Profile Picture
    50 on at
    RE: Split Text / URL in Dynamics CRM

    Thank you so much Ryan!

  • Verified answer
    Ryan Maclean Profile Picture
    3,070 on at
    RE: Split Text / URL in Dynamics CRM

    Hi Leon,

    You could use something like:

    [A-Z]{3}-[A-Z0-9]{5}-[A-Z0-9]{6}

    This looks for 3 capital letters, then 5 alphanumeric characters, then 6 alphanumeric characters, each separated by a hyphen

  • Leon Podiev Profile Picture
    50 on at
    RE: Split Text / URL in Dynamics CRM

    Hello Ryan, thank you for you Suggestion. How should the pattern look like in my case? CMP-XXX-XXXX?

  • Leon Podiev Profile Picture
    50 on at
    RE: Split Text / URL in Dynamics CRM

    Thank you for this two possibilities. I’ll have a look which one is better for our Environment.

  • Verified answer
    Ryan Maclean Profile Picture
    3,070 on at
    RE: Split Text / URL in Dynamics CRM

    Hi Leon,

    You could try using the RegEx Extract function from Jason Lattimer's String Workflow Utilities solution: github.com/.../releases

    This would allow you to extract the string you're looking for.

    I have used this in my environment to extract an error code from an error message, see below:

    44320.Capture.PNG

  • Verified answer
    Radu Chiribelea Profile Picture
    6,667 on at
    RE: Split Text / URL in Dynamics CRM

    Hi Leon,

    You could create a custom workflow activity and move the logic there.

    Then, add the workflow activity as a step to your workflow.

    Hope this helps!

    Radu

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans