Skip to product menu
close
  • Recent Launches
    Press Space or Enter to display list of options
EXPLORE ALL PRODUCTS

Recent Launches

New

Payroll software with automated tax payments and filing.

Try now
New

Robotic process automation software to automate high-volume, rule-based tasks.

Try for free
New

Low-code IoT platform and solutions for connected businesses.

Try now
New

Business formation service to launch and grow your businesses.

Try now
New

Privacy-friendly application analytics solution.

Try for free

Sales

 
CRM

Comprehensive CRM platform for customer-facing teams.

CRM
 
Bigin

Simple CRM for small businesses moving from spreadsheets.

Bigin
 
Forms

Build online forms for every business need.

Forms
 
SalesIQ

Live chat app to engage and convert website visitors.

SalesIQ
 
Bookings

Appointment scheduling app for consultations with customers.

Bookings
 
Sign

Digital signature app for businesses.

Sign
 
RouteIQ

Comprehensive sales map visualization and optimal route planning solution.

RouteIQ
 
Thrive

Complete loyalty and affiliate management platform.

Thrive
 
Voice

Cloud Contact Center Software for businesses.

Voice
 
Suites
CRM Plus

Unified platform to deliver top-notch customer experience.

CRM Plus

Marketing

 
Social

All-in-one social media management software.

Social
 
Campaigns

Create, send, and track targeted email campaigns that drive sales.

Campaigns
 
Forms

Build online forms for every business need.

Forms
 
Survey

Design surveys to reach and interact with your audience.

Survey
 
Sites

Online website builder with extensive customisation options.

Sites
 
PageSense

Website conversion optimization and personalisation platform.

PageSense
 
Backstage

End-to-end event management software.

Backstage
 
Webinar

Webinar platform for webcasting online webinars.

Webinar
 
Marketing Automation

All-in-one marketing automation software.

Marketing Automation
 
LandingPage

Smart landing page builder to increase conversion rates

LandingPage
 
Publish

Manage all your local business listings on a single platform.

Publish
 
SalesIQ

Live chat app to engage and convert website visitors.

SalesIQ
 
Sign

Digital signature app for businesses.

Sign
 
Thrive

Complete loyalty and affiliate management platform.

Thrive
 
Voice

Cloud Contact Center Software for businesses.

Voice
 
NEW
LeadChain

Sync, manage, and convert leads across channels seamlessly.

LeadChain
 
NEW
CommunitySpaces

Online community platform for individuals and businesses to grow their network and brand.

CommunitySpaces
 
Suites
Marketing Plus

Unified marketing platform for marketing teams.

Marketing Plus

Commerce

 
Commerce

eCommerce platform to manage and market your online store.

Commerce

Service

 
Desk

Helpdesk software to deliver great customer support.

Desk
 
Assist

Remote support and unattended remote access software.

Assist
 
Lens

Interactive remote assistance software with augmented reality.

Lens
 
FSM

End-to-end field service management platform for service businesses.

FSM
 
SalesIQ

Live chat app to engage and convert website visitors.

SalesIQ
 
Voice

Cloud Contact Center Software for businesses.

Voice
 
NEW
Solo

The all-in-one toolkit for solopreneurs.

Solo
 
Bookings

Appointment scheduling app for consultations with customers.

Bookings
 
Suites
Service Plus

Unified platform for customer service and support teams.

Service Plus

Finance

 
Books

Powerful accounting platform for growing businesses.

Books
 
FREE
Invoice

100% Free invoicing solution.

Invoice
 
Expense

Effortless expense reporting platform.

Expense
 
Inventory

Powerful stock management and inventory control software.

Inventory
 
Billing

End-to-end billing solution for your business.

Billing
 
Checkout

Collect payments online with custom branded pages.

Checkout
 
NEW
Payroll

Payroll software with automated tax payments and filing.

Payroll
 
NEW
Solo

The all-in-one toolkit for solopreneurs.

Solo
 
Practice

Practice management software for accounting firms.

Practice
 
Sign

Digital signature app for businesses.

Sign
 
Commerce

eCommerce platform to manage and market your online store.

Commerce
 
Suites
Finance Plus

All-in-one suite to manage your operations and finances.

Finance Plus

