How to get guid after I submit a new asset?
Hi,
I use ant script to submit a new asset, I want to get the guid to combine a url and then use this url to access the asset I just submit. How can I do that? |
3 answers
|
Also, with both the <modify> and <submit> tasks, you can use the guidProperty parameter to get the GUID of the asset that was created/modified.
<ram:submit server="ramServer" guidProperty="asset.guid"> |
Are you going to use the url from the Ant script?
regardless, here is how you will get the GUID The following code will create an asset or modify if it is already existing - it also set assetID as a (Ant) reference to it. Note also the <ram:propertyHelper/> ... which helps you to "." introspect.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.