Skip to main content
Solved

How to write globalids from AGO without the curly braces?

  • December 11, 2023
  • 4 replies
  • 86 views

masonb12
Contributor
Forum|alt.badge.img+14

Hi, I can read an arcgis online feature service using fme AGO reader. The globalids all have a curly brackets in the inspector. Is there a way to write the feature to a new table without the curly brackets. Curly brackets are messing things up when using globalids in url links. thanks

Best answer by hkingsbury

Before you write the data out, you can use a string replacer and regex to replace the curly braces with nothing.

 

Set the mode of the string replacer to  "Replace Regular Expression" and the "Text To Replace" as 

({|})

Leave the "Replacement Text" blank.

 

The above regex 'translates' to find "{" or "}"

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

hkingsbury
Celebrity
Forum|alt.badge.img+65
  • Celebrity
  • Best Answer
  • December 12, 2023

Before you write the data out, you can use a string replacer and regex to replace the curly braces with nothing.

 

Set the mode of the string replacer to  "Replace Regular Expression" and the "Text To Replace" as 

({|})

Leave the "Replacement Text" blank.

 

The above regex 'translates' to find "{" or "}"


masonb12
Contributor
Forum|alt.badge.img+14
  • Author
  • Contributor
  • December 12, 2023

Thanks! that works very well!


masonb12
Contributor
Forum|alt.badge.img+14
  • Author
  • Contributor
  • December 12, 2023

Also, is it possible to also add .jpg to the end of each globalid

thanks


hkingsbury
Celebrity
Forum|alt.badge.img+65
  • Celebrity
  • December 12, 2023

Also, is it possible to also add .jpg to the end of each globalid

thanks

you can appended it on in an attribute creator

image