Email and Collaboration

 
Mail

Secure email service for teams of all sizes.

Mail
 
Meeting

Online meeting software for all your video conferencing & webinar needs.

Meeting
 
Writer

Word processor for focused writing and discussions.

Writer
 
Sheet

Spreadsheet software for collaborative teams.

Sheet
 
Show

Create, edit, and share slides with a sleek presentation app.

Show
 
Notebook

Beautiful home for all your notes.

Notebook
 
Cliq

Stay in touch with teams no matter where you are.

Cliq
 
Connect

Employee experience platform to communicate, engage, and build positive employee relations.

Connect
 
Bookings

Appointment scheduling app for consultations with customers.

Bookings
 
TeamInbox

Shared inboxes for teams.

TeamInbox
 
WorkDrive

Online file management for teams.

WorkDrive
 
Sign

Digital signature app for businesses.

Sign
 
Office Suite

Powerful collaborative work platform for teams.

Office Suite
 
Office Integrator

Built in document editors for web apps.

Office Integrator
 
ZeptoMail

Secure and reliable transactional email sending service.

ZeptoMail
 
Calendar

Online business calendar to manage events and schedule appointments.

Calendar
 
Learn

Knowledge and learning management platform.

Learn
 
Voice

Cloud Contact Center Software for businesses.

Voice
 
ToDo

Collaborative task management for individuals and teams.

ToDo
 
Tables

Work management tool to connect people, processes, and information.

Tables
 
FREE
PDF Editor

Collaborative online PDF editing tool.

PDF Editor
 
Suites
Workplace

Application suite built to improve team productivity and collaboration.

Workplace

Human Resources

 
People

Organize, automate, and simplify your HR processes.

People
 
Recruit

Intuitive recruiting platform built to provide hiring solutions.

Recruit
 
Expense

Effortless expense reporting platform.

Expense
 
Workerly

Manage temporary staffing with an employee scheduling solution.

Workerly
 
NEW
Payroll

Payroll software with automated tax payments and filing.

Payroll
 
Shifts

Employee scheduling and time tracking app.

Shifts
 
Sign

Digital signature app for businesses.

Sign
 
Suites
People Plus

Comprehensive HR platform for seamless employee experiences.

People Plus

Security and IT Management

 
Creator

Build custom apps to simplify business processes.

Creator
 
Directory

Workforce identity and access management solution for cloud businesses.

Directory
 
FREE
OneAuth

Secure multi-factor authenticator (MFA) for all your online accounts.

OneAuth
 
Vault

Online password manager for teams.

Vault
 
Catalyst

Pro-code platform to build and deploy your apps.

Catalyst
 
Toolkit

Complete resource for any admin-related lookup queries.

Toolkit
 
Lens

Interactive remote assistance software with augmented reality.

Lens
 
Assist

Remote support and unattended remote access software.

Assist
 
QEngine

Test automation software to build, manage, execute, and report testcases.

QEngine
 
NEW
RPA

Automate manual, tedious, and repetitive tasks easily.

RPA

BI and Analytics

 
Analytics

Modern self-service BI and analytics platform.

Analytics
 
Embedded BI

Embedded analytics and white label BI solutions, tailored for your needs.

Embedded BI
 
DataPrep

AI-powered data preparation service for your data-driven organization.

DataPrep
 
NEW
IoT

Harnessing IoT analytics for real-time operational intelligence.

IoT

Project Management

 
Projects

Manage, track, and collaborate on projects with teams.

Projects
 
Sprints

Planning and tracking tool for scrum teams.

Sprints
 
BugTracker

Automatic bug tracking software for managing bugs.

BugTracker
 
NEW
Solo

The all-in-one toolkit for solopreneurs.

Solo

Developer Platforms

 
Creator

Build custom apps to simplify business processes.

Creator
 
Flow

Automate business workflows by creating smart integrations.

Flow
 
Catalyst

Pro-code platform to build and deploy your apps.

Catalyst
 
Office Integrator

Built in document editors for web apps.

Office Integrator
 
ZeptoMail

Secure and reliable transactional email sending service.

ZeptoMail
 
QEngine

Test automation software to build, manage, execute, and report testcases.

QEngine
 
Tables

Work management tool to connect people, processes, and information.

