Hi there, How can I convert nodename string to nodealias string Through API?
TreePathUtils.GetSafeNodeAlias("string","SiteName")
It is worked better for me ,because I did not know about [NodeID] when running the script. But still should care about "`".
If you're creating a new document then it will be done automatically based on other values you set.
before I create the document/node , I need to find out if the document exist or not ? and I have dataset of all [nodename]s from another system to compare ,but the only compare method that I find in API is based on [Nodealias]s so I need to convert nodename to nodealias to compare them all one by one.
I`m looking for method to convert actual text to nodealiase , like ValidationHelper.GetCodeName(String name)
Try using TreeProvider.GetUniqueNodeAlias(string, string, int, int)
TreeProvider.GetUniqueNodeAlias(string, string, int, int)
Thank you Brenden , This is what exactly I want :)
Please, sign in to be able to submit a new answer.