Skip to main content

GetDMObjectsFromPath

The information of an object in Document Management can be accessed using the following codes.

A lot of information about the object can be accessed, especially the following basic information:

-Id

  • Name
  • SecretKey

Required Libraries

using System;
using System.Collections.Generic;
using Bimser.CSP.FormControls.Common;
using Bimser.CSP.FormControls.Controls;
using Bimser.CSP.FormControls.Events;
using Bimser.Synergy.Entities.Shared.Business.Objects;
using Bimser.Synergy.ServiceAPI;
using Bimser.Synergy.ServiceAPI.Models.Authentication;
using Bimser.Synergy.ServiceAPI.Models.Form;
using Newtonsoft.Json;
using Bimser.Synergy.Entities.DocumentManagement.Business.DTOs.Requests;
using Bimser.Synergy.Entities.DocumentManagement.Business.DTOs.Responses;
using Bimser.Framework.Web.Models;
using System.Linq;

Codes

string path = "DM Object Path Information";
WrapResponse```<```GetDMObjectsResponse```>``` dmObject = ServiceApi.DocumentManagement.GetDMObjectsFromPath(
new GetDMObjectsFromPathRequest(path)). Result;
GetDMObjectResponse dMObjectResponse = dmObject.Result.Items.First();