Tables
 
NEW
RPA

Automate manual, tedious, and repetitive tasks easily.

RPA
 
NEW
Apptics

Application analytics for all apps.

Apptics
 
Embedded BI

Embedded analytics and white label BI solutions, tailored for your needs.

Embedded BI
 
NEW
IoT

Build, deploy, and scale IoT solutions for connected businesses.

IoT
 
DataPrep

AI-powered data preparation service for your data-driven organization.

DataPrep

IoT

 
NEW
IoT

Low-code IoT platform and solutions for connected businesses.

IoT

Search Result

 
CRM Plus

Unified platform to deliver top-notch customer experience.

Try now
CRM Plus
 
Service Plus

Unified platform for customer service and support teams.

Try now
Service Plus
 
Finance Plus

All-in-one suite to manage your operations and finances.

Try now
Finance Plus
 
People Plus

Comprehensive HR platform for seamless employee experiences.

Try now
People Plus
 
Workplace

Application suite built to improve team productivity and collaboration.

Try now
Workplace
 
Marketing Plus

Unified marketing platform for marketing teams.

Try now
Marketing Plus
 
All-in-one suite

Zoho One

The Operating System for Business

Run your entire business on Zoho with our unified cloud software, designed to help you break down silos between departments and increase organizational efficiency.

TRY ZOHO ONE
Zoho One
Zoho Marketplace

With over 2000 ready-to-use extensions across 40+ categories, connect your favorite business tools with the Zoho products you already use.

EXPLORE MARKETPLACE
Marketplace
Skip to main content

C# SDK Samples - Layouts Operations

