Get Asset - With wildcard

I am trying to use Get Asset but only want the first part of the string to be sought as the end will change from DEV, QA, PROD. How can I get the asset by looking for only the first part of the asset SessionID-Automation#1 and not the full SessionID-Automation#1-DEV?

I would use a variable and set it up with the environment prior to the get asset with an assign, then utilize the variable in the asset field of the get asset activity.

environment = β€œdev”
theAsset = β€œSessionID-Automation#1” + environment

Hope this helps!

@lhendrix,

After use Get Asset, you will asset value from orchestrator then use below expression:

Asset = assetValue.split(β€œ-”.TocharArray)

RequiredAsset = Asset(0)+β€œ-”+Asset(1)

Thanks so much, lakshman. It worked perfectly!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.