Question

2
Replies
265
Views
KevinO76 Member since 2017 3 posts
Macquarie
Posted: January 15, 2018
Last activity: March 28, 2018
Closed
Solved

How do I use a class library into an OpenSpan script?

Hi,
I created a class library in Visual studio with the following definitions:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Data;

namespace RemedyJSONData
{
    public class Class1
    {
        public class Values
        {
            [JsonProperty(PropertyName = "Entry ID")]
            public string EntryID { get; set; }
        }

        public class Self
        {
            public string href { get; set; }
        }

        public class Links
        {
            public List<Self> self { get; set; }
        }

        public class Entry
        {
            public Values values { get; set; }
            public Links _links { get; set; }
        }

        public class Self2
        {
            public string href { get; set; }
        }

        public class Links2
        {
            public List<Self2> self { get; set; }
        }

        public class RootObject
        {
            public List<Entry> entries { get; set; }
            public Links2 _links { get; set; }
        }

    }
}

I want to use this in my OpenSpan script. I tried adding the DLL file as a reference but it is not working.

Please help.

Low-Code App Development Robotic Process Automation
Moderation Team has archived post
Share this page LinkedIn