Get Layouts
Get a Layout
              
              
using System;
using System.Collections.Generic;
using System.Reflection;
using Com.Zoho.Crm.API.Fields;
using Com.Zoho.Crm.API.Layouts;
using Com.Zoho.Crm.API.Profiles;
using Com.Zoho.Crm.API.Users;
using Com.Zoho.Crm.API.Util;
using Newtonsoft.Json;
using APIException = Com.Zoho.Crm.API.Layouts.APIException;
using Module = Com.Zoho.Crm.API.Fields.Module;
using ResponseHandler = Com.Zoho.Crm.API.Layouts.ResponseHandler;
using ResponseWrapper = Com.Zoho.Crm.API.Layouts.ResponseWrapper;
using Section = Com.Zoho.Crm.API.Layouts.Section;
namespace Com.Zoho.Crm.Sample.Layouts
{
    public class Layout
    {   
    /// 
        /// This method is used to get metadata about a single layout of a module with layoutID and print the response.
        /// 
        /// The API Name of the layout's module
        /// The ID of the field to be obtained
        public static void GetLayout(string moduleAPIName, long layoutId)
        {
            //example
            //string moduleAPIName = "Leads";
            //long layoutId = 3477061000000091055;
            //Get instance of LayoutsOperations Class that takes moduleAPIName as parameter
            LayoutsOperations layoutsOperations = new LayoutsOperations(moduleAPIName);
            //Call GetLayout method that takes layoutId as parameter
            APIResponse<ResponseHandler> response = layoutsOperations.GetLayout(layoutId);
            if(response != null)
            {
                //Get the status code from response
                Console.WriteLine("Status Code: " + response.StatusCode);
                if(new List<int>() { 204, 304 }.Contains(response.StatusCode))
                {
                    Console.WriteLine(response.StatusCode == 204? "No Content" : "Not Modified");
                    return;
                }
                //Check if expected response is received
                if(response.IsExpected)
                {
                    //Get object from response
                    ResponseHandler responseHandler = response.Object;
                    if(responseHandler is ResponseWrapper)
                    {
                        //Get the received ResponseWrapper instance
                        ResponseWrapper responseWrapper = (ResponseWrapper) responseHandler;
                        //Get the list of obtained Layout instances
                        List<Com.Zoho.Crm.API.Layouts.Layout> layouts = responseWrapper.Layouts;
                        foreach(Com.Zoho.Crm.API.Layouts.Layout layout in layouts)
                        {
                            if(layout.CreatedTime != null)
                            {
                                //Get the CreatedTime of each Layout
                                Console.WriteLine("Layout CreatedTime: " + layout.CreatedTime);
                            }
                            //Check if ConvertMapping is not null
                            if(layout.ConvertMapping != null)
                            {
                                //Get the MultiModuleLookup map
                                foreach (KeyValuePair<string, object> entry in layout.ConvertMapping )
                                {
                                    //Get each value in the map
                                    Console.WriteLine(entry.Key + ": " +  JsonConvert.SerializeObject(entry.Value));
                                }
                            }
                            //Get the ModifiedTime of each Layout
                            Console.WriteLine("Layout ModifiedTime: " + layout.ModifiedTime);
                            //Get the Visible of each Layout
                            Console.WriteLine("Layout Visible: " + layout.Visible);
                            //Get the createdFor User instance of each Layout
                            User createdFor = layout.CreatedFor;
                            //Check if createdFor is not null
                            if(createdFor != null)
                            {
                                //Get the Name of the createdFor User
                                Console.WriteLine("Layout CreatedFor User-Name: " + createdFor.Name);
                                //Get the ID of the createdFor User
                                Console.WriteLine("Layout CreatedFor User-ID: " + createdFor.Id);
                                //Get the Email of the createdFor User
                                Console.WriteLine("Layout CreatedFor User-Email: " + createdFor.Email);
                            }
                            //Get the Name of each Layout
                            Console.WriteLine("Layout Name: " + layout.Name);
                            //Get the modifiedBy User instance of each Layout
                            User modifiedBy = layout.ModifiedBy;
                            //Check if modifiedBy is not null
                            if(modifiedBy != null)
                            {
                                //Get the Name of the modifiedBy User
                                Console.WriteLine("Layout ModifiedBy User-Name: " + modifiedBy.Name);
                                //Get the ID of the modifiedBy User
                                Console.WriteLine("Layout ModifiedBy User-ID: " + modifiedBy.Id);
                                //Get the Email of the modifiedBy User
                                Console.WriteLine("Layout ModifiedBy User-Email: " + modifiedBy.Email);
                            }
                            //Get the profiles of each Layout
                            List<Com.Zoho.Crm.API.Profiles.Profile> profiles = layout.Profiles;
                            //Check if profiles is not null
                            if(profiles != null)
                            {
                                foreach (Com.Zoho.Crm.API.Profiles.Profile profile in profiles)
                                {
                                    //Get the Default of each Profile
                                    Console.WriteLine("Layout Profile Default: " + profile.Default);
                                    //Get the Name of each Profile
                                    Console.WriteLine("Layout Profile Name: " + profile.Name);
                                    //Get the ID of each Profile
                                    Console.WriteLine("Layout Profile ID: " + profile.Id);
                                }
                            }
                            //Get the ID of each Layout
                            Console.WriteLine("Layout ID: " + layout.Id);
                            //Get the createdBy User instance of each Layout
                            User createdBy = layout.CreatedBy;
                            //Check if createdBy is not null
                            if(createdBy != null)
                            {
                                //Get the Name of the createdBy User
                                Console.WriteLine("Layout CreatedBy User-Name: " + createdBy.Name);
                                //Get the ID of the createdBy User
                                Console.WriteLine("Layout CreatedBy User-ID: " + createdBy.Id);
                                //Get the Email of the createdBy User
                                Console.WriteLine("Layout CreatedBy User-Email: " + createdBy.Email);
                            }
                            //Get the sections of each Layout
                            List<Section> sections = layout.Sections;
                            //Check if sections is not null
                            if(sections != null)
                            {
                                foreach (Section section in sections)
                                {
                                    //Get the DisplayLabel of each Section
                                    Console.WriteLine("Layout Section DisplayLabel: " + section.DisplayLabel);
                                    //Get the SequenceNumber of each Section
                                    Console.WriteLine("Layout Section SequenceNumber: " + section.SequenceNumber);
                                    //Get the Issubformsection of each Section
                                    Console.WriteLine("Layout Section Issubformsection: " + section.Issubformsection);
                                    //Get the TabTraversal of each Section
                                    Console.WriteLine("Layout Section TabTraversal: " + section.TabTraversal);
                                    //Get the APIName of each Section
                                    Console.WriteLine("Layout Section APIName: " + section.APIName);
                                    //Get the ColumnCount of each Section
                                    Console.WriteLine("Layout Section ColumnCount: " + section.ColumnCount);
                                    //Get the Name of each Section
                                    Console.WriteLine("Layout Section Name: " + section.Name);
                                    //Get the GeneratedType of each Section
                                    Console.WriteLine("Layout Section GeneratedType: " + section.GeneratedType);
                                    //Get the fields of each Section
                                    List<Field> fields = section.Fields;
                                    //Check if sections is not null
                                    if(fields != null)
                                    {
                                        foreach (Field field in fields)
                                        {
                                            PrintField(field);
                                        }
                                    }
                                    //Get the properties User instance of each Section
                                    Properties properties = section.Properties;
                                    //Check if properties is not null
                                    if(properties != null)
                                    {
                                        //Get the ReorderRows of each Properties
                                        Console.WriteLine("Layout Section Properties ReorderRows: " + properties.ReorderRows);
                                        //Get the tooltip User instance of the Properties
                                        ToolTip tooltip = properties.Tooltip;
                                        //Check if tooltip is not null
                                        if(tooltip != null)
                                        {
                                            //Get the Name of the ToolTip
                                            Console.WriteLine("Layout Section Properties ToolTip Name: " + tooltip.Name);
                                            //Get the Value of the ToolTip
                                            Console.WriteLine("Layout Section Properties ToolTip Value: " + tooltip.Value);
                                        }
                                        //Get the MaximumRows of each Properties
                                        Console.WriteLine("Layout Section Properties MaximumRows: " + properties.MaximumRows);
                                    }
                                }
                            }
                            //Get the Status of each Layout
                            Console.WriteLine("Layout Status: " + layout.Status);
                        }
                    }
                    //Check if the request returned an exception
                    else if(responseHandler is APIException)
                    {
                        //Get the received APIException instance
                        APIException exception = (APIException) responseHandler;
                        //Get the Status
                        Console.WriteLine("Status: " + exception.Status.Value);
                        //Get the Code
                        Console.WriteLine("Code: " + exception.Code.Value);
                        Console.WriteLine("Details: " );
                        //Get the details map
                        foreach (KeyValuePair<string, object> entry in exception.Details )
                        {
                            //Get each value in the map
                            Console.WriteLine(entry.Key + ": " +  JsonConvert.SerializeObject(entry.Value));
                        }
                        //Get the Message
                        Console.WriteLine("Message: " + exception.Message.Value);
                    }
                }
                else
                { //If response is not as expected
                    //Get model object from response
                    Model responseObject = response.Model;
                    //Get the response object's class
                    Type type = responseObject.GetType();
                    //Get all declared fields of the response class
                    Console.WriteLine("Type is: {0}", type.Name);
                    PropertyInfo[] props = type.GetProperties();
                    Console.WriteLine("Properties (N = {0}):", props.Length);
                    foreach (var prop in props)
                    {
                        if (prop.GetIndexParameters().Length == 0)
                        {
                            Console.WriteLine("{0} ({1}) : {2}", prop.Name, prop.PropertyType.Name, prop.GetValue(responseObject));
                        }
                        else
                        {
                            Console.WriteLine("{0} ({1}) : ", prop.Name, prop.PropertyType.Name);
                        }
                    }
                }
            }
        }
    private static void PrintField(Field field)
        {
            //Get the SystemMandatory of each Field
            Console.WriteLine("Field SystemMandatory: " + field.SystemMandatory);
            //Get the Webhook of each Field
            Console.WriteLine("Field Webhook: " + field.Webhook);
            //Get the JsonType of each Field
            Console.WriteLine("Field JsonType: " + field.JsonType);
            //Get the Object obtained Crypt instance
            Crypt crypt = field.Crypt;
            //Check if crypt is not null
            if(crypt != null)
            {
                //Get the Mode of the Crypt
                Console.WriteLine("Field Crypt Mode: " + crypt.Mode);
                //Get the Column of the Crypt
                Console.WriteLine("Field Crypt Column: " + crypt.Column);
                //Get the Table of the Crypt
                Console.WriteLine("Field Crypt Table: " + crypt.Table);
                //Get the Status of the Crypt
                Console.WriteLine("Field Crypt Status: " + crypt.Status);
            }
            //Get the FieldLabel of each Field
            Console.WriteLine("Field FieldLabel: " + field.FieldLabel);
            //Get the Object obtained ToolTip instance
            ToolTip tooltip = field.Tooltip;
            //Check if tooltip is not null
            if(tooltip != null)
            {
                //Get the Name of the ToolTip
                Console.WriteLine("Field ToolTip Name: " + tooltip.Name);
                //Get the Value of the ToolTip
                Console.WriteLine("Field ToolTip Value: " + tooltip.Value);
            }
            //Get the CreatedSource of each Field
            Console.WriteLine("Field CreatedSource: " + field.CreatedSource);
            //Get the FieldReadOnly of each Field
            Console.WriteLine("Field FieldReadOnly: " + field.FieldReadOnly);
            //Get the DisplayLabel of each Field
            Console.WriteLine("Field DisplayLabel: " + field.DisplayLabel);
            //Get the ReadOnly of each Field
            Console.WriteLine("Field ReadOnly: " + field.ReadOnly);
            //Get the Object obtained AssociationDetails instance
            AssociationDetails associationDetails = field.AssociationDetails;
            //Check if associationDetails is not null
            if(associationDetails != null)
            {
                //Get the Object obtained LookupField instance
                LookupField lookupField = associationDetails.LookupField;
                //Check if lookupField is not null
                if(lookupField != null)
                {
                    //Get the ID of the LookupField
                    Console.WriteLine("Field AssociationDetails LookupField ID: " + lookupField.Id);
                    //Get the Name of the LookupField
                    Console.WriteLine("Field AssociationDetails LookupField Name: " + lookupField.Name);
                }
                //Get the Object obtained LookupField instance
                LookupField relatedField = associationDetails.RelatedField;
                //Check if relatedField is not null
                if(relatedField != null)
                {
                    //Get the ID of the LookupField
                    Console.WriteLine("Field AssociationDetails RelatedField ID: " + relatedField.Id);
                    //Get the Name of the LookupField
                    Console.WriteLine("Field AssociationDetails RelatedField Name: " + relatedField.Name);
                }
            }
            if(field.QuickSequenceNumber != null)
            {
                //Get the QuickSequenceNumber of each Field
                Console.WriteLine("Field QuickSequenceNumber: " + field.QuickSequenceNumber);
            }
            if(field.BusinesscardSupported != null)
            {
                //Get the BusinesscardSupported of each Field
                Console.WriteLine("Field BusinesscardSupported: " + field.BusinesscardSupported);
            }
            //Check if MultiModuleLookup is not null
            if(field.MultiModuleLookup != null)
            {
                //Get the MultiModuleLookup map
                foreach(KeyValuePair<string, object> entry in field.MultiModuleLookup )
                {
                    //Get each value in the map
                    Console.WriteLine(entry.Key + ": " +  JsonConvert.SerializeObject(entry.Value));
                }
            }
            //Get the Object obtained Currency instance
            Currency currency = field.Currency;
            //Check if currency is not null
            if(currency != null)
            {
                //Get the RoundingOption of the Currency
                Console.WriteLine("Field Currency RoundingOption: " + currency.RoundingOption);
                if(currency.Precision != null)
                {
                    //Get the Precision of the Currency
                    Console.WriteLine("Field Currency Precision: " + currency.Precision);
                }
            }
            //Get the ID of each Field
            Console.WriteLine("Field ID: " + field.Id);
            if(field.CustomField != null)
            {
                //Get the CustomField of each Field
                Console.WriteLine("Field CustomField: " + field.CustomField);
            }
            //Get the Object obtained Module instance
            Module lookup = field.Lookup;
            //Check if lookup is not null
            if(lookup != null)
            {
                //Get the Object obtained Layout instance
                Com.Zoho.Crm.API.Layouts.Layout layout = lookup.Layout;
                //Check if layout is not null
                if(layout != null)
                {
                    //Get the ID of the Layout
                    Console.WriteLine("Field ModuleLookup Layout ID: " + layout.Id);
                    //Get the Name of the Layout
                    Console.WriteLine("Field ModuleLookup Layout Name: " + layout.Name);
                }
                //Get the DisplayLabel of the Module
                Console.WriteLine("Field ModuleLookup DisplayLabel: " + lookup.DisplayLabel);
                //Get the APIName of the Module
                Console.WriteLine("Field ModuleLookup APIName: " + lookup.APIName);
                //Get the Module of the Module
                Console.WriteLine("Field ModuleLookup Module: " + lookup.Module_1);
                if(lookup.Id != null)
                {
                    //Get the ID of the Module
                    Console.WriteLine("Field ModuleLookup ID: " + lookup.Id);
                }
            }
            if(field.Visible != null)
            {
                //Get the Visible of each Field
                Console.WriteLine("Field Visible: " + field.Visible);
            }
            if(field.Length != null)
            {
                //Get the Length of each Field
                Console.WriteLine("Field Length: " + field.Length);
            }
            //Get the Object obtained ViewType instance
            ViewType viewType = field.ViewType;
            //Check if viewType is not null
            if(viewType != null)
            {
                //Get the View of the ViewType
                Console.WriteLine("Field ViewType View: " + viewType.View);
                //Get the Edit of the ViewType
                Console.WriteLine("Field ViewType Edit: " + viewType.Edit);
                //Get the Create of the ViewType
                Console.WriteLine("Field ViewType Create: " + viewType.Create);
                //Get the View of the ViewType
                Console.WriteLine("Field ViewType QuickCreate: " + viewType.QuickCreate);
            }
            //Get the Object obtained Module instance
            Module subform = field.Subform;
            //Check if subform is not null
            if(subform != null)
            {
                //Get the Object obtained Layout instance
                Com.Zoho.Crm.API.Layouts.Layout layout = subform.Layout;
                //Check if layout is not null
                if(layout != null)
                {
                    //Get the ID of the Layout
                    Console.WriteLine("Field Subform Layout ID: " + layout.Id);
                    //Get the Name of the Layout
                    Console.WriteLine("Field Subform Layout Name: " + layout.Name);
                }
                //Get the DisplayLabel of the Module
                Console.WriteLine("Field Subform DisplayLabel: " + subform.DisplayLabel);
                //Get the APIName of the Module
                Console.WriteLine("Field Subform APIName: " + subform.APIName);
                //Get the Module of the Module
                Console.WriteLine("Field Subform Module: " + subform.Module_1);
                if(subform.Id != null)
                {
                    //Get the ID of the Module
                    Console.WriteLine("Field Subform ID: " + subform.Id);   
                }
            }
            //Get the APIName of each Field
            Console.WriteLine("Field APIName: " + field.APIName);
            //Get the Object obtained Unique instance
            Unique unique = field.Unique;
            //Check if unique is not null
            if(unique != null)
            {
                //Get the Casesensitive of the Unique
                Console.WriteLine("Field Unique Casesensitive in " + unique.Casesensitive);
            }
            if(field.HistoryTracking != null)
            {
                //Get the HistoryTracking of each Field
                Console.WriteLine("Field HistoryTracking: " + field.HistoryTracking);
            }
            //Get the DataType of each Field
            Console.WriteLine("Field DataType: " + field.DataType);
            //Get the Object obtained Formula instance
            Formula formula = field.Formula;
            //Check if formula is not null
            if(formula != null)
            {
                //Get the ReturnType of the Formula
                Console.WriteLine("Field Formula ReturnType:" + formula.ReturnType);
                if(formula.Expression != null)
                {
                    //Get the Expression of the Formula
                    Console.WriteLine("Field Formula Expression:" + formula.Expression);
                }
            }
            if(field.DecimalPlace != null)
            {
                //Get the DecimalPlace of each Field
                Console.WriteLine("Field DecimalPlace: " + field.DecimalPlace);
            }
            if(field.MassUpdate != null)
            {
                //Get the MassUpdate of each Field
                Console.WriteLine("Field MassUpdate: " + field.MassUpdate);
            }
            if(field.BlueprintSupported != null)
            {
                //Get the BlueprintSupported of each Field
                Console.WriteLine("Field BlueprintSupported: " + field.BlueprintSupported);
            }
            //Get all entries from the MultiSelectLookup instance
            MultiSelectLookup multiSelectLookup = field.Multiselectlookup;
            //Check if formula is not null
            if(multiSelectLookup != null)
            {
                //Get the DisplayValue of the MultiSelectLookup
                Console.WriteLine("Field MultiSelectLookup DisplayLabel: " + multiSelectLookup.DisplayLabel);
                //Get the LinkingModule of the MultiSelectLookup
                Console.WriteLine("Field MultiSelectLookup LinkingModule: " + multiSelectLookup.LinkingModule);
                //Get the LookupApiname of the MultiSelectLookup
                Console.WriteLine("Field MultiSelectLookup LookupApiname: " + multiSelectLookup.LookupApiname);
                //Get the APIName of the MultiSelectLookup
                Console.WriteLine("Field MultiSelectLookup APIName: " + multiSelectLookup.APIName);
                //Get the ConnectedlookupApiname of the MultiSelectLookup
                Console.WriteLine("Field MultiSelectLookup ConnectedlookupApiname: " + multiSelectLookup.ConnectedlookupApiname);
                //Get the ID of the MultiSelectLookup
                Console.WriteLine("Field MultiSelectLookup ID: " + multiSelectLookup.Id);
            }
            //Get the PickListValue of each Field
            List pickListValues = field.PickListValues;
            //Check if formula is not null
            if(pickListValues != null)
            {
                foreach(PickListValue pickListValue in pickListValues)
                {
                    //Get the DisplayValue of each PickListValues
                    Console.WriteLine("Field PickListValue DisplayValue: " + pickListValue.DisplayValue);
                    if(pickListValue.SequenceNumber != null)
                    {
                        //Get the SequenceNumber of each PickListValues
                        Console.WriteLine(" Field PickListValue SequenceNumber: " + pickListValue.SequenceNumber);
                    }
                    //Get the ExpectedDataType of each PickListValues
                    Console.WriteLine("Field PickListValue ExpectedDataType: " + pickListValue.ExpectedDataType);
                    //Get the ActualValue of each PickListValues
                    Console.WriteLine("Field PickListValue ActualValue: " + pickListValue.ActualValue);
                    if(pickListValue.Maps != null)
                    {
                        foreach(Object map in pickListValue.Maps)
                        {
                            //Get each value from the map
                            Console.WriteLine(map);
                        }
                    }
                    //Get the SysRefName of each PickListValues
                    Console.WriteLine("Field PickListValue SysRefName: " + pickListValue.SysRefName);
                    //Get the Type of each PickListValues
                    Console.WriteLine("Field PickListValue Type: " + pickListValue.Type);
                }
            }
            //Get the AutoNumber of each Field
            AutoNumber autoNumber = field.AutoNumber;
            //Check if formula is not null
            if(autoNumber != null)
            {
                //Get the Prefix of the AutoNumber
                Console.WriteLine("Field AutoNumber Prefix: " + autoNumber.Prefix);
                //Get the Suffix of the AutoNumber
                Console.WriteLine("Field AutoNumber Suffix: " + autoNumber.Suffix);
                if(autoNumber.StartNumber != null)
                {
                    //Get the StartNumber of the AutoNumber
                    Console.WriteLine("Field AutoNumber StartNumber: " + autoNumber.StartNumber);
                }
            }
            if(field.DefaultValue != null)
            {
                //Get the DefaultValue of each Field
                Console.WriteLine("Field DefaultValue: " + field.DefaultValue);
            }
            if(field.SectionId != null)
            {
                //Get the SectionId of each Field
                Console.WriteLine("Field SectionId: " + field.SectionId);
            }
            //Check if ValidationRule is not null
            if(field.ValidationRule != null)
            {
                //Get the details map
                foreach(KeyValuePair<string, object> entry in field.ValidationRule )
                {
                    //Get each value in the map
                    Console.WriteLine(entry.Key + ": " +  JsonConvert.SerializeObject(entry.Value));
                }
            }
            //Check if ConvertMapping is not null
            if(field.ConvertMapping != null)
            {
                //Get the details map
                foreach(KeyValuePair<string, object> entry in field.ConvertMapping )
                {
                    //Get each value in the map
                    Console.WriteLine(entry.Key + ": " +  JsonConvert.SerializeObject(entry.Value));
                }
            }
        }
    }
}