Forum Discussion

Marco's avatar
Marco
Contributor II
5 months ago

Remove text from entities in Data Management

Hi Everyone. I have some entities that have text at the end, for example “_Test”, and what I want to do is that in the data management I can remove the text at the end to use the original entities....
  • TheJonG's avatar
    TheJonG
    5 months ago

    I think I am missing something but I think you just need to manipulate the source entity and leave the entity off the destination side. 

    You are copying from Entity to Entity_Test, correct?

    If you define the _Test entities in the DM Step then your rule would look like this:

    Dim povEntity As String = api.Pov.Entity.Name
    Dim povEntityRemove_Test As String = povEntity.Replace("_Test","")
    api.Data.calculate("A#S_HEADCOUNT = E#" & povEntityRemove_Test & ":A#Headcount")