I want to change the text shown in the Identifier field of my imported data source in the External Data system using Workbench Scripting. How can I do this?
Select the External Data system and identify its name by looking for the 'Directory Name' property in the Properties panel. It should be something like SYS-5 (number would be different in your case). Then use the script below to change the name. In this example case, the name is changed to 'test_identifier'.
system1 = GetSystem(Name="SYS 5") setup1 = system1.GetContainer(ComponentName="Setup") externalLoadData1 = setup1.GetExternalLoadData() externalLoadFileData1 = externalLoadData1.GetExternalLoadFileData(Name="ExternalLoadFileData") externalLoadFileDataProperty1 = externalLoadFileData1.GetDataProperty() externalLoadFileDataProperty1.FileIdentifier = "test_identifier"