You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Insert data - Category

edited Aug 24, 2018 4:31PM in Field Service 1 comment

Content

var criar = new criar_Objecto();
ServiceReference1.ServiceCategory serviceCategory = new ServiceReference1.ServiceCategory();
  //************DESCRICAO CATEGORIA
                ServiceReference1.Label serviceCategory_label = new ServiceReference1.Label();
                List<ServiceReference1.Label> serviceCategory_labelList = new List<ServiceReference1.Label> { serviceCategory_label };
                serviceCategory_label.LabelText = "nome_categoria";
                serviceCategory_label.action = add_action;
                serviceCategory_label.actionSpecified = true;
                serviceCategory_label.Language = language_namedID;
                serviceCategory.Descriptions = serviceCategory_labelList.ToArray();
                //******************FIM DESCRICAO
              
 Long    new_serviceCategory = criar.create(_service, serviceCategory, "Category");
               

            

  public long create(ServiceReference1.RightNowSyncPortClient _conect, ServiceReference1.RNObject create_object, string no_object)
        {
            try
            {
                ServiceReference1.RNObject[] _output;
                _conect.Create(new ServiceReference1.ClientInfoHeader { AppID = "EDS  Create Service " + no_object },
                                new ServiceReference1.APIAccessRequestHeader { Token = "" },
                                new ServiceReference1.RNObject[] { create_object  },

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!