Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7943159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:11:12+00:00 2026-06-04T00:11:12+00:00

I found the following difference between the old VBScript API and the .Net API:

  • 0

I found the following difference between the old VBScript API and the .Net API:

In the old VBScript API it’s possible to invoke “TDSE.getObject” to retrieve a Tridion object passing by the webdav path, an integer to select how to open it (read only, read and write, etc) and the ID of the publication where there is the exact element of the blueprint we want.

In the new .Net API all I found was “Engine.GetObject” but it only receives the TCM ID or the webdav path of an element.

Our scenario is the following; in the old VBScript code, this overload of the getObject method was used to avoid some permission issues detected while using TCM IDs instead of the webdav paths and because it’s much more handful when you need to copy the code between different environments (see DEV, PREPROD and PROD for example), avoiding changing TCM IDs.

So my questions are:

  1. Is there and overload like the old one in the new .Net API?
  2. If not, is there a way of retrieving items by webdav keeping in mind that some of them could be localized and changed from their parent? (the old way works with this, if you send the root webdav path it will retrieve local objects even if their names aren’t exactly the same as the parents)

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T00:11:13+00:00Added an answer on June 4, 2026 at 12:11 am

    Do you want to be able to use the webdav url of the top-level item, and specify the publication id from which to get the item?

    I would create an extension method on Engine that does this for you:

    public static T GetObject<T>(this Engine engine, string webDavUrl, int publicationId)
        where T : IdentifiableObject
    {
        [logic to retreive the item and then if needed
         get the correct tcm uri and get the intended item]
    
        return item as T;
    }
    

    However, this is quite an expensive operation since you get two objects instead of one. So I dont know if I would use this method very often.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found the following code to create a tinyurl.com url: http://tinyurl.com/api-create.php?url=http://myurl.com This will automatically
I found the following syntax as a VB.NET property and I'm trying to convert
Possible Duplicate: Difference between using var and not using var in JavaScript For the
Possible Duplicate: What is the difference between char s[] and char *s in C?
What's the difference between the following ways of attaching an event handler in JQuery?
What is the difference between HTTPS and SSL? I read about them and found
What's the difference between the following two SQLs: select ... from table1 t1 left
Is there any difference between the following when a intranet URL in accessed in
What's the real difference between definitions for setXxx(Color.red) and setXxx(Color.RED) ? I've found the
Possible Duplicate: Difference between Property and Field in C# I thought that basic properties

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.