How to select a Company's Custom Field using XML-RPC

I am not getting any XML-RPC API for select a Company’s Custom Field.
I am not understand, How to select a Company’s Custom Field using XML-RPC?.

Start by posting the code you’ve attempted. It will make it a lot easier to help determine what might be the problem.

I want to add Custom field information in XML-RPC request…

<?xml version='1.0' encoding='UTF-8'?>" +
                            "<methodName>DataService.add</methodName>" +
                            "<params>" +
                            "<param><value>" +
                              "<string>{{" + ConfigurationManager.AppSettings["ClientId"] + "}}</string>" +
                            "</value></param>" +
                            "<param> <value>" +
                              "<string>Company</string>" +
                            "</value></param>" +
                            "<param><value>" +
                                  "<struct>" +
                                      "<member><name>Company</name><value>" + txtcompanyname.Text.Trim() +      "</value></member>" +
                                    "</struct>" +
                                "</value> </param>" +
                          "</params>" +
                          "</methodCall>

How to pass Custom field information in XML-RPC API Request?

Hi @Kyle_Westhorpe, it looks like you are missing the opening <methodCall> tag, unless it was a copy/paste error. Otherwise what you have appears to be correct. What error are you seeing when you try and make the call?

@Nicholas_Trecina,

I’m not XML proficient but if @Kyle_Westhorpe just wants to add a custom field, wouldn’t he need to add:

<member><name>_CustField1</name>
          <value><string>Custom field value</string></value>
</member>

Above mentioned solution is not working, please provide another solutions?.

My requirement is that I want to select a Radio button Custom field of Company Form using XML-RPC API. How to use XML-RPC API for select a Company’s Radio button Custom field ?.

You need the DB name for the custom field for it to work. When you go into your custom fields in IS there is a link at the top of the list to view database names. That will need to be the name you use in the above (preceeded by an underscore)

I am not proper understand above mentioned solution ‘When you go into your custom fields in IS there is a link at the top of the list to view database names’, I am not clear.
So Please mention steps for ‘When you go into your custom fields in IS there is a link at the top of the list to view database names’, please mention steps .

1 Like

Got the above mentioned points but I am not getting solution related to Update custom filed.
So, please provide a sample code of Radio button Custom field updation using XML-RPC API.

2f2be0e2e598bf74c066019dd1b81022095f85d5_1_690x388

Please provide a sample code for Radio button Custom field select of Company using XML-RPC API ?

Hi @Kyle_Westhorpe, the request below will update the given company record’s “Corporate Office?” custom field value to be “YES”. Hope this helps!

<?xml version='1.0' encoding='UTF-8'?>
<methodCall>
  <methodName>DataService.update</methodName>
  <params>
    <param>
      <value>
        <string>{{privateKey}}</string>
      </value>
    </param>
    <param>
      <value>
        <string>Company</string>
      </value>
    </param>
    <param>
      <value>
        <string>74585</string>
      </value>
    </param>
    <param>
      <value>
        <struct>
          <member>
            <name>_CorporateOffice0</name>
            <value>YES</value>
          </member>
        </struct>
      </value>
    </param>
  </params>
</methodCall>
1 Like

Thank you very much for help.